From 6a65c154faa0d1c971c13df4c4c13af02e67d1e7 Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Sat, 12 Jul 2014 18:51:50 -0400 Subject: [PATCH] fix license handling --- less.spec | 8 ++++++-- 1 file 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 - 458-12 +- fix license handling + * Mon Jun 23 2014 Jozef Mlich - 458-11 - rollback of previous problem. See explanation of upstream. http://greenwoodsoftware.com/less/faq.html#profileout