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