From 5140ddb403813ff6db3b560810c7436c582e9105 Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Fri, 11 Jul 2014 16:40:44 -0400 Subject: [PATCH] fix license handling --- cloud-utils.spec | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/cloud-utils.spec b/cloud-utils.spec index fd2e1b4..79a8a83 100644 --- a/cloud-utils.spec +++ b/cloud-utils.spec @@ -1,7 +1,7 @@ Summary: Cloud image management utilities Name: cloud-utils Version: 0.27 -Release: 11%{?dist} +Release: 12%{?dist} License: GPLv3 Group: System Environment/Base URL: https://launchpad.net/cloud-utils/trunk/0.27/+download/cloud-utils-0.27.tar.gz @@ -96,7 +96,9 @@ cp man/growpart.* $RPM_BUILD_ROOT/%{_mandir}/man1/ # Files for the main package %if %{BuildMainPackage} %files -%doc ChangeLog LICENSE +%doc ChangeLog +%{!?_licensedir:%global license %%doc} +%license LICENSE %{_bindir}/cloud-localds %{_bindir}/cloud-publish-tarball %{_bindir}/cloud-run-instances @@ -114,12 +116,17 @@ cp man/growpart.* $RPM_BUILD_ROOT/%{_mandir}/man1/ # Files for the growpart subpackage %files growpart -%doc ChangeLog LICENSE +%doc ChangeLog +%{!?_licensedir:%global license %%doc} +%license LICENSE %{_bindir}/growpart %doc %{_mandir}/man1/growpart.* %changelog +* Fri Jul 11 2014 Tom Callaway - 0.27-12 +- fix license handling + * Sat Jun 07 2014 Fedora Release Engineering - 0.27-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild