Name: ocrad Version: 0.26 Release: 4.1%{?dist} License: GPLv3+ Group: Applications/Multimedia URL: http://www.gnu.org/software/ocrad/ocrad.html Summary: An Optical Character Recognition program Source: ftp://ftp.gnu.org/gnu/ocrad/%{name}-%{version}.tar.lz Patch0: ocrad-0.25-nostatic.patch BuildRequires: lzip gcc-c++ 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="%{optflags}" %{?_smp_flags} %install %{__make} install DESTDIR="%{buildroot}" INSTALL='install -p' %{__mkdir} -p "%{buildroot}%{_mandir}/man1" %{__install} -p "doc/ocrad.1" "%{buildroot}%{_mandir}/man1" %{__rm} -f "%{buildroot}%{_infodir}/dir" %post /sbin/install-info %{_infodir}/ocrad.info.gz %{_infodir}/dir || : %preun if [[ "${1}" -eq "0" ]]; then /sbin/install-info --delete "%{_infodir}/ocrad.info.gz" "%{_infodir}/dir" || : fi %files %doc AUTHORS ChangeLog NEWS README %license COPYING %{_bindir}/ocrad %attr(0644,root,root) %{_mandir}/man1/* %attr(0644,root,root) %{_infodir}/ocrad.info.gz %changelog * Thu Jan 24 2019 Tomasz Tomasik - 0.26-4.1 - Rebuilt for EL7 - SPEC cleanups * Tue Aug 07 2018 Tomas Smetana - 0.26-4 - Add C++ compiler to BuildRequires, fixes: rhbz#1605290 * Fri Jul 13 2018 Fedora Release Engineering - 0.26-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Feb 08 2018 Fedora Release Engineering - 0.26-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Aug 02 2017 Tomas Smetana - 0.26-1 - New upstream version * Thu Jul 27 2017 Fedora Release Engineering - 0.25-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon May 15 2017 Fedora Release Engineering - 0.25-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.25-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * 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