|
|
@ -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
|
|
|
|
%global libname libimagequant
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: pngquant
|
|
|
|
Name: pngquant
|
|
|
|
Version: 2.10.1
|
|
|
|
Version: 2.10.1
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Summary: PNG quantization tool for reducing image file size
|
|
|
|
Summary: PNG quantization tool for reducing image file size
|
|
|
|
|
|
|
|
|
|
|
|
License: GPLv3+
|
|
|
|
License: GPLv3+
|
|
|
@ -17,6 +15,7 @@ BuildRequires: libpng-devel >= 1.2.46-1
|
|
|
|
BuildRequires: zlib-devel >= 1.2.3-1
|
|
|
|
BuildRequires: zlib-devel >= 1.2.3-1
|
|
|
|
BuildRequires: lcms2-devel
|
|
|
|
BuildRequires: lcms2-devel
|
|
|
|
BuildRequires: %{libname}-devel >= %{version}
|
|
|
|
BuildRequires: %{libname}-devel >= %{version}
|
|
|
|
|
|
|
|
|
|
|
|
Requires: libpng%{?_isa} >= 1.2.46-1
|
|
|
|
Requires: libpng%{?_isa} >= 1.2.46-1
|
|
|
|
Requires: zlib%{?_isa} >= 1.2.3-1
|
|
|
|
Requires: zlib%{?_isa} >= 1.2.3-1
|
|
|
|
Requires: %{libname}%{?_isa} = %{version}
|
|
|
|
Requires: %{libname}%{?_isa} = %{version}
|
|
|
@ -31,10 +30,15 @@ their 24/32-bit version. %{name} uses the median cut algorithm.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%autosetup -p 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%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
|
|
|
|
%configure --with-openmp --with-libimagequant
|
|
|
|
%make_build
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
|
@ -44,7 +48,7 @@ their 24/32-bit version. %{name} uses the median cut algorithm.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
make test
|
|
|
|
%make_build test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
@ -55,6 +59,9 @@ make test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Mon Jul 10 2017 Björn Esser <besser82@fedoraproject.org> - 2.10.1-2
|
|
|
|
|
|
|
|
- Apply additional compiler flags properly
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 10 2017 Sandro Mani <manisandro@gmail.com> - 2.10.1-1
|
|
|
|
* Mon Jul 10 2017 Sandro Mani <manisandro@gmail.com> - 2.10.1-1
|
|
|
|
- Update to 2.10.1
|
|
|
|
- Update to 2.10.1
|
|
|
|
|
|
|
|
|
|
|
|