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