Sérgio M. Basto 9 years ago
parent 94c30553d6
commit 5447f2151d

@ -1,16 +1,11 @@
# add some speed-relevant compiler-flags
%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
Name: pngquant
Version: 2.5.2
Release: 4%{?dist}
Release: 5%{?dist}
Summary: PNG quantization tool for reducing image file size
License: BSD with advertising
@ -115,21 +110,17 @@ popd
%files
# EPEL6 support https://fedoraproject.org/wiki/EPEL:Packaging#The_.25license_tag
%{!?_licensedir:%global license %doc}
%doc README.md CHANGELOG
%if 0%{?with_license}
%license COPYRIGHT
%else # 0%%{?with_license}
%doc COPYRIGHT
%endif # 0%%{?with_license}
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%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
%else # 0%%{?with_license}
%doc lib/COPYRIGHT
%endif # 0%%{?with_license}
%{_libdir}/%{libname}.so.*
%files -n %{libname}-devel
@ -139,6 +130,9 @@ popd
%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
- Add '-std=c99' for building the testsuite binary

Loading…
Cancel
Save