2 # - remove or install .h and .a
4 Summary(pl): Program GNU do OCR
9 Group: Applications/Graphics
10 Source0: http://dl.sourceforge.net/jocr/%{name}-%{version}.tar.gz
11 # Source0-md5: f989fe8e24f82d19c8ce55df15784e15
12 Source1: %{name}.desktop
14 Patch0: %{name}-link.patch
15 URL: http://jocr.sourceforge.net/
16 BuildRequires: autoconf >= 2.13
17 BuildRequires: automake
18 BuildRequires: gtk+-devel >= 1.2.8
19 BuildRequires: netpbm-devel
20 BuildRequires: tetex-dvips
21 BuildRequires: tetex-latex
22 Requires: netpbm-progs
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 GOCR is an optical character recognition program, released under the
27 GNU General Public License. It reads images in many formats (pnm, pbm,
28 pgm, ppm, some pcx and tga image files (or PNM from stdin); if
29 pnm-tools installed and running linux-like system you can also use
30 pnm.gz, pnm.bz2, png, jpg, tiff, gif, bmp and others) and outputs a
34 GOCR jest programem do rozpoznawania pisma wypuszczonym na licencji
35 GNU GPL. Czyta obrazki w formatach pnm, pbm, pgm, ppm, niektóre pcx i
36 tga; je¿eli s± zainstalowane narzêdzia do PNM, mo¿e te¿ czytaæ pnm.gz,
37 pnm.bz2, png,jpg, tiff, gif, bmp i inne. Wynikiem jest plik tekstowy.
40 Summary: GTK+ frontend for gocr
41 Summary(pl): Frontend GTK+ do gocr
42 Group: X11/Applications/Graphics
43 Requires: %{name} = %{version}-%{release}
46 GTK+-based frontend for gocr.
48 %description gtk -l pl
49 Frontend do gocr oparty o GTK+.
52 Summary: Tcl/Tk frontend for gocr
53 Summary(pl): Frontend Tcl/Tk do gocr
54 Group: X11/Applications/Graphics
55 Requires: %{name} = %{version}-%{release}
59 Tcl/Tk frontend for gocr.
61 %description tcl -l pl
62 Frontend Tcl/Tk do gocr.
70 cp -f /usr/share/automake/config.* .
75 # ok its ugly..but works
77 rm -f Makefile configure
90 rm -rf $RPM_BUILD_ROOT
91 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
94 DESTDIR=$RPM_BUILD_ROOT
96 %{__make} -C frontend/gnome install \
97 DESTDIR=$RPM_BUILD_ROOT
99 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
100 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
103 rm -rf $RPM_BUILD_ROOT
106 %defattr(644,root,root,755)
107 %doc AUTHORS BUGS CREDITS HISTORY README REMARK.txt REVIEW TODO
108 %doc doc/{examples.txt,gocr.html,unicode.txt}
109 %attr(755,root,root) %{_bindir}/gocr
110 %{_mandir}/man1/gocr.1*
113 %defattr(644,root,root,755)
114 %doc frontend/gnome/{AUTHORS,README,TODO}
115 %attr(755,root,root) %{_bindir}/gtk-ocr
116 %{_desktopdir}/*.desktop
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_bindir}/gocr.tcl