]> git.pld-linux.org Git - packages/gocr.git/blob - gocr.spec
ddacb303032f7f505a7e7e58dbd0f92063a2fe2d
[packages/gocr.git] / gocr.spec
1 Summary:        GNU OCR
2 Summary(pl):    Program GNU do OCR
3 Name:           gocr
4 Version:        0.43
5 Release:        1
6 License:        GPL
7 Group:          Applications/Graphics
8 Source0:        http://dl.sourceforge.net/jocr/%{name}-%{version}.tar.gz
9 # Source0-md5:  f989fe8e24f82d19c8ce55df15784e15
10 Source1:        %{name}.desktop
11 Source2:        %{name}.png
12 Patch0:         %{name}-link.patch
13 URL:            http://jocr.sourceforge.net/
14 BuildRequires:  autoconf >= 2.13
15 BuildRequires:  automake
16 BuildRequires:  gtk+-devel >= 1.2.8
17 BuildRequires:  netpbm-devel
18 BuildRequires:  tetex-dvips
19 BuildRequires:  tetex-latex
20 Requires:       netpbm-progs
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 GOCR is an optical character recognition program, released under the
25 GNU General Public License. It reads images in many formats (pnm, pbm,
26 pgm, ppm, some pcx and tga image files (or PNM from stdin); if
27 pnm-tools installed and running linux-like system you can also use
28 pnm.gz, pnm.bz2, png, jpg, tiff, gif, bmp and others) and outputs a
29 text file.
30
31 %description -l pl
32 GOCR jest programem do rozpoznawania pisma wypuszczonym na licencji
33 GNU GPL. Czyta obrazki w formatach pnm, pbm, pgm, ppm, niektóre pcx i
34 tga; je¿eli s± zainstalowane narzêdzia do PNM, mo¿e te¿ czytaæ pnm.gz,
35 pnm.bz2, png,jpg, tiff, gif, bmp i inne. Wynikiem jest plik tekstowy.
36
37 %package gtk
38 Summary:        GTK+ frontend for gocr
39 Summary(pl):    Frontend GTK+ do gocr
40 Group:          X11/Applications/Graphics
41 Requires:       %{name} = %{version}-%{release}
42
43 %description gtk
44 GTK+-based frontend for gocr.
45
46 %description gtk -l pl
47 Frontend do gocr oparty o GTK+.
48
49 %package tcl
50 Summary:        Tcl/Tk frontend for gocr
51 Summary(pl):    Frontend Tcl/Tk do gocr
52 Group:          X11/Applications/Graphics
53 Requires:       %{name} = %{version}-%{release}
54 Requires:       tk
55
56 %description tcl
57 Tcl/Tk frontend for gocr.
58
59 %description tcl -l pl
60 Frontend Tcl/Tk do gocr.
61
62 %prep
63 %setup -q
64 %patch0 -p1
65
66 %build
67 %{__aclocal}
68 cp -f /usr/share/automake/config.* .
69 %{__autoconf}
70 %configure
71 %{__make}
72
73 # ok its ugly..but works
74 cd frontend/gnome
75 rm -f Makefile configure
76 %{__aclocal}
77 %{__automake}
78 %{__autoconf}
79 cd src
80 %{__aclocal}
81 %{__automake}
82 %{__autoconf}
83 cd ..
84 %configure
85 %{__make}
86
87 %install
88 rm -rf $RPM_BUILD_ROOT
89 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
90
91 %{__make} install \
92         DESTDIR=$RPM_BUILD_ROOT
93
94 %{__make} -C frontend/gnome install \
95         DESTDIR=$RPM_BUILD_ROOT
96
97 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
98 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
99
100 # nothing useful yet
101 rm $RPM_BUILD_ROOT%{_libdir}/libPgm2asc.a
102 rm $RPM_BUILD_ROOT%{_includedir}/gocr.h
103
104 %clean
105 rm -rf $RPM_BUILD_ROOT
106
107 %files
108 %defattr(644,root,root,755)
109 %doc AUTHORS BUGS CREDITS HISTORY README REMARK.txt REVIEW TODO
110 %doc doc/{examples.txt,gocr.html,unicode.txt}
111 %attr(755,root,root) %{_bindir}/gocr
112 %{_mandir}/man1/gocr.1*
113
114 %files gtk
115 %defattr(644,root,root,755)
116 %doc frontend/gnome/{AUTHORS,README,TODO}
117 %attr(755,root,root) %{_bindir}/gtk-ocr
118 %{_desktopdir}/*.desktop
119 %{_pixmapsdir}/*
120
121 %files tcl
122 %defattr(644,root,root,755)
123 %attr(755,root,root) %{_bindir}/gocr.tcl
This page took 0.030904 seconds and 3 git commands to generate.