From 1c5a9772804d85f6e6aaeb09b6385c4713bf2be466e49fc1bb51a2bd9e0a0b54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Tesa=C5=99=C3=ADk?= Date: Wed, 20 Mar 2019 17:41:44 +0000 Subject: [PATCH] Accepting request 687013 from home:ptesarik:branches:Kernel:kdump - Use %license instead of %doc (bsc#1082318, bsc#1129947). OBS-URL: https://build.opensuse.org/request/show/687013 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kdump?expand=0&rev=178 --- kdump.changes | 5 +++++ kdump.spec | 15 ++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) 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}