summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2017-03-15 22:24:17 +0000
committerDavid Howells <dhowells@redhat.com>2017-03-15 22:26:20 +0000
commitbb7a63b141776ffb6e148fb644ab4d22e11bb745 (patch)
tree724fcc782350642ac095b2bfe49545312ea1e371
parent9ac78a0ac90fe944f3c76fbb8a84b88796851d32 (diff)
downloadkeyutils-bb7a63b141776ffb6e148fb644ab4d22e11bb745.tar.gz
spec: Fix licence handling
Fix the handling of licence files in the specfile. Signed-off-by: David Howells <dhowells@redhat.com>
-rw-r--r--keyutils.spec7
1 files changed, 5 insertions, 2 deletions
diff --git a/keyutils.spec b/keyutils.spec
index 8b3b4b2..04de0fb 100644
--- a/keyutils.spec
+++ b/keyutils.spec
@@ -86,7 +86,9 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
-%doc README LICENCE.GPL
+%doc README
+%{!?_licensedir:%global license %%doc}
+%license LICENCE.GPL
%{_sbindir}/*
%{_bindir}/*
%{datadir}
@@ -97,7 +99,8 @@ rm -rf $RPM_BUILD_ROOT
%files libs
%defattr(-,root,root,-)
-%doc LICENCE.LGPL
+%{!?_licensedir:%global license %%doc}
+%license LICENCE.LGPL
%{_mandir}/man7/*
%{_libdir}/libkeyutils.so.%{libapiversion}
%{_libdir}/libkeyutils.so.%{libapivermajor}