]>
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 |
725b6b37 | 8 | Group(es): Bibliotecas |
46682b62 | 9 | Group(fr): Librairies |
11885210 | 10 | Group(pl): Biblioteki |
f10fde6a | 11 | Source0: http://prdownloads.sourceforge.net/libmng/%{name}-%{version}.tar.gz |
11885210 | 12 | Patch0: %{name}-automake.patch |
46682b62 | 13 | URL: http://www.libmng.com/ |
e4f034fa | 14 | BuildRequires: automake |
725b6b37 | 15 | BuildRequires: autoconf >= 2.50 |
f10fde6a | 16 | BuildRequires: libjpeg-devel |
e4f034fa | 17 | BuildRequires: libtool |
18 | BuildRequires: zlib-devel | |
46682b62 | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
0293aa7b | 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 | |
46682b62 | 27 | Summary: Development tools for programs to manipulate MNG format files |
28 | Group: Development/Libraries | |
11885210 | 29 | Group(de): Entwicklung/Libraries |
46682b62 | 30 | Group(fr): Development/Librairies |
11885210 | 31 | Group(pl): Programowanie/Biblioteki |
46682b62 | 32 | Requires: %{name} = %{version} |
97319d4f JB |
33 | Requires: libjpeg-devel |
34 | Requires: zlib-devel | |
46682b62 | 35 | |
0293aa7b | 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 | |
46682b62 | 42 | files, you should install libmng-devel. You'll also need to install |
0293aa7b | 43 | the libmng package. |
44 | ||
46682b62 | 45 | %package static |
46 | Summary: Static MNG libraries | |
47 | Group: Development/Libraries | |
11885210 | 48 | Group(de): Entwicklung/Libraries |
46682b62 | 49 | Group(fr): Development/Librairies |
11885210 | 50 | Group(pl): Programowanie/Biblioteki |
46682b62 | 51 | Requires: %{name}-devel = %{version} |
0293aa7b | 52 | |
46682b62 | 53 | %description static |
54 | Static MNG libraries. | |
0293aa7b | 55 | |
56 | %prep | |
b012e7fe | 57 | %setup -q |
46682b62 | 58 | %patch -p1 |
0293aa7b | 59 | |
60 | %build | |
f10fde6a | 61 | rm -f acinclude.m4 missing |
e4f034fa | 62 | libtoolize --copy --force |
46682b62 | 63 | aclocal |
46682b62 | 64 | autoconf |
b012e7fe | 65 | automake -a -c |
f10fde6a | 66 | %configure \ |
67 | --enable-shared \ | |
68 | --enable-static \ | |
69 | --with-zlib \ | |
70 | --with-jpeg | |
46682b62 | 71 | %{__make} |
0293aa7b | 72 | |
73 | %install | |
74 | rm -rf $RPM_BUILD_ROOT | |
0293aa7b | 75 | |
46682b62 | 76 | %{__make} install DESTDIR=$RPM_BUILD_ROOT |
0293aa7b | 77 | |
4b4577d2 | 78 | gzip -9nf Changes README* doc/{doc.readme,libmng.txt} |
46682b62 | 79 | |
80 | %post -p /sbin/ldconfig | |
0293aa7b | 81 | %postun -p /sbin/ldconfig |
82 | ||
46682b62 | 83 | %clean |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
0293aa7b | 86 | %files |
46682b62 | 87 | %defattr(644,root,root,755) |
88 | %attr(755,root,root) %{_libdir}/lib*.so.*.* | |
89 | %{_mandir}/man5/* | |
0293aa7b | 90 | |
91 | %files devel | |
46682b62 | 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 |