[less] fix license handling

Tom Callaway spot at fedoraproject.org
Sat Jul 12 22:51:30 UTC 2014


commit 6a65c154faa0d1c971c13df4c4c13af02e67d1e7
Author: Tom Callaway <spot at fedoraproject.org>
Date:   Sat Jul 12 18:51:50 2014 -0400

    fix license handling

 less.spec |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/less.spec b/less.spec
index bdd9768..14f7de8 100644
--- a/less.spec
+++ b/less.spec
@@ -1,7 +1,7 @@
 Summary: A text file browser similar to more, but better
 Name: less
 Version: 458
-Release: 11%{?dist}
+Release: 12%{?dist}
 License: GPLv3+
 Group: Applications/Text
 Source: http://www.greenwoodsoftware.com/less/%{name}-%{version}.tar.gz
@@ -67,7 +67,8 @@ ls -la $RPM_BUILD_ROOT/etc/profile.d
 
 %files
 %defattr(-,root,root,-)
-%doc LICENSE
+%{!?_licensedir:%global license %%doc}
+%license LICENSE
 /etc/profile.d/*
 %{_bindir}/*
 %{_mandir}/man1/*
@@ -76,6 +77,9 @@ ls -la $RPM_BUILD_ROOT/etc/profile.d
 rm -rf $RPM_BUILD_ROOT
 
 %changelog
+* Sat Jul 12 2014 Tom Callaway <spot at fedoraproject.org> - 458-12
+- fix license handling
+
 * Mon Jun 23 2014 Jozef Mlich <jmlich at redhat.com> - 458-11
 - rollback of previous problem. See explanation of upstream.
   http://greenwoodsoftware.com/less/faq.html#profileout


More information about the scm-commits mailing list