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