# TODO # - remove or install .h and .a Summary: GNU OCR Summary(pl): Program GNU do OCR Name: gocr Version: 0.43 Release: 1 License: GPL Group: Applications/Graphics Source0: http://dl.sourceforge.net/jocr/%{name}-%{version}.tar.gz # Source0-md5: f989fe8e24f82d19c8ce55df15784e15 Source1: %{name}.desktop Source2: %{name}.png Patch0: %{name}-link.patch URL: http://jocr.sourceforge.net/ BuildRequires: autoconf >= 2.13 BuildRequires: automake BuildRequires: gtk+-devel >= 1.2.8 BuildRequires: netpbm-devel BuildRequires: tetex-dvips BuildRequires: tetex-latex Requires: netpbm-progs BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description GOCR is an optical character recognition program, released under the GNU General Public License. It reads images in many formats (pnm, pbm, pgm, ppm, some pcx and tga image files (or PNM from stdin); if pnm-tools installed and running linux-like system you can also use pnm.gz, pnm.bz2, png, jpg, tiff, gif, bmp and others) and outputs a text file. %description -l pl GOCR jest programem do rozpoznawania pisma wypuszczonym na licencji GNU GPL. Czyta obrazki w formatach pnm, pbm, pgm, ppm, niektóre pcx i tga; jeżeli są zainstalowane narzędzia do PNM, może też czytać pnm.gz, pnm.bz2, png,jpg, tiff, gif, bmp i inne. Wynikiem jest plik tekstowy. %package gtk Summary: GTK+ frontend for gocr Summary(pl): Frontend GTK+ do gocr Group: X11/Applications/Graphics Requires: %{name} = %{version}-%{release} %description gtk GTK+-based frontend for gocr. %description gtk -l pl Frontend do gocr oparty o GTK+. %package tcl Summary: Tcl/Tk frontend for gocr Summary(pl): Frontend Tcl/Tk do gocr Group: X11/Applications/Graphics Requires: %{name} = %{version}-%{release} Requires: tk %description tcl Tcl/Tk frontend for gocr. %description tcl -l pl Frontend Tcl/Tk do gocr. %prep %setup -q %patch0 -p1 %build %{__aclocal} cp -f /usr/share/automake/config.* . %{__autoconf} %configure %{__make} # ok its ugly..but works cd frontend/gnome rm -f Makefile configure %{__aclocal} %{__automake} %{__autoconf} cd src %{__aclocal} %{__automake} %{__autoconf} cd .. %configure %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %{__make} -C frontend/gnome install \ DESTDIR=$RPM_BUILD_ROOT install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc AUTHORS BUGS CREDITS HISTORY README REMARK.txt REVIEW TODO %doc doc/{examples.txt,gocr.html,unicode.txt} %attr(755,root,root) %{_bindir}/gocr %{_mandir}/man1/gocr.1* %files gtk %defattr(644,root,root,755) %doc frontend/gnome/{AUTHORS,README,TODO} %attr(755,root,root) %{_bindir}/gtk-ocr %{_desktopdir}/*.desktop %{_pixmapsdir}/* %files tcl %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/gocr.tcl