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