[cloud-utils] fix license handling

Tom Callaway spot at fedoraproject.org
Fri Jul 11 20:40:26 UTC 2014


commit 5140ddb403813ff6db3b560810c7436c582e9105
Author: Tom Callaway <spot at fedoraproject.org>
Date:   Fri Jul 11 16:40:44 2014 -0400

    fix license handling

 cloud-utils.spec |   13 ++++++++++---
 1 files 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 <spot at fedoraproject.org> - 0.27-12
+- fix license handling
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.27-11
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the scm-commits mailing list