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:
# 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"
cp -a license "%{buildroot}%_defaultlicensedir/%name"
pushd license
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
mkdir -p $RPM_BUILD_ROOT/etc/products.d
@ -568,8 +568,8 @@ fi
%files
%defattr(644,root,root,755)
%dir %{_sysconfdir}/YaST2/licenses
%{_sysconfdir}/YaST2/licenses/base
%dir %_defaultlicensedir/product
%_defaultlicensedir/product/base
%license license/*
%{_sysconfdir}/os-release
%{_libexecdir}/os-release