]> git.pld-linux.org Git - SPECS.git/blob - libgocr.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / libgocr.spec
1 Summary:        GOCR API library
2 Summary(pl.UTF-8):      Biblioteka GOCR API
3 Name:           libgocr
4 Version:        0.7.2
5 Release:        2
6 License:        LGPL
7 Group:          Libraries
8 Source0:        http://dl.sourceforge.net/jocr/%{name}-%{version}.tar.gz
9 # Source0-md5:  1b4747f02a0f2eadf31228f19c120265
10 Patch0:         %{name}-doc.patch
11 Patch1:         %{name}-configure.patch
12 URL:            http://jocr.sourceforge.net/
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRequires:  netpbm-devel
16 BuildRequires:  tetex-dvips
17 BuildRequires:  tetex-latex
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 GOCR (GNU Optical Character Recognition) API is a library, released
22 under the LGPL, intended to make life easier to the developers of OCR
23 algorithms. It handles all the internal problems, structures, data,
24 images, etc, freeing the programmer of all this burden. All one has to
25 do is to write a plugin (using, for example, the Module Development
26 Kit), which "simply" processes the image of a character and returns
27 its value. Easy.
28
29 %description -l pl.UTF-8
30 GOCR (GNU OCR) API jest biblioteką na licencji LGPL mającą za zadanie
31 ułatwić życie programistom algorytmów OCR. Biblioteka obsługuje wiele
32 wewnętrznych problemów, struktur, danych, obrazków - uwalniając
33 programistę od tego ciężaru. Wszystko, co musi napisać programista, to
34 plugin (używając np. Module Development Kit), który "tylko" obrabia
35 obraz znaku i zwraca jego wartość.
36
37 %package devel
38 Summary:        Development package for GOCR API
39 Summary(pl.UTF-8):      Pakiet dla programistów używających GOCR API
40 Group:          Development/Libraries
41 Requires:       %{name} = %{version}-%{release}
42
43 %description devel
44 Header files and developer's documentation for GOCR API.
45
46 %description devel -l pl.UTF-8
47 Pliki nagłówkowe i dokumentacja programisty do GOCR API.
48
49 %package static
50 Summary:        Static GOCR API library
51 Summary(pl.UTF-8):      Biblioteka statyczna GOCR API
52 Group:          Development/Libraries
53 Requires:       %{name}-devel = %{version}-%{release}
54
55 %description static
56 Static version of GOCR API library.
57
58 %description static -l pl.UTF-8
59 Statyczna wersja biblioteki GOCR API.
60
61 %prep
62 %setup -q
63 %patch0 -p1
64 %patch1 -p1
65
66 %build
67 rm -f missing
68 %{__aclocal}
69 %{__autoconf}
70 %{__automake}
71 %configure
72 %{__make}
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76
77 %{__make} install \
78         DESTDIR=$RPM_BUILD_ROOT \
79         gocrdir=%{_includedir}
80
81 %clean
82 rm -rf $RPM_BUILD_ROOT
83
84 %post   -p /sbin/ldconfig
85 %postun -p /sbin/ldconfig
86
87 %files
88 %defattr(644,root,root,755)
89 %doc Changelog README STATUS TODO doc/developers.txt doc/api.ps
90 %attr(755,root,root) %{_libdir}/*.so.*.*
91
92 %files devel
93 %defattr(644,root,root,755)
94 %doc doc/*.gz
95 %attr(755,root,root) %{_libdir}/*.so
96 %{_libdir}/*.la
97 %{_includedir}/gocr
98
99 %files static
100 %defattr(644,root,root,755)
101 %{_libdir}/*.a
This page took 0.041434 seconds and 3 git commands to generate.