%global libname libimagequant Name: pngquant Version: 2.18.0 Release: 8%{?dist} Summary: PNG quantization tool for reducing image file size License: GPL-3.0-or-later %global _smp_build_ncpus 1 URL: http://%{name}.org Source0: https://github.com/pornel/%{name}/archive/%{version}/%{name}-%{version}.tar.gz # Comment out failing test on EL < 8 due to old libpng Patch1: pngquant-old_libpng.patch BuildRequires: gcc BuildRequires: make BuildRequires: sed BuildRequires: libpng-devel >= 1.2.46-1 BuildRequires: zlib-devel >= 1.2.3-1 BuildRequires: lcms2-devel BuildRequires: %{libname}-devel Requires: libpng%{?_isa} >= 1.2.46-1 Requires: zlib%{?_isa} >= 1.2.3-1 Requires: %{libname}%{?_isa} %description %{name} converts 24/32-bit RGBA PNG images to 8-bit palette with alpha channel preserved. Such images are compatible with all modern web browsers and a compatibility setting is available to help transparency degrade well in Internet Explorer 6. Quantized files are often 40-70 percent smaller than their 24/32-bit version. %{name} uses the median cut algorithm. %prep %setup -q %if 0%{?rhel} && 0%{?rhel} < 8 %patch -P1 -p1 -b .oldlibpng %endif # Relax version check for compatibility with newer libimagequant sed -i 's/fgrep 2./grep -E "2|4."/' test/test.sh %build # add some speed-relevant compiler-flags export CFLAGS="%{optflags} -fno-math-errno -funroll-loops -fomit-frame-pointer -fPIC" %configure --with-openmp --with-libimagequant %make_build %install %make_install %check # Neuter test failures on s390x due to # test: test/test.c:81: test_histogram: Assertion `LIQ_OK == err' failed. %ifarch s390x %make_build test || true %else %make_build test %endif %files %doc README.md CHANGELOG %license COPYRIGHT %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %changelog * Fri Jul 19 2024 Fedora Release Engineering - 2.18.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jan 25 2024 Davide Cavalca - 2.18.0-7 - Neuter test failures on s390x * Thu Jan 25 2024 Davide Cavalca - 2.18.0-6 - Relax version check in tests; Fixes: RHBZ#2226114 * Thu Jan 25 2024 Fedora Release Engineering - 2.18.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 2.18.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 2.18.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sat Mar 04 2023 Sandro Mani - 2.18.0-2 - Rebuild (libimagequant) * Sat Jan 28 2023 Sandro Mani - 2.18.0-1 - Update to 2.18.0 * Fri Jan 20 2023 Fedora Release Engineering - 2.17.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 2.17.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 2.17.0-1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Nov 22 2021 Sandro Mani - 2.17.0-1 - Update to 2.17.0 * Tue Nov 16 2021 Sandro Mani - 2.16.0-2 - Rebuild (libimagequant) * Tue Sep 21 2021 Sandro Mani - 2.16.0-1 - Update to 2.16.0 * Fri Jul 23 2021 Fedora Release Engineering - 2.15.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sat May 15 2021 Sandro Mani - 2.15.1-1 - Update to 2.15.1 * Wed May 12 2021 Sandro Mani - 2.15.0-1 - Update to 2.15.0 * Wed Mar 03 2021 Sandro Mani - 2.14.1-1 - Update to 2.14.1 * Thu Jan 28 2021 Sandro Mani - 2.14.0-1 - Update to 2.14.0 * Wed Jan 27 2021 Fedora Release Engineering - 2.13.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sun Nov 22 2020 Sandro Mani - 2.13.1-1 - Update to 2.13.1 * Mon Oct 19 2020 Sandro Mani - 2.13.0-1 - Update to 2.13.0 * Tue Jul 28 2020 Fedora Release Engineering - 2.12.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Fedora Release Engineering - 2.12.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Dec 30 2019 Sandro Mani - 2.12.6-1 - Update to 2.12.6 * Mon Jul 29 2019 Sandro Mani - 2.12.5-1 - Update to 2.12.5 * Fri Jul 26 2019 Fedora Release Engineering - 2.12.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon May 27 2019 Sandro Mani - 2.12.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Oct 29 2018 Sandro Mani - 2.12.2-1 - Update to 2.12.2 * Fri Jul 13 2018 Fedora Release Engineering - 2.12.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Jun 08 2018 Sandro Mani - 2.12.1-1 - Update to 2.12.1 * Mon Mar 12 2018 Sandro Mani - 2.11.7-5 - Relax libimagequant version requires * Wed Mar 07 2018 Adam Williamson - 2.11.7-4 - Rebuild to fix GCC 8 mis-compilation See https://da.gd/YJVwk ("GCC 8 ABI change on x86_64") * Fri Feb 09 2018 Igor Gnatenko - 2.11.7-3 - Escape macros in %%changelog * Fri Feb 09 2018 Fedora Release Engineering - 2.11.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Jan 19 2018 Sandro Mani - 2.11.7-1 - Update to 2.11.7 * Thu Jan 18 2018 Sandro Mani - 2.11.6-1 - Update to 2.11.6 * Mon Nov 27 2017 Sandro Mani - 2.11.4-1 - Update to 2.11.4 * Thu Nov 23 2017 Sandro Mani - 2.11.3-1 - Update to 2.11.3 * Sat Nov 11 2017 Sandro Mani - 2.11.2-2 - Require libimagequant greater or equal %%{version} * Sun Nov 05 2017 Sandro Mani - 2.11.2-1 - Update to 2.11.2 * Wed Nov 01 2017 Sandro Mani - 2.11.0-1 - Update to 2.11.0 * Wed Aug 09 2017 Sandro Mani - 2.10.2-1 - Update to 2.10.2 * Thu Aug 03 2017 Fedora Release Engineering - 2.10.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 2.10.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Jul 10 2017 Björn Esser - 2.10.1-2 - Apply additional compiler flags properly * Mon Jul 10 2017 Sandro Mani - 2.10.1-1 - Update to 2.10.1 * Mon Jul 03 2017 Sérgio Basto - 2.10.0-1 - Update to 2.10.0 * Sat Jul 01 2017 Sérgio Basto - 2.9.1-2 - update to pre 2.9.2 * Wed Apr 19 2017 Sérgio Basto - 2.9.1-1 - Update pngquant to 2.9.1 - Update Makefile to better handle build the shared libraries - Remove libimagequant sub-package and use the new libimagequant package. * Sat Feb 11 2017 Fedora Release Engineering - 2.8.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Fri Dec 02 2016 Sérgio Basto - 2.8.1-1 - New upstream vesion, 2.8.1 * Fri Dec 02 2016 Sérgio Basto - 2.7.2-1 - Update pngquant 2.7.2 * Fri Jul 15 2016 Sérgio Basto - 2.7.1-1 - Update pngquant 2.7.1 * Tue May 10 2016 Sérgio Basto - 2.7.0-1 - Update to 2.7.0 - License change to GPLv3+ . * Thu Mar 17 2016 Sérgio Basto - 2.6.0-2 - Compilation with OpenMP * Sun Feb 21 2016 Fedora Release Monitoring - 2.6.0-1 - Update to 2.6.0 (#1310413) * Thu Feb 04 2016 Fedora Release Engineering - 2.5.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jan 20 2016 Sérgio Basto - 2.5.2-6 - Patches from here are upstreamed. * Sat Dec 19 2015 Sérgio Basto - 2.5.2-5 - Following https://fedoraproject.org/wiki/EPEL:Packaging#The_.25license_tag * Sat Dec 19 2015 Björn Esser - 2.5.2-4 - Add '-std=c99' for building the testsuite binary * Sat Dec 19 2015 Björn Esser - 2.5.2-3 - Add Patch1: make the configure-script work with %%configure - Build and run the testsuite - Conditionalize %%license - Remove all el5-related things, since we need gcc >= 4.2 anyways - Fix %%{?_isa} on (Build)Requires * Sat Dec 19 2015 Sérgio Basto - 2.5.2-2 - Disable pngquant debug (#1291885) * Thu Nov 26 2015 Fedora Release Monitoring - 2.5.2-1 - Update to 2.5.2 (#1285589) * Thu Aug 27 2015 Sérgio Basto - 2.5.1-1 - Update to 2.5.1 * Thu Jul 02 2015 Sérgio Basto - 2.5.0-1 - Update to 2.5.0 (#1238501) - Update to pngquant-2.5.0_fix-Makefile.patch . * Sat Jun 20 2015 Sérgio Basto - 2.4.2-3 - pngquant now requires libimagequant with same version * Thu Jun 18 2015 Fedora Release Engineering - 2.4.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Monitoring - 2.4.2-1 - Update to 2.4.2 (#1232532) - Add license tag. * Mon Apr 20 2015 Sérgio Basto - 2.4.1-1 - Update to 2.4.1 - Dropped "epel compile fix" patch * Sun Apr 19 2015 Sérgio Basto - 2.4.0.1-4 - epel compile fix or compile fix for png15 * Sun Apr 19 2015 Sérgio Basto - 2.4.0.1-3 - Reenabled SSE on i386, compiling is fixed ! - Better pngquant-2.4.0_fix-Makefile.patch more close to upstream. * Sun Apr 19 2015 Sérgio Basto - 2.4.0.1-2 - Fixed dependency of libimagequant.so.0 - Minor fix on ln to %%{libname}.so * Sun Apr 19 2015 Sérgio Basto - 2.4.0.1-1 - Update to 2.4.0 * Mon Feb 09 2015 Sérgio Basto - 2.3.4-1 - Update to 2.3.4 * Wed Jan 07 2015 Sérgio Basto - 2.3.2-1 - New bug fix release. * Fri Oct 17 2014 Sérgio Basto - 2.3.1-1 - New bug fixing release * Sat Sep 27 2014 Sérgio Basto - 2.3.0-2 - Disable SSE on i386, to workaround building on i386 , https://github.com/pornel/pngquant/issues/122 * Sat Sep 27 2014 Sérgio Basto - 2.3.0-1 - New upstream version 2.3.0 * Sun Aug 17 2014 Fedora Release Engineering - 2.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 2.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri Aug 23 2013 Björn Esser - 2.0.0-1 - new upstream version 2.0.0 (#989991) - fixes FTBFS in F20 / rawhide (#992807) * Sun Aug 04 2013 Fedora Release Engineering - 1.8.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu May 30 2013 Björn Esser - 1.8.3-6 - improved and added more el5-legacy related stuff * Fri May 24 2013 Björn Esser - 1.8.3-5 - add el5-build related conditonals * Wed May 22 2013 Björn Esser - 1.8.3-4 - add Group-Tag to make el5-build happy * Sun May 19 2013 Björn Esser - 1.8.3-3 - add Patch0: respect system compiler-flags - touch a fake configure-script during prep - export system cflags invoking configure-macro * Fri May 17 2013 Björn Esser - 1.8.3-2 - changed License: BSD --> BSD with advertising - removed -n{name}-{version} from prep - removed >= 1.2.46-1 from BuildRequires: libpng-devel * Tue May 14 2013 Björn Esser - 1.8.3-1 - Initial RPM release.