diff options
author | David Howells <dhowells@redhat.com> | 2017-03-15 22:24:17 +0000 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2017-03-15 22:26:20 +0000 |
commit | bb7a63b141776ffb6e148fb644ab4d22e11bb745 (patch) | |
tree | 724fcc782350642ac095b2bfe49545312ea1e371 | |
parent | 9ac78a0ac90fe944f3c76fbb8a84b88796851d32 (diff) | |
download | keyutils-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.spec | 7 |
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} |