Add multi-lib support
[platform/upstream/libpng.git] / packaging / libpng.spec
1 Name:           libpng
2 Version:        1.2.50
3 Release:        1
4 License:        zlib
5 Summary:        A library of functions for manipulating PNG image format files
6 Url:            http://www.libpng.org/pub/png/
7 Group:          System/Libraries
8 Source:         %{name}-%{version}.tar.bz2
9 BuildRequires:  zlib-devel
10
11 %description
12 The libpng package contains a library of functions for creating and
13 manipulating PNG (Portable Network Graphics) image format files.  PNG
14 is a bit-mapped graphics format similar to the GIF format.  PNG was
15 created to replace the GIF format, since GIF uses a patented data
16 compression algorithm.
17
18 Libpng should be installed if you need to manipulate PNG format image
19 files.
20
21 %package devel
22 Summary:        Development tools for programs to manipulate PNG image format files
23 Group:          Development/Libraries
24 Requires:       %{name} = %{version}
25 Requires:       libpng = %{version}
26 Requires:       zlib-devel
27
28 %description devel
29 The libpng-devel package contains header files and documentation necessary
30 for developing programs using the PNG (Portable Network Graphics) library.
31
32 %prep
33 %setup -q
34
35 %build
36
37 %configure --disable-static
38 make %{?_smp_mflags}
39
40 %install
41 %make_install
42 rm -rf %{buildroot}/usr/share/man
43
44 %post -p /sbin/ldconfig
45 %postun -p /sbin/ldconfig
46
47 %files
48 %{_libdir}/libpng*.so.*
49
50 %files devel
51 %{_bindir}/*
52 %{_includedir}/*
53 %{_libdir}/libpng*.so
54 %{_libdir}/pkgconfig/*
55