diff --git a/pngcrush-1.8.11-buildfix-i586.patch b/pngcrush-1.8.11-buildfix-i586.patch new file mode 100644 index 0000000..c2b0c17 --- /dev/null +++ b/pngcrush-1.8.11-buildfix-i586.patch @@ -0,0 +1,11 @@ +--- pngcrush-1.8.11/zutil.h.orig 2017-09-04 09:05:51.391314480 +0200 ++++ pngcrush-1.8.11/zutil.h 2017-09-04 09:04:27.037805744 +0200 +@@ -30,7 +30,7 @@ + #endif + + #ifdef Z_SOLO +- typedef long ptrdiff_t; /* guess -- will be caught if guess is wrong */ ++/* typedef long ptrdiff_t; /* guess -- will be caught if guess is wrong */ + #endif + + #ifndef local diff --git a/pngcrush.spec b/pngcrush.spec index 7a45a81..7a589fe 100644 --- a/pngcrush.spec +++ b/pngcrush.spec @@ -1,5 +1,5 @@ Name: pngcrush -Version: 1.8.10 +Version: 1.8.11 Release: 1mamba Summary: An optimizer for PNG (Portable Network Graphics) files Group: Applications/Graphics @@ -8,6 +8,7 @@ Distribution: openmamba Packager: Silvan Calarco URL: http://pmt.sourceforge.net/pngcrush/ Source: http://downloads.sourceforge.net/project/pmt/pngcrush/%{version}/pngcrush-%{version}.tar.xz +Patch0: pngcrush-1.8.11-buildfix-i586.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel @@ -23,6 +24,9 @@ Its main purpose is to reduce the size of the PNG IDAT datastream by trying vari %prep %setup -q +%ifarch %{ix86} +%patch0 -p1 +%endif %build %make @@ -39,6 +43,9 @@ install -D -m0755 pngcrush %{buildroot}%{_bindir}/pngcrush %{_bindir}/pngcrush %changelog +* Wed Jan 25 2017 Automatic Build System 1.8.11-1mamba +- automatic version update by autodist + * Wed Nov 02 2016 Automatic Build System 1.8.10-1mamba - automatic version update by autodist