]> git.pld-linux.org Git - packages/gocr.git/blob - gocr.spec
perl -pi -e "s/^automake -a -c -f --foreing/\%\{__automake\}/; \
[packages/gocr.git] / gocr.spec
1 Summary:        GNU OCR
2 Summary(pl):    Program GNU do OCR
3 Name:           gocr
4 Version:        0.3.6
5 Release:        1
6 License:        GPL
7 Group:          Applications/Graphics
8 # Source0:      http://prdownloads.sourceforge.net/jocr/%{name}-%{version}.tar.gz
9 Source0:        ftp://ftp.sourceforge.net/pub/sourceforge/jocr/%{name}-%{version}.tar.gz
10 URL:            http://jocr.sourceforge.net/
11 BuildRequires:  autoconf
12 BuildRequires:  gtk+-devel >= 1.2.8
13 BuildRequires:  tetex-latex
14 BuildRequires:  tetex-dvips
15 BuildRequires:  netpbm-devel
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %define         _xprefix        /usr/X11R6
19 %define         _xbindir        %{_xprefix}/bin
20
21 %description
22 GOCR is an optical character recognition program, released under the
23 GNU General Public License. It reads images in many formats (pnm, pbm,
24 pgm, ppm, some pcx and tga image files (or PNM from stdin); if
25 pnm-tools installed and running linux-like system you can also use
26 pnm.gz, pnm.bz2, png, jpg, tiff, gif, bmp and others) and outputs a
27 text file.
28
29 %description -l pl
30 GOCR jest programem do rozpoznawania pisma wypuszczonym na licencji
31 GNU GPL. Czyta obrazki w formatach pnm, pbm, pgm, ppm, niektóre pcx i
32 tga; je¿eli s± zainstalowane narzêdzia do PNM, mo¿e te¿ czytaæ pnm.gz,
33 pnm.bz2, png,jpg, tiff, gif, bmp i inne. Wynikiem jest plik tekstowy.
34
35 %package gtk
36 Summary:        Gtk+ frontend for gocr
37 Summary(pl):    Frontend Gtk+ do gocr
38 Group:          X11/Applications/Graphics
39 Requires:       %{name} = %{version}
40
41 %description gtk
42 Gtk+-based frontend for gocr.
43
44 %description gtk -l pl
45 Frontend do gocr oparty o Gtk+.
46
47 %prep
48 %setup -q
49
50 %build
51 aclocal
52 %{__autoconf}
53 cp -f /usr/share/automake/config.* .
54 %configure
55 %{__make}
56
57 (cd frontend/gnome
58 %{__autoconf}
59 (cd src ; autoconf)
60 %configure --prefix=%{_xprefix} --bindir=%{_xbindir}
61 %{__make})
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65
66 %{__make} install DESTDIR=$RPM_BUILD_ROOT
67
68 ln -sf gnome/mkinstalldirs frontend/mkinstalldirs
69 %{__make} -C frontend/gnome install DESTDIR=$RPM_BUILD_ROOT
70
71 gzip -9nf AUTHORS BUGS CREDITS HISTORY README REMARK.txt REVIEW TODO \
72         doc/{examples.txt,ocr.ps,unicode.txt} \
73         frontend/gnome/{AUTHORS,README,TODO}
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %files
79 %defattr(644,root,root,755)
80 %doc *.gz doc/*.gz
81 %attr(755,root,root) %{_bindir}/*
82 %{_mandir}/man1/*
83
84 %files gtk
85 %defattr(644,root,root,755)
86 %doc frontend/gnome/*.gz
87 %attr(755,root,root) %{_xbindir}/*
This page took 0.034354 seconds and 3 git commands to generate.