]> git.pld-linux.org Git - packages/gocr.git/blob - gocr.spec
85e087106dd9f444a5d91881a8b119350c9be7c1
[packages/gocr.git] / gocr.spec
1 Summary:        GNU OCR
2 Summary(pl):    Program GNU do OCR
3 Name:           gocr
4 Version:        0.37
5 Release:        2
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:  automake
13 BuildRequires:  gtk+-devel >= 1.2.8
14 BuildRequires:  netpbm-devel
15 BuildRequires:  tetex-dvips
16 BuildRequires:  tetex-latex
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %define         _xprefix        /usr/X11R6
20 %define         _xbindir        %{_xprefix}/bin
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
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 gtk
37 Summary:        Gtk+ frontend for gocr
38 Summary(pl):    Frontend Gtk+ do gocr
39 Group:          X11/Applications/Graphics
40 Requires:       %{name} = %{version}
41
42 %description gtk
43 Gtk+-based frontend for gocr.
44
45 %description gtk -l pl
46 Frontend do gocr oparty o Gtk+.
47
48 %prep
49 %setup -q
50
51 %build
52 %{__aclocal}
53 cp -f /usr/share/automake/config.* .
54 %{__autoconf}
55 %configure
56 %{__make}
57
58 # ok its ugly..but works
59 cd frontend/gnome
60 rm -f Makefile configure src/missing
61 %{__aclocal}
62 %{__automake}
63 %{__autoconf}
64 cd src
65 %{__aclocal}
66 %{__automake}
67 %{__autoconf}
68 cd ..
69 %configure \
70         --prefix=%{_xprefix} \
71         --bindir=%{_xbindir} 
72 %{__make}
73 cd ../../..
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77
78 %{__make} install \
79         DESTDIR=$RPM_BUILD_ROOT
80 %{__make} -C frontend/gnome install \
81         DESTDIR=$RPM_BUILD_ROOT
82
83 ln -sf gnome/mkinstalldirs frontend/mkinstalldirs
84
85 %clean
86 rm -rf $RPM_BUILD_ROOT
87
88 %files
89 %defattr(644,root,root,755)
90 %doc AUTHORS BUGS CREDITS HISTORY README REMARK.txt REVIEW TODO
91 %doc doc/{examples.txt,gocr.html,unicode.txt}
92 %attr(755,root,root) %{_bindir}/*
93 %{_mandir}/man1/*
94
95 %files gtk
96 %defattr(644,root,root,755)
97 %doc frontend/gnome/{AUTHORS,README,TODO}
98 %attr(755,root,root) %{_xbindir}/*
This page took 0.111516 seconds and 2 git commands to generate.