[libcap-ng] fix license handling

Tom Callaway spot at fedoraproject.org
Thu Jul 17 18:13:45 UTC 2014


commit 39893e9858399b84147e836b1233d1b9bc10c449
Author: Tom Callaway <spot at fedoraproject.org>
Date:   Thu Jul 17 14:14:05 2014 -0400

    fix license handling

 libcap-ng.spec |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/libcap-ng.spec b/libcap-ng.spec
index c6c9a97..ff10d03 100644
--- a/libcap-ng.spec
+++ b/libcap-ng.spec
@@ -3,7 +3,7 @@
 Summary: An alternate posix capabilities library
 Name: libcap-ng
 Version: 0.7.4
-Release: 5%{?dist}
+Release: 6%{?dist}
 License: LGPLv2+
 Group: System Environment/Libraries
 URL: http://people.redhat.com/sgrubb/libcap-ng
@@ -90,7 +90,8 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root,-)
-%doc COPYING.LIB
+%{!?_licensedir:%global license %%doc}
+%license COPYING.LIB
 %attr(0755,root,root) /%{_lib}/libcap-ng.so.*
 
 %files devel
@@ -108,11 +109,15 @@ rm -rf $RPM_BUILD_ROOT
 
 %files utils
 %defattr(-,root,root,-)
-%doc COPYING
+%{!?_licensedir:%global license %%doc}
+%license COPYING
 %attr(0755,root,root) %{_bindir}/*
 %attr(0644,root,root) %{_mandir}/man8/*
 
 %changelog
+* Thu Jul 17 2014 Tom Callaway <spot at fedoraproject.org> - 0.7.4-6
+- fix license handling
+
 * Mon Jun 23 2014 Kyle McMartin <kyle at redhat.com> 0.7.4-5
 - Clamp CAP_LAST_CAP at /proc/sys/kernel/cap_last_cap's value in the
   Python bindings test if possible, otherwise use the value from


More information about the scm-commits mailing list