[libcgroup/f21] fix license handling

Tom Callaway spot at fedoraproject.org
Thu Jul 17 18:24:01 UTC 2014


commit e425d5e952b8edd13ba6ca30e851b9fbd6f53e47
Author: Tom Callaway <spot at fedoraproject.org>
Date:   Thu Jul 17 14:24:21 2014 -0400

    fix license handling

 libcgroup.spec |   21 ++++++++++++++++-----
 1 files changed, 16 insertions(+), 5 deletions(-)
---
diff --git a/libcgroup.spec b/libcgroup.spec
index 9c0e153..56f823c 100644
--- a/libcgroup.spec
+++ b/libcgroup.spec
@@ -5,7 +5,7 @@
 Summary: Library to control and monitor control groups
 Name: libcgroup
 Version: 0.41
-Release: 3%{?dist}
+Release: 4%{?dist}
 License: LGPLv2+
 Group: Development/Libraries
 URL: http://libcg.sourceforge.net/
@@ -122,11 +122,15 @@ getent group cgred >/dev/null || groupadd -r cgred
 /bin/systemctl try-restart cgconfig.service >/dev/null 2>&1 || :
 
 %files
-%doc COPYING README
+%{!?_licensedir:%global license %%doc}
+%license COPYING
+%doc README
 %{_libdir}/libcgroup.so.*
 
 %files tools
-%doc COPYING README README_systemd
+%{!?_licensedir:%global license %%doc}
+%license COPYING
+%doc README README_systemd
 %config(noreplace) %{_sysconfdir}/cgconfig.conf
 %config(noreplace) %{_sysconfdir}/cgsnapshot_blacklist.conf
 /usr/bin/cgcreate
@@ -146,17 +150,24 @@ getent group cgred >/dev/null || groupadd -r cgred
 %{_unitdir}/cgconfig.service
 
 %files pam
-%doc COPYING README
+%{!?_licensedir:%global license %%doc}
+%license COPYING
+%doc README
 %attr(0755,root,root) %{_libdir}/security/pam_cgroup.so
 
 %files devel
-%doc COPYING README
+%{!?_licensedir:%global license %%doc}
+%license COPYING
+%doc README
 %{_includedir}/libcgroup.h
 %{_includedir}/libcgroup/*.h
 %{_libdir}/libcgroup.so
 %{_libdir}/pkgconfig/libcgroup.pc
 
 %changelog
+* Thu Jul 17 2014 Tom Callaway <spot at fedoraproject.org> - 0.41-4
+- fix license handling
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.41-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the scm-commits mailing list