]> git.pld-linux.org Git - packages/leptonlib.git/blame - leptonlib.spec
- release 3 (by relup.sh)
[packages/leptonlib.git] / leptonlib.spec
CommitLineData
9b394cdb 1Summary: Leptonica - image processing and analysis library
8f368be0 2Summary(pl.UTF-8): Leptonica - biblioteka do przetwarzania i analizy obrazu
9b394cdb 3Name: leptonlib
4e04a3e8 4Version: 1.70
f116fe5d 5Release: 3
9b394cdb
JB
6License: BSD-like
7Group: Libraries
cf9fca96 8#Source0Download: http://code.google.com/p/leptonica/downloads/list
4e04a3e8
JR
9Source0: http://www.leptonica.com/source/leptonica-%{version}.tar.gz
10# Source0-md5: 50cc3e5287ef6e02429f96c30d96b569
b2223484 11Patch0: %{name}-endiantest.patch
9b394cdb 12URL: http://www.leptonica.com/
648375ed
JB
13BuildRequires: autoconf >= 2.50
14BuildRequires: automake
4e04a3e8 15BuildRequires: giflib-devel >= 5
9b394cdb
JB
16BuildRequires: libjpeg-devel
17BuildRequires: libpng-devel
18BuildRequires: libtiff-devel
cf9fca96
JB
19BuildRequires: libtool >= 2:2
20BuildRequires: libwebp-devel
21BuildRequires: zlib-devel
9b394cdb
JB
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25Leptonica - image processing and analysis library.
26
1b948dd6 27%description -l pl.UTF-8
9b394cdb
JB
28Leptonica - biblioteka do przetwarzania i analizy obrazu.
29
30%package devel
31Summary: Header files for lepton library
8f368be0 32Summary(pl.UTF-8): Pliki nagłówkowe biblioteki lepton
9b394cdb
JB
33Group: Development/Libraries
34Requires: %{name} = %{version}-%{release}
4e04a3e8 35Requires: giflib-devel >= 5
9b394cdb
JB
36Requires: libjpeg-devel
37Requires: libpng-devel
38Requires: libtiff-devel
cf9fca96
JB
39Requires: libwebp-devel
40Requires: zlib-devel
9b394cdb
JB
41
42%description devel
43Header files for lepton library.
44
1b948dd6
JR
45%description devel -l pl.UTF-8
46Pliki nagłówkowe biblioteki lepton.
9b394cdb
JB
47
48%package static
49Summary: Static lepton library
8f368be0 50Summary(pl.UTF-8): Statyczna biblioteka lepton
9b394cdb
JB
51Group: Development/Libraries
52Requires: %{name}-devel = %{version}-%{release}
53
54%description static
55Static lepton library.
56
1b948dd6 57%description static -l pl.UTF-8
9b394cdb
JB
58Statyczna 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
79rm -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
87rm -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
This page took 0.402163 seconds and 4 git commands to generate.