]> git.pld-linux.org Git - packages/gocr.git/blob - gocr.spec
- release 2 (by relup.sh)
[packages/gocr.git] / gocr.spec
1 Summary:        GNU OCR
2 Summary(pl.UTF-8):      Program GNU do OCR
3 Name:           gocr
4 Version:        0.50
5 Release:        2
6 License:        GPL v2+
7 Group:          Applications/Graphics
8 Source0:        http://www-e.uni-magdeburg.de/jschulen/ocr/%{name}-%{version}.tar.gz
9 # Source0-md5:  553ea40c2b3a1a0b03a30675d0e0aba1
10 Source1:        %{name}.desktop
11 Source2:        %{name}.png
12 Patch0:         %{name}-lib64.patch
13 URL:            http://jocr.sourceforge.net/
14 BuildRequires:  autoconf >= 2.50
15 BuildRequires:  automake
16 BuildRequires:  netpbm-devel
17 BuildRequires:  tetex-dvips
18 BuildRequires:  tetex-latex
19 Requires:       netpbm-progs
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
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
27 pnm.gz, pnm.bz2, png, jpg, tiff, gif, bmp and others) and outputs a
28 text file.
29
30 %description -l pl.UTF-8
31 GOCR jest programem do rozpoznawania pisma wypuszczonym na licencji
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,
34 pnm.bz2, png,jpg, tiff, gif, bmp i inne. Wynikiem jest plik tekstowy.
35
36 %package tcl
37 Summary:        Tcl/Tk frontend for gocr
38 Summary(pl.UTF-8):      Frontend Tcl/Tk do gocr
39 Group:          X11/Applications/Graphics
40 Requires:       %{name}
41 Requires:       tk
42 # dropped, GTK+ 1.x code which nobody cared to update
43 Obsoletes:      gocr-gtk
44
45 %description tcl
46 Tcl/Tk frontend for gocr.
47
48 %description tcl -l pl.UTF-8
49 Frontend Tcl/Tk do gocr.
50
51 %prep
52 %setup -q
53 %if "%{_lib}" != "lib"
54 %patch0 -p1
55 %endif
56
57 %build
58 cp -f /usr/share/automake/config.* .
59 %{__aclocal}
60 %{__autoconf}
61 %configure \
62         --with-netpbm=/usr
63 %{__make}
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
68
69 %{__make} install \
70         DESTDIR=$RPM_BUILD_ROOT
71
72 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
73 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %files
79 %defattr(644,root,root,755)
80 %doc AUTHORS BUGS CREDITS HISTORY README REMARK.txt REVIEW TODO
81 %doc doc/{examples.txt,gocr.html,unicode.txt}
82 %attr(755,root,root) %{_bindir}/gocr
83 %{_mandir}/man1/gocr.1*
84
85 %files tcl
86 %defattr(644,root,root,755)
87 %attr(755,root,root) %{_bindir}/gocr.tcl
88 %{_desktopdir}/gocr.desktop
89 %{_pixmapsdir}/gocr.png
This page took 0.100393 seconds and 4 git commands to generate.