Modify define for TV product
[platform/upstream/libpng.git] / packaging / libpng.spec
index e17bfe4..2a4a60c 100644 (file)
@@ -1,7 +1,7 @@
 Name:           libpng
-Version:        1.6.13
-Release:        0
-License:        Zlib
+Version:        1.6.21
+Release:        1
+License:        Libpng
 Summary:        A library of functions for manipulating PNG image format files
 Url:            http://www.libpng.org/pub/png/
 Group:          System/Libraries
@@ -34,6 +34,13 @@ for developing programs using the PNG (Portable Network Graphics) library.
 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 \