Staging Bot 2019-04-10 07:57:58 +00:00 committed by Git OBS Bridge
parent d117b9cc24
commit c2db221d03

View File

@ -404,12 +404,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
mkdir -p $RPM_BUILD_ROOT/etc/products.d mkdir -p $RPM_BUILD_ROOT/etc/products.d
@ -568,8 +568,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