|
|
@ -1,16 +1,11 @@
|
|
|
|
# add some speed-relevant compiler-flags
|
|
|
|
# add some speed-relevant compiler-flags
|
|
|
|
%global optflags %(echo %{optflags} -fno-math-errno -funroll-loops -fomit-frame-pointer -fPIC )
|
|
|
|
%global optflags %(echo %{optflags} -fno-math-errno -funroll-loops -fomit-frame-pointer -fPIC )
|
|
|
|
|
|
|
|
|
|
|
|
# we use %%license on recent distros, only
|
|
|
|
|
|
|
|
%if 0%{?fedora} >= 22 || 0%{?rhel} >= 8
|
|
|
|
|
|
|
|
%global with_license 1
|
|
|
|
|
|
|
|
%endif # 0%%{?fedora} >= 22 || 0%%{?rhel} >= 8
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global libname libimagequant
|
|
|
|
%global libname libimagequant
|
|
|
|
|
|
|
|
|
|
|
|
Name: pngquant
|
|
|
|
Name: pngquant
|
|
|
|
Version: 2.5.2
|
|
|
|
Version: 2.5.2
|
|
|
|
Release: 4%{?dist}
|
|
|
|
Release: 5%{?dist}
|
|
|
|
Summary: PNG quantization tool for reducing image file size
|
|
|
|
Summary: PNG quantization tool for reducing image file size
|
|
|
|
|
|
|
|
|
|
|
|
License: BSD with advertising
|
|
|
|
License: BSD with advertising
|
|
|
@ -115,21 +110,17 @@ popd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
|
|
|
|
# EPEL6 support https://fedoraproject.org/wiki/EPEL:Packaging#The_.25license_tag
|
|
|
|
|
|
|
|
%{!?_licensedir:%global license %doc}
|
|
|
|
%doc README.md CHANGELOG
|
|
|
|
%doc README.md CHANGELOG
|
|
|
|
%if 0%{?with_license}
|
|
|
|
|
|
|
|
%license COPYRIGHT
|
|
|
|
%license COPYRIGHT
|
|
|
|
%else # 0%%{?with_license}
|
|
|
|
|
|
|
|
%doc COPYRIGHT
|
|
|
|
|
|
|
|
%endif # 0%%{?with_license}
|
|
|
|
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_mandir}/man1/%{name}.1*
|
|
|
|
%{_mandir}/man1/%{name}.1*
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{libname}
|
|
|
|
%files -n %{libname}
|
|
|
|
%if 0%{?with_license}
|
|
|
|
# EPEL6 support https://fedoraproject.org/wiki/EPEL:Packaging#The_.25license_tag
|
|
|
|
|
|
|
|
%{!?_licensedir:%global license %doc}
|
|
|
|
%license lib/COPYRIGHT
|
|
|
|
%license lib/COPYRIGHT
|
|
|
|
%else # 0%%{?with_license}
|
|
|
|
|
|
|
|
%doc lib/COPYRIGHT
|
|
|
|
|
|
|
|
%endif # 0%%{?with_license}
|
|
|
|
|
|
|
|
%{_libdir}/%{libname}.so.*
|
|
|
|
%{_libdir}/%{libname}.so.*
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{libname}-devel
|
|
|
|
%files -n %{libname}-devel
|
|
|
@ -139,6 +130,9 @@ popd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Sat Dec 19 2015 Sérgio Basto <sergio@serjux.com> - 2.5.2-5
|
|
|
|
|
|
|
|
- Following https://fedoraproject.org/wiki/EPEL:Packaging#The_.25license_tag
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Dec 19 2015 Björn Esser <fedora@besser82.io> - 2.5.2-4
|
|
|
|
* Sat Dec 19 2015 Björn Esser <fedora@besser82.io> - 2.5.2-4
|
|
|
|
- Add '-std=c99' for building the testsuite binary
|
|
|
|
- Add '-std=c99' for building the testsuite binary
|
|
|
|
|
|
|
|
|
|
|
|