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