Provide %license backward compatibility
OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kexec-tools?expand=0&rev=111
This commit is contained in:
parent
78c4d0c54a
commit
6d55a065b7
@ -94,6 +94,18 @@ ln -s %{_sbindir}/kexec %{buildroot}/sbin
|
||||
%posttrans
|
||||
%{?regenerate_initrd_posttrans}
|
||||
|
||||
# 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 COPYING
|
||||
%doc AUTHORS News TODO doc
|
||||
|
Loading…
Reference in New Issue
Block a user