From 0d88ecc4a62935c2ddb2de8129bd25415ac93238 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sat, 31 Jan 2015 22:18:08 +0200 Subject: [PATCH] Ship LICENSE.txt as %license where available --- optipng.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/optipng.spec b/optipng.spec index 4b46dec..3fdbcb9 100644 --- a/optipng.spec +++ b/optipng.spec @@ -1,6 +1,6 @@ Name: optipng Version: 0.7.5 -Release: 3%{?dist} +Release: 4%{?dist} Summary: PNG optimizer and converter Group: Applications/Multimedia @@ -51,12 +51,17 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) -%doc AUTHORS.txt README.txt LICENSE.txt doc/* +%{!?_licensedir:%global license %%doc} +%license LICENSE.txt +%doc AUTHORS.txt README.txt doc/* %{_bindir}/optipng %{_mandir}/man1/optipng.1* %changelog +* Sat Jan 31 2015 Ville Skyttä - 0.7.5-4 +- Ship LICENSE.txt as %%license where available + * Sun Aug 17 2014 Fedora Release Engineering - 0.7.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild