0708d457d9d04fc50348e5d06d2a7979e521e824
[platform/upstream/libpng.git] / packaging / libpng.spec
1 Name:           libpng
2 Version:        1.6.13
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 Source1001:     libpng.manifest
10 BuildRequires:  zlib-devel
11
12 %description
13 The libpng package contains a library of functions for creating and
14 manipulating PNG (Portable Network Graphics) image format files.  PNG
15 is a bit-mapped graphics format similar to the GIF format.  PNG was
16 created to replace the GIF format, since GIF uses a patented data
17 compression algorithm.
18
19 Libpng should be installed if you need to manipulate PNG format image
20 files.
21
22 %package devel
23 Summary:        Development tools for programs to manipulate PNG image format files
24 Group:          Development/Libraries
25 Requires:       %{name} = %{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 cp %{SOURCE1001} .
35
36 %build
37
38 %configure --disable-static
39 make %{?_smp_mflags}
40
41 %install
42 %make_install
43 rm -rf %{buildroot}/usr/share/man
44
45 %post -p /sbin/ldconfig
46 %postun -p /sbin/ldconfig
47
48 %files
49 %manifest %{name}.manifest
50 %license LICENSE
51 %{_libdir}/libpng*.so.*
52
53 %files devel
54 %manifest %{name}.manifest
55 %{_bindir}/*
56 %{_includedir}/*
57 %{_libdir}/libpng*.so
58 %{_libdir}/pkgconfig/*
59