Summary: GNU OCR Summary(pl): Program GNU do OCR Name: gocr Version: 0.3.6 Release: 2 License: GPL Group: Applications/Graphics # Source0: http://prdownloads.sourceforge.net/jocr/%{name}-%{version}.tar.gz Source0: ftp://ftp.sourceforge.net/pub/sourceforge/jocr/%{name}-%{version}.tar.gz URL: http://jocr.sourceforge.net/ BuildRequires: autoconf BuildRequires: gtk+-devel >= 1.2.8 BuildRequires: tetex-latex BuildRequires: tetex-dvips BuildRequires: netpbm-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _xprefix /usr/X11R6 %define _xbindir %{_xprefix}/bin %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} %description gtk Gtk+-based frontend for gocr. %description gtk -l pl Frontend do gocr oparty o Gtk+. %prep %setup -q %build aclocal cp -f /usr/share/automake/config.* . %{__autoconf} %configure %{__make} cd frontend/gnome/src aclocal %{__automake} %{__autoconf} %configure \ --prefix=%{_xprefix} \ --bindir=%{_xbindir} \ %{__make} cd ../../.. %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %{__make} -C frontend/gnome install \ DESTDIR=$RPM_BUILD_ROOT ln -sf gnome/mkinstalldirs frontend/mkinstalldirs %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,ocr.ps,unicode.txt} %attr(755,root,root) %{_bindir}/* %{_mandir}/man1/* %files gtk %defattr(644,root,root,755) %doc frontend/gnome/{AUTHORS,README,TODO} %attr(755,root,root) %{_xbindir}/*