diff --git a/apache2.changes b/apache2.changes index ca33e40..fe1bc06 100644 --- a/apache2.changes +++ b/apache2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Feb 12 13:13:05 UTC 2020 - pgajdos@suse.com + +- fix build for older distributions + ------------------------------------------------------------------- Fri Jan 31 18:22:09 UTC 2020 - Cristian Rodríguez diff --git a/apache2.spec b/apache2.spec index de80369..49dc21a 100644 --- a/apache2.spec +++ b/apache2.spec @@ -802,6 +802,19 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} \ -e debug -t -f %{buildroot}/%{sysconfdir}/httpd.conf.test || exit 1 rm %{buildroot}/%{sysconfdir}/*.test +# 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 -f filelist %defattr(-,root,root) %doc INSTALL READM* ABOUT_APACHE CHANGES