From 39893e9858399b84147e836b1233d1b9bc10c449 Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Thu, 17 Jul 2014 14:14:05 -0400 Subject: [PATCH] fix license handling --- libcap-ng.spec | 11 ++++++++--- 1 file 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 - 0.7.4-6 +- fix license handling + * Mon Jun 23 2014 Kyle McMartin 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