Summary: PNG library - Mingw32 cross version
Summary(pl.UTF-8): Biblioteka PNG - wersja skrośna dla Mingw32
Name: crossmingw32-%{realname}
-Version: 1.4.1
+Version: 1.4.2
Release: 1
License: distributable
Group: Development/Libraries
Source0: http://downloads.sourceforge.net/libpng/%{realname}-%{version}.tar.xz
-# Source0-md5: d4cb0236cce9ce8ff49a22994a01f9e0
+# Source0-md5: d22ef5878842d918d6d110c0e7cc3afc
Patch0: %{realname}-pngminus.patch
# http://littlesvr.ca/apng/diff/%{name}-%{version}-apng.patch | dos2unix
Patch1: %{realname}-apng.patch
-Patch2: %{realname}-read-dither.patch
URL: http://www.libpng.org/pub/png/libpng.html
BuildRequires: crossmingw32-gcc
BuildRequires: crossmingw32-zlib
xz -dc %{SOURCE0} | tar xf - -C ..
%patch0 -p1
%patch1 -p0
-%patch2 -p1
# avoid version script
sed -i -e 's/^GLD=.*/GLD=/' configure
+++ /dev/null
-diff -Naur libpng-1.4.0-orig/pngconf.h libpng-1.4.0/pngconf.h
---- libpng-1.4.0-orig/pngconf.h 2010-01-27 20:38:27.000000000 -0500
-+++ libpng-1.4.0/pngconf.h 2010-01-27 20:44:44.000000000 -0500
-@@ -497,11 +497,9 @@
- # ifndef PNG_NO_READ_INVERT
- # define PNG_READ_INVERT_SUPPORTED
- # endif
--#if 0 /* removed from libpng-1.4.0 */
- # ifndef PNG_NO_READ_DITHER
- # define PNG_READ_DITHER_SUPPORTED
- # endif
--#endif /* 0 */
- # ifndef PNG_NO_READ_BACKGROUND
- # define PNG_READ_BACKGROUND_SUPPORTED
- # endif