Move product case licenses to %_defaultlicensedir/product/base

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/000package-groups?expand=0&rev=65
This commit is contained in:
Dominique Leuenberger 2019-04-10 07:34:45 +00:00 committed by Git OBS Bridge
parent 4e5b2d058f
commit ea274eb886

View File

@ -234,12 +234,12 @@ fi
# fate#319341, make openSUSE-release own YaST license files. TODO: # fate#319341, make openSUSE-release own YaST license files. TODO:
# get rid of /etc/YaST2/licenses # get rid of /etc/YaST2/licenses
install -D -d -m 755 "%{buildroot}%{_sysconfdir}/YaST2/licenses/base" install -D -d -m 755 "%{buildroot}%_defaultlicensedir/product/base"
install -D -d -m 755 "%{buildroot}%_defaultlicensedir" install -D -d -m 755 "%{buildroot}%_defaultlicensedir"
cp -a license "%{buildroot}%_defaultlicensedir/%name" cp -a license "%{buildroot}%_defaultlicensedir/%name"
pushd license pushd license
for i in *; do for i in *; do
ln -s "%_defaultlicensedir/%name/$i" %{buildroot}%{_sysconfdir}/YaST2/licenses/base/$i ln -s "%_defaultlicensedir/%name/$i" %{buildroot}%_defaultlicensedir/product/base/$i
done done
___CREATE_PRODUCT_FILES___ ___CREATE_PRODUCT_FILES___
@ -272,8 +272,8 @@ fi
%files %files
%defattr(644,root,root,755) %defattr(644,root,root,755)
%dir %{_sysconfdir}/YaST2/licenses %dir %_defaultlicensedir/product
%{_sysconfdir}/YaST2/licenses/base %_defaultlicensedir/product/base
%license license/* %license license/*
%{_sysconfdir}/os-release %{_sysconfdir}/os-release
%{_libexecdir}/os-release %{_libexecdir}/os-release