]> git.pld-linux.org Git - packages/gocr.git/blame - gocr.spec
- x32 rebuild
[packages/gocr.git] / gocr.spec
CommitLineData
8f2e67e3 1Summary: GNU OCR
512f4f27 2Summary(pl.UTF-8): Program GNU do OCR
8f2e67e3 3Name: gocr
0d2bec67 4Version: 0.49
94c78c46 5Release: 2
4ef30e5a 6License: GPL v2+
8f2e67e3 7Group: Applications/Graphics
0d2bec67
TP
8Source0: http://www-e.uni-magdeburg.de/jschulen/ocr/%{name}-%{version}.tar.gz
9# Source0-md5: 4e527bc4bdd97c2be15fdd818857507f
159d2c41 10Source1: %{name}.desktop
11Source2: %{name}.png
be93b9f7 12Patch0: %{name}-lib64.patch
8f2e67e3 13URL: http://jocr.sourceforge.net/
7a687873 14BuildRequires: autoconf >= 2.50
545a18b8 15BuildRequires: automake
8de024ec 16BuildRequires: netpbm-devel
545a18b8
JB
17BuildRequires: tetex-dvips
18BuildRequires: tetex-latex
b8c998d8 19Requires: netpbm-progs
8f2e67e3
JB
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
8f2e67e3
JB
22%description
23GOCR is an optical character recognition program, released under the
24GNU General Public License. It reads images in many formats (pnm, pbm,
25pgm, ppm, some pcx and tga image files (or PNM from stdin); if
26pnm-tools installed and running linux-like system you can also use
15b6c890 27pnm.gz, pnm.bz2, png, jpg, tiff, gif, bmp and others) and outputs a
28text file.
8f2e67e3 29
5e2a112a 30%description -l pl.UTF-8
8f2e67e3 31GOCR jest programem do rozpoznawania pisma wypuszczonym na licencji
5e2a112a
JR
32GNU GPL. Czyta obrazki w formatach pnm, pbm, pgm, ppm, niektóre pcx i
33tga; jeżeli są zainstalowane narzędzia do PNM, może też czytać pnm.gz,
15b6c890 34pnm.bz2, png,jpg, tiff, gif, bmp i inne. Wynikiem jest plik tekstowy.
8f2e67e3 35
7f31676d
JB
36%package tcl
37Summary: Tcl/Tk frontend for gocr
512f4f27 38Summary(pl.UTF-8): Frontend Tcl/Tk do gocr
7f31676d 39Group: X11/Applications/Graphics
0d2bec67 40Requires: %{name}
7f31676d 41Requires: tk
4ef30e5a
JB
42# dropped, GTK+ 1.x code which nobody cared to update
43Obsoletes: gocr-gtk
7f31676d
JB
44
45%description tcl
46Tcl/Tk frontend for gocr.
47
5e2a112a 48%description tcl -l pl.UTF-8
7f31676d
JB
49Frontend 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 58cp -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
66rm -rf $RPM_BUILD_ROOT
d564c8dd 67install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
8de024ec 68
d8b6a7f0 69%{__make} install \
70 DESTDIR=$RPM_BUILD_ROOT
bea27982 71
c3f5c07a 72install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
159d2c41 73install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
8f2e67e3
JB
74
75%clean
f9ea45f9 76rm -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
This page took 0.058587 seconds and 4 git commands to generate.