[lzo] fix license handling

Tom Callaway spot at fedoraproject.org
Fri Jul 18 20:06:48 UTC 2014


commit 49d65578863f94aba52cbd66ccf90af802b759ce
Author: Tom Callaway <spot at fedoraproject.org>
Date:   Fri Jul 18 16:07:13 2014 -0400

    fix license handling

 lzo.spec |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/lzo.spec b/lzo.spec
index 06e108d..102a6ff 100644
--- a/lzo.spec
+++ b/lzo.spec
@@ -1,6 +1,6 @@
 Name:           lzo
 Version:        2.08
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Data compression library with very fast (de)compression
 Group:          System Environment/Libraries
 License:        GPLv2+
@@ -87,11 +87,15 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root,-)
-%doc AUTHORS COPYING THANKS NEWS
+%{!?_licensedir:%global license %%doc}
+%license COPYING
+%doc AUTHORS THANKS NEWS
 %{_libdir}/liblzo2.so.*
 
 %files minilzo
 %defattr(-,root,root,-)
+%{!?_licensedir:%global license %%doc}
+%license COPYING
 %doc minilzo/README.LZO
 %{_libdir}/libminilzo.so.0
 
@@ -103,6 +107,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Fri Jul 18 2014 Tom Callaway <spot at fedoraproject.org> - 2.08-2
+- fix license handling
+
 * Mon Jun 30 2014 Huzaifa Sidhpurwala <huzaifas at redhat.com> - 2.08-1
 - New upstream
 - Fix CVE-2014-4607


More information about the scm-commits mailing list