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