Summary: An Optical Character Recognition program Name: ocrad Version: 0.25 Release: 3%{?dist} License: GPLv3+ Group: Applications/Multimedia Source: ftp://ftp.gnu.org/gnu/ocrad/%{name}-%{version}.tar.lz Patch0: ocrad-0.25-nostatic.patch URL: http://www.gnu.org/software/ocrad/ocrad.html BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: lzip Requires(post): /sbin/install-info Requires(preun): /sbin/install-info %description GNU Ocrad is an OCR (Optical Character Recognition) program based on a feature extraction method. It reads images in pbm (bitmap), pgm (greyscale) or ppm (color) formats and produces text in byte (8-bit) or UTF-8 formats. Also includes a layout analyser able to separate the columns or blocks of text normally found on printed pages. Ocrad can be used as a stand-alone console application, or as a backend to other programs. %prep %setup -q %patch0 -p1 -b .nostatic %build %configure make CXXFLAGS="$RPM_OPT_FLAGS" %{?_smp_flags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1 install -p doc/ocrad.1 ${RPM_BUILD_ROOT}%{_mandir}/man1 rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir %clean rm -rf $RPM_BUILD_ROOT %post /sbin/install-info %{_infodir}/ocrad.info.gz %{_infodir}/dir || : %preun if [ $1 = 0 ]; then /sbin/install-info --delete %{_infodir}/ocrad.info.gz %{_infodir}/dir || : fi %files %defattr(-,root,root) %doc AUTHORS COPYING ChangeLog NEWS README %{_bindir}/ocrad %attr(0644,root,root) %{_mandir}/man1/* %attr(0644,root,root) %{_infodir}/ocrad.info.gz %changelog * Thu Feb 04 2016 Fedora Release Engineering - 0.25-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 0.25-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Apr 13 2015 Tomas Smetana - 0.25-1 - new upstream version * Thu Oct 09 2014 Tomas Smetana - 0.24-1 - new upstream version * Sun Aug 17 2014 Fedora Release Engineering - 0.23-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.23-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed Mar 26 2014 Tomas Smetana - 0.23-1 - new upstream version * Fri Jul 26 2013 Tomas Smetana - 0.22-1 - new upstream version * Thu Feb 14 2013 Fedora Release Engineering - 0.21-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jul 20 2012 Fedora Release Engineering - 0.21-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jan 13 2012 Fedora Release Engineering - 0.21-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Mar 16 2011 Tomas Smetana - 0.21-1 - new upstream version * Tue Feb 08 2011 Fedora Release Engineering - 0.20-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Aug 20 2010 Tomas Smetana 0.20-1 - new upstream version * Tue Apr 27 2010 Tomas Smetana 0.19-2 - build requires lzip * Tue Apr 27 2010 Tomas Smetana 0.19-1 - new upstream version * Sat Jul 25 2009 Fedora Release Engineering - 0.18-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Mon Jul 20 2009 Tomas Smetana 0.18-1 - new upstream version * Wed Feb 25 2009 Fedora Release Engineering - 0.17-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Mon Mar 03 2008 Tomas Smetana 0.17-3 - remove unpackaged file * Fri Feb 29 2008 Tomas Smetana 0.17-2 - fix spec file - fix compilation issues with gcc-4.3 * Fri Feb 29 2008 Tomas Smetana 0.17-1 - Spec file created