[elfutils/f21] fix license handling

Tom Callaway spot at fedoraproject.org
Sat Jul 12 14:38:01 UTC 2014


commit fa81055291e1a134a71410ba77bc056a6c25706e
Author: Tom Callaway <spot at fedoraproject.org>
Date:   Sat Jul 12 10:38:20 2014 -0400

    fix license handling

 elfutils.spec |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/elfutils.spec b/elfutils.spec
index 9790611..d46d37f 100644
--- a/elfutils.spec
+++ b/elfutils.spec
@@ -1,7 +1,7 @@
 Name: elfutils
 Summary: A collection of utilities and DSOs to handle compiled objects
 Version: 0.159
-%global baserelease 5
+%global baserelease 6
 URL: https://fedorahosted.org/elfutils/
 %global source_url http://fedorahosted.org/releases/e/l/elfutils/%{version}/
 License: GPLv3+ and (GPLv2+ or LGPLv3+)
@@ -275,7 +275,9 @@ rm -rf ${RPM_BUILD_ROOT}
 
 %files
 %defattr(-,root,root)
-%doc COPYING COPYING-GPLV2 COPYING-LGPLV3 README TODO CONTRIBUTING
+%{!?_licensedir:%global license %%doc}
+%license COPYING COPYING-GPLV2 COPYING-LGPLV3
+%doc README TODO CONTRIBUTING
 %{_bindir}/eu-addr2line
 %{_bindir}/eu-ar
 %{_bindir}/eu-elfcmp
@@ -295,6 +297,8 @@ rm -rf ${RPM_BUILD_ROOT}
 
 %files libs
 %defattr(-,root,root)
+%{!?_licensedir:%global license %%doc}
+%license COPYING-GPLV2 COPYING-LGPLV3
 %{_libdir}/libasm-%{version}.so
 %{_libdir}/libasm.so.*
 %{_libdir}/libdw-%{version}.so
@@ -324,6 +328,8 @@ rm -rf ${RPM_BUILD_ROOT}
 
 %files -f %{name}.lang libelf
 %defattr(-,root,root)
+%{!?_licensedir:%global license %%doc}
+%license COPYING-GPLV2 COPYING-LGPLV3
 %{_libdir}/libelf-%{version}.so
 %{_libdir}/libelf.so.*
 
@@ -339,6 +345,9 @@ rm -rf ${RPM_BUILD_ROOT}
 %{_libdir}/libelf.a
 
 %changelog
+* Sat Jul 12 2014 Tom Callaway <spot at fedoraproject.org> - 0.159-6
+- fix license handling
+
 * Fri Jul  4 2014 Mark Wielaard <mjw at redhat.com> - 0.159-5
 - Add elfutils-0.159-aarch64-bool-ret.patch
 - Add elfutils-0.159-elf-h.patch


More information about the scm-commits mailing list