e17bfe4a57ebadd852d6ab5cf9790743ef5b1288
[platform/upstream/libpng.git] / packaging / libpng.spec
1 Name:           libpng
2 Version:        1.6.13
3 Release:        0
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}-%{release}
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 \
39     --disable-static \
40 %ifarch %arm armv7l armv7el aarch64
41     --enable-arm-neon=check
42 %endif
43
44
45 %__make %{?_smp_mflags}
46
47 %install
48 %make_install
49 rm -rf %{buildroot}/usr/share/man
50
51 %post -p /sbin/ldconfig
52 %postun -p /sbin/ldconfig
53
54 %files
55 %manifest %{name}.manifest
56 %license LICENSE
57 %{_libdir}/libpng*.so.*
58
59 %files devel
60 %manifest %{name}.manifest
61 %{_bindir}/*
62 %{_includedir}/*
63 %{_libdir}/libpng*.so
64 %{_libdir}/pkgconfig/*
65