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