Name: libpng
-Version: 1.6.13
+Version: 1.6.21
Release: 1
-License: Zlib
+License: Libpng
Summary: A library of functions for manipulating PNG image format files
Url: http://www.libpng.org/pub/png/
Group: System/Libraries
%package devel
Summary: Development tools for programs to manipulate PNG image format files
Group: Development/Libraries
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}-%{release}
Requires: zlib-devel
%description devel
cp %{SOURCE1001} .
%build
+%ifarch %{arm}
+CFLAGS+=" -D_ARCH_ARM_ -mfpu=neon"
+%endif
+
+%if "%{tizen_profile_name}" == "tv"
+CFLAGS+=" -D_PNG_COLOR_PICK_ENABLED_ -D_PNG_SEQUENTIAL_READ_SUPPORTED_"
+%endif
%configure \
--disable-static \
%endif
-make %{?_smp_mflags}
+%__make %{?_smp_mflags}
%install
%make_install