From 5447f2151d202d70bf2130b1b6fcb169a892055b Mon Sep 17 00:00:00 2001 From: Sérgio M. Basto Date: Dec 19 2015 20:35:46 +0000 Subject: Following https://fedoraproject.org/wiki/EPEL:Packaging#The_.25license_tag --- diff --git a/pngquant.spec b/pngquant.spec index 7208978..7361fe6 100644 --- a/pngquant.spec +++ b/pngquant.spec @@ -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 - 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