]>
Commit | Line | Data |
---|---|---|
8f2e67e3 | 1 | Summary: GNU OCR |
512f4f27 | 2 | Summary(pl.UTF-8): Program GNU do OCR |
8f2e67e3 | 3 | Name: gocr |
4ac3f1ed | 4 | Version: 0.48 |
a3062f12 | 5 | Release: 1 |
4ef30e5a | 6 | License: GPL v2+ |
8f2e67e3 | 7 | Group: Applications/Graphics |
afebff78 | 8 | Source0: http://dl.sourceforge.net/jocr/%{name}-%{version}.tar.gz |
4ac3f1ed | 9 | # Source0-md5: 9882ba9a93fcb18ab704a10da80c228c |
159d2c41 | 10 | Source1: %{name}.desktop |
11 | Source2: %{name}.png | |
be93b9f7 | 12 | Patch0: %{name}-lib64.patch |
8f2e67e3 | 13 | URL: http://jocr.sourceforge.net/ |
bea27982 | 14 | BuildRequires: autoconf >= 2.13 |
545a18b8 | 15 | BuildRequires: automake |
8de024ec | 16 | BuildRequires: netpbm-devel |
545a18b8 JB |
17 | BuildRequires: tetex-dvips |
18 | BuildRequires: tetex-latex | |
b8c998d8 | 19 | Requires: netpbm-progs |
8f2e67e3 JB |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
8f2e67e3 JB |
22 | %description |
23 | GOCR is an optical character recognition program, released under the | |
24 | GNU General Public License. It reads images in many formats (pnm, pbm, | |
25 | pgm, ppm, some pcx and tga image files (or PNM from stdin); if | |
26 | pnm-tools installed and running linux-like system you can also use | |
15b6c890 | 27 | pnm.gz, pnm.bz2, png, jpg, tiff, gif, bmp and others) and outputs a |
28 | text file. | |
8f2e67e3 | 29 | |
5e2a112a | 30 | %description -l pl.UTF-8 |
8f2e67e3 | 31 | GOCR jest programem do rozpoznawania pisma wypuszczonym na licencji |
5e2a112a JR |
32 | GNU GPL. Czyta obrazki w formatach pnm, pbm, pgm, ppm, niektóre pcx i |
33 | tga; jeżeli są zainstalowane narzędzia do PNM, może też czytać pnm.gz, | |
15b6c890 | 34 | pnm.bz2, png,jpg, tiff, gif, bmp i inne. Wynikiem jest plik tekstowy. |
8f2e67e3 | 35 | |
7f31676d JB |
36 | %package tcl |
37 | Summary: Tcl/Tk frontend for gocr | |
512f4f27 | 38 | Summary(pl.UTF-8): Frontend Tcl/Tk do gocr |
7f31676d JB |
39 | Group: X11/Applications/Graphics |
40 | Requires: %{name} = %{version}-%{release} | |
41 | Requires: tk | |
4ef30e5a JB |
42 | # dropped, GTK+ 1.x code which nobody cared to update |
43 | Obsoletes: gocr-gtk | |
7f31676d JB |
44 | |
45 | %description tcl | |
46 | Tcl/Tk frontend for gocr. | |
47 | ||
5e2a112a | 48 | %description tcl -l pl.UTF-8 |
7f31676d JB |
49 | Frontend Tcl/Tk do gocr. |
50 | ||
8f2e67e3 JB |
51 | %prep |
52 | %setup -q | |
2d13794a | 53 | %if "%{_lib}" != "lib" |
be93b9f7 | 54 | %patch0 -p1 |
2d13794a | 55 | %endif |
8f2e67e3 JB |
56 | |
57 | %build | |
6f98cc54 | 58 | cp -f /usr/share/automake/config.* . |
a3062f12 | 59 | %{__aclocal} |
60f5fb56 | 60 | %{__autoconf} |
2d13794a ER |
61 | %configure \ |
62 | --with-netpbm=/usr | |
8f2e67e3 JB |
63 | %{__make} |
64 | ||
8f2e67e3 JB |
65 | %install |
66 | rm -rf $RPM_BUILD_ROOT | |
d564c8dd | 67 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} |
8de024ec | 68 | |
d8b6a7f0 | 69 | %{__make} install \ |
70 | DESTDIR=$RPM_BUILD_ROOT | |
bea27982 | 71 | |
c3f5c07a | 72 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
159d2c41 | 73 | install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} |
8f2e67e3 JB |
74 | |
75 | %clean | |
f9ea45f9 | 76 | rm -rf $RPM_BUILD_ROOT |
8f2e67e3 JB |
77 | |
78 | %files | |
79 | %defattr(644,root,root,755) | |
d8b6a7f0 | 80 | %doc AUTHORS BUGS CREDITS HISTORY README REMARK.txt REVIEW TODO |
5621fc1e | 81 | %doc doc/{examples.txt,gocr.html,unicode.txt} |
937fa7fb JB |
82 | %attr(755,root,root) %{_bindir}/gocr |
83 | %{_mandir}/man1/gocr.1* | |
8f2e67e3 | 84 | |
7f31676d JB |
85 | %files tcl |
86 | %defattr(644,root,root,755) | |
87 | %attr(755,root,root) %{_bindir}/gocr.tcl | |
4ef30e5a JB |
88 | %{_desktopdir}/gocr.desktop |
89 | %{_pixmapsdir}/gocr.png |