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