%define name ocrad %define version 0.15 %define release %mkrel 1 Version: %{version} Summary: Optical Character Recognition Name: %{name} Release: %{release} License: GPL Group: Publishing Source: http://ftp.gnu.org/gnu/ocrad/%{name}-%{version}.tar.bz2 URL: http://www.gnu.org/software/ocrad/ocrad.html BuildRoot: %{_tmppath}/%{name}-buildroot BuildRequires: info-install %description Ocrad is an OCR (Optical Character Recognition) program implemented as a filter and based on a feature extraction method. It reads a bitmap image in PBM format and outputs text in the ISO-8859-1 (Latin-1) charset. It includes a layout analyser that is 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 rm -rf $RPM_BUILD_ROOT %setup %build ./configure --prefix=%_prefix %make %install export PATH=$PATH:/sbin %makeinstall %post %_install_info %name.info %postun %_remove_install_info %name.info %clean rm -rf $RPM_BUILD_ROOT %files %defattr (-,root,root) %doc README COPYING INSTALL TODO ChangeLog %_bindir/* %_infodir/* %changelog * Fri Apr 21 2006 Lenny Cartier <lenny@mandriva.com> 0.15-1mdk - 0.15 * Tue Mar 07 2006 Nicolas Lécureuil <neoclust@mandriva.org> 0.14-1mdk - New release 0.14 - use mkrel * Thu Oct 12 2005 Lenny Cartier <lenny@mandrakesoft.com> 0.13-1mdk - 0.13 * Thu Jun 09 2005 Lenny Cartier <lenny@mandrakesoft.com> 0.12-1mdk - 0.12 * Mon Feb 21 2005 Lenny Cartier <lenny@mandrakesoft.com> 0.11-1mdk - 0.11 * Fri Dec 10 2004 Lenny Cartier <lenny@mandrakesoft.com> 0.10-1mdk - 0.10 * Mon Oct 25 2004 Lenny Cartier <lenny@mandrakesoft.com> 0.9-1mdk - 0.9 * Tue Jun 15 2004 Lenny Cartier <lenny@mandrakesoft.com> 0.8-1mdk - 0.8 * Tue Feb 10 2004 Lenny Cartier <lenny@mandrakesoft.com> 0.7-1mdk - 0.7 * Fri Dec 26 2003 Franck Villaume <fvill@freesurf.fr> 0.6-2mdk - add BuildRequires : info-install - twist the bin path to find install-info binary before makeinstall * Sat Dec 20 2003 Lenny Cartier <lenny@mandrakesoft.com> 0.6-1mdk - new