]>
Commit | Line | Data |
---|---|---|
9b394cdb | 1 | Summary: Leptonica - image processing and analysis library |
8f368be0 | 2 | Summary(pl.UTF-8): Leptonica - biblioteka do przetwarzania i analizy obrazu |
9b394cdb | 3 | Name: leptonlib |
4e04a3e8 | 4 | Version: 1.70 |
f116fe5d | 5 | Release: 3 |
9b394cdb JB |
6 | License: BSD-like |
7 | Group: Libraries | |
cf9fca96 | 8 | #Source0Download: http://code.google.com/p/leptonica/downloads/list |
4e04a3e8 JR |
9 | Source0: http://www.leptonica.com/source/leptonica-%{version}.tar.gz |
10 | # Source0-md5: 50cc3e5287ef6e02429f96c30d96b569 | |
b2223484 | 11 | Patch0: %{name}-endiantest.patch |
9b394cdb | 12 | URL: http://www.leptonica.com/ |
648375ed JB |
13 | BuildRequires: autoconf >= 2.50 |
14 | BuildRequires: automake | |
4e04a3e8 | 15 | BuildRequires: giflib-devel >= 5 |
9b394cdb JB |
16 | BuildRequires: libjpeg-devel |
17 | BuildRequires: libpng-devel | |
18 | BuildRequires: libtiff-devel | |
cf9fca96 JB |
19 | BuildRequires: libtool >= 2:2 |
20 | BuildRequires: libwebp-devel | |
21 | BuildRequires: zlib-devel | |
9b394cdb JB |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
25 | Leptonica - image processing and analysis library. | |
26 | ||
1b948dd6 | 27 | %description -l pl.UTF-8 |
9b394cdb JB |
28 | Leptonica - biblioteka do przetwarzania i analizy obrazu. |
29 | ||
30 | %package devel | |
31 | Summary: Header files for lepton library | |
8f368be0 | 32 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki lepton |
9b394cdb JB |
33 | Group: Development/Libraries |
34 | Requires: %{name} = %{version}-%{release} | |
4e04a3e8 | 35 | Requires: giflib-devel >= 5 |
9b394cdb JB |
36 | Requires: libjpeg-devel |
37 | Requires: libpng-devel | |
38 | Requires: libtiff-devel | |
cf9fca96 JB |
39 | Requires: libwebp-devel |
40 | Requires: zlib-devel | |
9b394cdb JB |
41 | |
42 | %description devel | |
43 | Header files for lepton library. | |
44 | ||
1b948dd6 JR |
45 | %description devel -l pl.UTF-8 |
46 | Pliki nagłówkowe biblioteki lepton. | |
9b394cdb JB |
47 | |
48 | %package static | |
49 | Summary: Static lepton library | |
8f368be0 | 50 | Summary(pl.UTF-8): Statyczna biblioteka lepton |
9b394cdb JB |
51 | Group: Development/Libraries |
52 | Requires: %{name}-devel = %{version}-%{release} | |
53 | ||
54 | %description static | |
55 | Static lepton library. | |
56 | ||
1b948dd6 | 57 | %description static -l pl.UTF-8 |
9b394cdb JB |
58 | Statyczna biblioteka lepton. |
59 | ||
60 | %prep | |
cf9fca96 | 61 | %setup -q -n leptonica-%{version} |
9b394cdb JB |
62 | %patch0 -p1 |
63 | ||
64 | %build | |
648375ed JB |
65 | %{__libtoolize} |
66 | %{__aclocal} | |
67 | %{__autoconf} | |
68 | %{__autoheader} | |
69 | %{__automake} | |
cf9fca96 JB |
70 | # programs are mostly examples or tests (seems nothing really useful) |
71 | # and they have too generic names | |
72 | %configure \ | |
0f357cbb JB |
73 | --disable-programs \ |
74 | --disable-silent-rules | |
9b394cdb | 75 | |
648375ed | 76 | %{__make} |
9b394cdb JB |
77 | |
78 | %install | |
79 | rm -rf $RPM_BUILD_ROOT | |
9b394cdb | 80 | |
648375ed JB |
81 | %{__make} install \ |
82 | DESTDIR=$RPM_BUILD_ROOT | |
9b394cdb | 83 | |
6f2b61ff JR |
84 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/liblept.la |
85 | ||
9b394cdb JB |
86 | %clean |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
89 | %post -p /sbin/ldconfig | |
90 | %postun -p /sbin/ldconfig | |
91 | ||
92 | %files | |
93 | %defattr(644,root,root,755) | |
648375ed | 94 | %doc README.html leptonica-license.txt version-notes.html moller52.jpg |
b2223484 | 95 | %attr(755,root,root) %{_libdir}/liblept.so.*.*.* |
421a9bf4 | 96 | %attr(755,root,root) %ghost %{_libdir}/liblept.so.4 |
9b394cdb JB |
97 | |
98 | %files devel | |
99 | %defattr(644,root,root,755) | |
100 | %attr(755,root,root) %{_libdir}/liblept.so | |
b2223484 | 101 | %{_includedir}/leptonica |
6f2b61ff | 102 | %{_pkgconfigdir}/lept.pc |
9b394cdb JB |
103 | |
104 | %files static | |
105 | %defattr(644,root,root,755) | |
106 | %{_libdir}/liblept.a |