]>
Commit | Line | Data |
---|---|---|
8f2e67e3 | 1 | Summary: GNU OCR |
512f4f27 | 2 | Summary(pl.UTF-8): Program GNU do OCR |
8f2e67e3 | 3 | Name: gocr |
a18f1048 | 4 | Version: 0.43 |
2d13794a | 5 | Release: 2 |
8f2e67e3 JB |
6 | License: GPL |
7 | Group: Applications/Graphics | |
afebff78 | 8 | Source0: http://dl.sourceforge.net/jocr/%{name}-%{version}.tar.gz |
a18f1048 | 9 | # Source0-md5: f989fe8e24f82d19c8ce55df15784e15 |
159d2c41 | 10 | Source1: %{name}.desktop |
11 | Source2: %{name}.png | |
7f31676d | 12 | Patch0: %{name}-link.patch |
2d13794a | 13 | Patch1: %{name}-lib64.patch |
8f2e67e3 | 14 | URL: http://jocr.sourceforge.net/ |
bea27982 | 15 | BuildRequires: autoconf >= 2.13 |
545a18b8 | 16 | BuildRequires: automake |
8f2e67e3 | 17 | BuildRequires: gtk+-devel >= 1.2.8 |
8de024ec | 18 | BuildRequires: netpbm-devel |
545a18b8 JB |
19 | BuildRequires: tetex-dvips |
20 | BuildRequires: tetex-latex | |
b8c998d8 | 21 | Requires: netpbm-progs |
8f2e67e3 JB |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
8f2e67e3 JB |
24 | %description |
25 | GOCR is an optical character recognition program, released under the | |
26 | GNU General Public License. It reads images in many formats (pnm, pbm, | |
27 | pgm, ppm, some pcx and tga image files (or PNM from stdin); if | |
28 | pnm-tools installed and running linux-like system you can also use | |
15b6c890 | 29 | pnm.gz, pnm.bz2, png, jpg, tiff, gif, bmp and others) and outputs a |
30 | text file. | |
8f2e67e3 | 31 | |
5e2a112a | 32 | %description -l pl.UTF-8 |
8f2e67e3 | 33 | GOCR jest programem do rozpoznawania pisma wypuszczonym na licencji |
5e2a112a JR |
34 | GNU GPL. Czyta obrazki w formatach pnm, pbm, pgm, ppm, niektóre pcx i |
35 | tga; jeżeli są zainstalowane narzędzia do PNM, może też czytać pnm.gz, | |
15b6c890 | 36 | pnm.bz2, png,jpg, tiff, gif, bmp i inne. Wynikiem jest plik tekstowy. |
8f2e67e3 JB |
37 | |
38 | %package gtk | |
a9bf5c5b | 39 | Summary: GTK+ frontend for gocr |
512f4f27 | 40 | Summary(pl.UTF-8): Frontend GTK+ do gocr |
8f2e67e3 | 41 | Group: X11/Applications/Graphics |
b8c998d8 | 42 | Requires: %{name} = %{version}-%{release} |
8f2e67e3 JB |
43 | |
44 | %description gtk | |
a9bf5c5b | 45 | GTK+-based frontend for gocr. |
8f2e67e3 | 46 | |
5e2a112a | 47 | %description gtk -l pl.UTF-8 |
a9bf5c5b | 48 | Frontend do gocr oparty o GTK+. |
8f2e67e3 | 49 | |
7f31676d JB |
50 | %package tcl |
51 | Summary: Tcl/Tk frontend for gocr | |
512f4f27 | 52 | Summary(pl.UTF-8): Frontend Tcl/Tk do gocr |
7f31676d JB |
53 | Group: X11/Applications/Graphics |
54 | Requires: %{name} = %{version}-%{release} | |
55 | Requires: tk | |
56 | ||
57 | %description tcl | |
58 | Tcl/Tk frontend for gocr. | |
59 | ||
5e2a112a | 60 | %description tcl -l pl.UTF-8 |
7f31676d JB |
61 | Frontend Tcl/Tk do gocr. |
62 | ||
8f2e67e3 JB |
63 | %prep |
64 | %setup -q | |
7f31676d | 65 | %patch0 -p1 |
2d13794a ER |
66 | %if "%{_lib}" != "lib" |
67 | %patch1 -p1 | |
68 | %endif | |
8f2e67e3 JB |
69 | |
70 | %build | |
545a18b8 | 71 | %{__aclocal} |
6f98cc54 | 72 | cp -f /usr/share/automake/config.* . |
60f5fb56 | 73 | %{__autoconf} |
2d13794a ER |
74 | %configure \ |
75 | --with-netpbm=/usr | |
8f2e67e3 JB |
76 | %{__make} |
77 | ||
5621fc1e MP |
78 | # ok its ugly..but works |
79 | cd frontend/gnome | |
bea27982 | 80 | rm -f Makefile configure |
545a18b8 | 81 | %{__aclocal} |
60f5fb56 | 82 | %{__automake} |
d8b6a7f0 | 83 | %{__autoconf} |
5621fc1e MP |
84 | cd src |
85 | %{__aclocal} | |
86 | %{__automake} | |
87 | %{__autoconf} | |
88 | cd .. | |
937fa7fb | 89 | %configure |
60f5fb56 | 90 | %{__make} |
8f2e67e3 JB |
91 | |
92 | %install | |
93 | rm -rf $RPM_BUILD_ROOT | |
d564c8dd | 94 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} |
8de024ec | 95 | |
d8b6a7f0 | 96 | %{__make} install \ |
97 | DESTDIR=$RPM_BUILD_ROOT | |
bea27982 | 98 | |
d8b6a7f0 | 99 | %{__make} -C frontend/gnome install \ |
100 | DESTDIR=$RPM_BUILD_ROOT | |
8f2e67e3 | 101 | |
c3f5c07a | 102 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
159d2c41 | 103 | install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} |
8f2e67e3 | 104 | |
e6ac63ae JB |
105 | # nothing useful yet |
106 | rm $RPM_BUILD_ROOT%{_libdir}/libPgm2asc.a | |
107 | rm $RPM_BUILD_ROOT%{_includedir}/gocr.h | |
108 | ||
8f2e67e3 | 109 | %clean |
f9ea45f9 | 110 | rm -rf $RPM_BUILD_ROOT |
8f2e67e3 JB |
111 | |
112 | %files | |
113 | %defattr(644,root,root,755) | |
d8b6a7f0 | 114 | %doc AUTHORS BUGS CREDITS HISTORY README REMARK.txt REVIEW TODO |
5621fc1e | 115 | %doc doc/{examples.txt,gocr.html,unicode.txt} |
937fa7fb JB |
116 | %attr(755,root,root) %{_bindir}/gocr |
117 | %{_mandir}/man1/gocr.1* | |
8f2e67e3 JB |
118 | |
119 | %files gtk | |
120 | %defattr(644,root,root,755) | |
d8b6a7f0 | 121 | %doc frontend/gnome/{AUTHORS,README,TODO} |
937fa7fb | 122 | %attr(755,root,root) %{_bindir}/gtk-ocr |
cd6dd153 | 123 | %{_desktopdir}/*.desktop |
159d2c41 | 124 | %{_pixmapsdir}/* |
7f31676d JB |
125 | |
126 | %files tcl | |
127 | %defattr(644,root,root,755) | |
128 | %attr(755,root,root) %{_bindir}/gocr.tcl |