diff --git a/pngquant.spec b/pngquant.spec index 924c81f..44737aa 100644 --- a/pngquant.spec +++ b/pngquant.spec @@ -1,11 +1,9 @@ -# add some speed-relevant compiler-flags -%global optflags %(echo %{optflags} -fno-math-errno -funroll-loops -fomit-frame-pointer -fPIC ) - %global libname libimagequant + Name: pngquant Version: 2.10.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: PNG quantization tool for reducing image file size License: GPLv3+ @@ -17,6 +15,7 @@ BuildRequires: libpng-devel >= 1.2.46-1 BuildRequires: zlib-devel >= 1.2.3-1 BuildRequires: lcms2-devel BuildRequires: %{libname}-devel >= %{version} + Requires: libpng%{?_isa} >= 1.2.46-1 Requires: zlib%{?_isa} >= 1.2.3-1 Requires: %{libname}%{?_isa} = %{version} @@ -31,10 +30,15 @@ their 24/32-bit version. %{name} uses the median cut algorithm. %prep -%setup -q +%autosetup -p 1 %build +# add some speed-relevant compiler-flags +export CFLAGS="%{optflags} -fno-math-errno -funroll-loops -fomit-frame-pointer -fPIC" +export CXXFLAGS="$CFLAGS" +export FFLAGS="%{%__global_fflags} -fno-math-errno -funroll-loops -fomit-frame-pointer -fPIC" +export FCFLAGS="$FFLAGS" %configure --with-openmp --with-libimagequant %make_build @@ -44,7 +48,7 @@ their 24/32-bit version. %{name} uses the median cut algorithm. %check -make test +%make_build test %files @@ -55,6 +59,9 @@ make test %changelog +* 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