diff --git a/kdump.changes b/kdump.changes index d3ac508..bfb14b2 100644 --- a/kdump.changes +++ b/kdump.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Mar 20 15:35:29 UTC 2019 - ptesarik@suse.com + +- Use %license instead of %doc (bsc#1082318, bsc#1129947). + ------------------------------------------------------------------- Wed Mar 20 13:34:40 UTC 2019 - ptesarik@suse.com diff --git a/kdump.spec b/kdump.spec index 605eb35..959039c 100644 --- a/kdump.spec +++ b/kdump.spec @@ -222,9 +222,22 @@ rm /var/log/dump >/dev/null 2>&1 || true %insserv_cleanup %endif +# Compatibility cruft +# there is no %license prior to SLE12 +%if %{undefined _defaultlicensedir} +%define license %doc +%else +# filesystem before SLE12 SP3 lacks /usr/share/licenses +%if 0%(test ! -d %{_defaultlicensedir} && echo 1) +%define _defaultlicensedir %_defaultdocdir +%endif +%endif +# End of compatibility cruft + %files %defattr(-,root,root) -%doc ChangeLog COPYING README NEWS +%license COPYING +%doc ChangeLog README NEWS %{_sbindir}/kdumptool %{_sbindir}/mkdumprd %{_mandir}/man5/kdump.5%{ext_man}