From 0d720ad71f68f1a80c165f0933af892d4dd5ebd248485c5d8cf9456e2c31809a Mon Sep 17 00:00:00 2001 From: Petr Gajdos Date: Thu, 13 Feb 2020 08:13:09 +0000 Subject: [PATCH] - define %license for older codestreams OBS-URL: https://build.opensuse.org/package/show/Apache:Modules/apache2-mod_perl?expand=0&rev=75 --- apache2-mod_perl.changes | 5 +++++ apache2-mod_perl.spec | 15 ++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/apache2-mod_perl.changes b/apache2-mod_perl.changes index 37d99d0..7d1d6c2 100644 --- a/apache2-mod_perl.changes +++ b/apache2-mod_perl.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 13 08:03:41 UTC 2020 - pgajdos@suse.com + +- define %license for older codestreams + ------------------------------------------------------------------- Sat Nov 16 17:34:11 UTC 2019 - Andreas Stieger diff --git a/apache2-mod_perl.spec b/apache2-mod_perl.spec index b481775..278b285 100644 --- a/apache2-mod_perl.spec +++ b/apache2-mod_perl.spec @@ -1,7 +1,7 @@ # # spec file for package apache2-mod_perl # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -177,6 +177,19 @@ find %{buildroot}%{perl_vendorarch}/auto -name .packlist -print0 | xargs -0 -r r rm -f %{buildroot}%{perl_archlib}/perllocal.pod %endif +# taken from kdump/kdump.spec, thanks! +# 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 %license LICENSE %doc Changes README RELEASE STATUS