]> git.pld-linux.org Git - packages/gocr.git/blame - gocr.spec
- tabs in preamble
[packages/gocr.git] / gocr.spec
CommitLineData
8f2e67e3 1Summary: GNU OCR
512f4f27 2Summary(pl.UTF-8): Program GNU do OCR
8f2e67e3 3Name: gocr
a18f1048 4Version: 0.43
2d13794a 5Release: 2
8f2e67e3
JB
6License: GPL
7Group: Applications/Graphics
afebff78 8Source0: http://dl.sourceforge.net/jocr/%{name}-%{version}.tar.gz
a18f1048 9# Source0-md5: f989fe8e24f82d19c8ce55df15784e15
159d2c41 10Source1: %{name}.desktop
11Source2: %{name}.png
7f31676d 12Patch0: %{name}-link.patch
2d13794a 13Patch1: %{name}-lib64.patch
8f2e67e3 14URL: http://jocr.sourceforge.net/
bea27982 15BuildRequires: autoconf >= 2.13
545a18b8 16BuildRequires: automake
8f2e67e3 17BuildRequires: gtk+-devel >= 1.2.8
8de024ec 18BuildRequires: netpbm-devel
545a18b8
JB
19BuildRequires: tetex-dvips
20BuildRequires: tetex-latex
b8c998d8 21Requires: netpbm-progs
8f2e67e3
JB
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
8f2e67e3
JB
24%description
25GOCR is an optical character recognition program, released under the
26GNU General Public License. It reads images in many formats (pnm, pbm,
27pgm, ppm, some pcx and tga image files (or PNM from stdin); if
28pnm-tools installed and running linux-like system you can also use
15b6c890 29pnm.gz, pnm.bz2, png, jpg, tiff, gif, bmp and others) and outputs a
30text file.
8f2e67e3 31
5e2a112a 32%description -l pl.UTF-8
8f2e67e3 33GOCR jest programem do rozpoznawania pisma wypuszczonym na licencji
5e2a112a
JR
34GNU GPL. Czyta obrazki w formatach pnm, pbm, pgm, ppm, niektóre pcx i
35tga; jeżeli są zainstalowane narzędzia do PNM, może też czytać pnm.gz,
15b6c890 36pnm.bz2, png,jpg, tiff, gif, bmp i inne. Wynikiem jest plik tekstowy.
8f2e67e3
JB
37
38%package gtk
a9bf5c5b 39Summary: GTK+ frontend for gocr
512f4f27 40Summary(pl.UTF-8): Frontend GTK+ do gocr
8f2e67e3 41Group: X11/Applications/Graphics
b8c998d8 42Requires: %{name} = %{version}-%{release}
8f2e67e3
JB
43
44%description gtk
a9bf5c5b 45GTK+-based frontend for gocr.
8f2e67e3 46
5e2a112a 47%description gtk -l pl.UTF-8
a9bf5c5b 48Frontend do gocr oparty o GTK+.
8f2e67e3 49
7f31676d
JB
50%package tcl
51Summary: Tcl/Tk frontend for gocr
512f4f27 52Summary(pl.UTF-8): Frontend Tcl/Tk do gocr
7f31676d
JB
53Group: X11/Applications/Graphics
54Requires: %{name} = %{version}-%{release}
55Requires: tk
56
57%description tcl
58Tcl/Tk frontend for gocr.
59
5e2a112a 60%description tcl -l pl.UTF-8
7f31676d
JB
61Frontend 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 72cp -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
79cd frontend/gnome
bea27982 80rm -f Makefile configure
545a18b8 81%{__aclocal}
60f5fb56 82%{__automake}
d8b6a7f0 83%{__autoconf}
5621fc1e
MP
84cd src
85%{__aclocal}
86%{__automake}
87%{__autoconf}
88cd ..
937fa7fb 89%configure
60f5fb56 90%{__make}
8f2e67e3
JB
91
92%install
93rm -rf $RPM_BUILD_ROOT
d564c8dd 94install -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 102install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
159d2c41 103install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
8f2e67e3 104
e6ac63ae
JB
105# nothing useful yet
106rm $RPM_BUILD_ROOT%{_libdir}/libPgm2asc.a
107rm $RPM_BUILD_ROOT%{_includedir}/gocr.h
108
8f2e67e3 109%clean
f9ea45f9 110rm -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
This page took 0.063395 seconds and 4 git commands to generate.