]> git.pld-linux.org Git - packages/libmng.git/blob - libmng.spec
40409edacd258ed8ec6013e620f808b77d295225
[packages/libmng.git] / libmng.spec
1 Summary:        A library of functions for manipulating MNG format files
2 Name:           libmng
3 Version:        1.0.2
4 Release:        1
5 License:        BSD-like
6 Group:          Libraries
7 Group(de):      Libraries
8 Group(es):      Bibliotecas
9 Group(fr):      Librairies
10 Group(pl):      Biblioteki
11 Source0:        http://prdownloads.sourceforge.net/libmng/%{name}-%{version}.tar.gz
12 Patch0:         %{name}-automake.patch
13 URL:            http://www.libmng.com/
14 BuildRequires:  automake
15 BuildRequires:  autoconf >= 2.50
16 BuildRequires:  libjpeg-devel
17 BuildRequires:  libtool
18 BuildRequires:  zlib-devel
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 libmng - library for reading, writing, displaying and examing
23 Multiple-Image Network Graphics. MNG is the animation extension to the
24 popular PNG image-format.
25
26 %package devel
27 Summary:        Development tools for programs to manipulate MNG format files
28 Group:          Development/Libraries
29 Group(de):      Entwicklung/Libraries
30 Group(fr):      Development/Librairies
31 Group(pl):      Programowanie/Biblioteki
32 Requires:       %{name} = %{version}
33 Requires:       libjpeg-devel
34 Requires:       zlib-devel
35
36 %description devel
37 The libmng-devel package contains the header files and static
38 libraries necessary for developing programs using the MNG
39 (Multiple-Image Network Graphics) library.
40
41 If you want to develop programs which will manipulate MNG image format
42 files, you should install libmng-devel. You'll also need to install
43 the libmng package.
44
45 %package static
46 Summary:        Static MNG libraries
47 Group:          Development/Libraries
48 Group(de):      Entwicklung/Libraries
49 Group(fr):      Development/Librairies
50 Group(pl):      Programowanie/Biblioteki
51 Requires:       %{name}-devel = %{version}
52
53 %description static
54 Static MNG libraries.
55
56 %prep
57 %setup -q
58 %patch -p1
59
60 %build
61 rm -f acinclude.m4 missing
62 libtoolize --copy --force
63 aclocal
64 autoconf
65 automake -a -c
66 %configure \
67         --enable-shared \
68         --enable-static \
69         --with-zlib \
70         --with-jpeg
71 %{__make}
72
73 %install
74 rm -rf $RPM_BUILD_ROOT
75
76 %{__make} install DESTDIR=$RPM_BUILD_ROOT
77
78 gzip -9nf Changes README* doc/{doc.readme,libmng.txt}
79
80 %post   -p /sbin/ldconfig
81 %postun -p /sbin/ldconfig
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %files
87 %defattr(644,root,root,755)
88 %attr(755,root,root) %{_libdir}/lib*.so.*.*
89 %{_mandir}/man5/*
90
91 %files devel
92 %defattr(644,root,root,755)
93 %doc *.gz doc/*.gz
94 %{_includedir}/*
95 %attr(755,root,root) %{_libdir}/lib*.so
96 %attr(755,root,root) %{_libdir}/lib*.la
97 %{_mandir}/man3/*
98
99 %files static
100 %defattr(644,root,root,755)
101 %{_libdir}/libmng.a
This page took 0.085697 seconds and 2 git commands to generate.