Name: libpng
-Version: 1.2.46
+Version: 1.6.21
Release: 1
-License: zlib
+License: Zlib
Summary: A library of functions for manipulating PNG image format files
Url: http://www.libpng.org/pub/png/
Group: System/Libraries
Source: %{name}-%{version}.tar.bz2
+Source1001: libpng.manifest
BuildRequires: zlib-devel
-Requires(post): /sbin/ldconfig
-Requires(postun): /sbin/ldconfig
%description
The libpng package contains a library of functions for creating and
%package devel
Summary: Development tools for programs to manipulate PNG image format files
Group: Development/Libraries
-Requires: %{name} = %{version}
-Requires: libpng = %{version}
+Requires: %{name} = %{version}-%{release}
Requires: zlib-devel
%description devel
%prep
%setup -q
+cp %{SOURCE1001} .
%build
-%configure --disable-static
-make %{?_smp_mflags}
+%configure \
+ --disable-static \
+%ifarch %arm armv7l armv7el aarch64
+ --enable-arm-neon=check
+%endif
+
+
+%__make %{?_smp_mflags}
%install
%make_install
%postun -p /sbin/ldconfig
%files
+%manifest %{name}.manifest
+%license LICENSE
%{_libdir}/libpng*.so.*
%files devel
+%manifest %{name}.manifest
%{_bindir}/*
%{_includedir}/*
%{_libdir}/libpng*.so