Accepting request 1038879 from home:dimstar:Factory
Align openSUSe-release and MicroOS release Main motivation is to have the license files in MicroOS also in /usr/, not in /etc OBS-URL: https://build.opensuse.org/request/show/1038879 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/000package-groups?expand=0&rev=213
This commit is contained in:
parent
5dcea51888
commit
d75056c1c2
@ -183,24 +183,22 @@ ___DESCRIPTION___
|
|||||||
___FLAVOR_PACKAGES___
|
___FLAVOR_PACKAGES___
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
%setup -qcT
|
||||||
|
mkdir license
|
||||||
|
if [ -f /CD1/license.tar.gz ]; then
|
||||||
|
tar -C license -xzf /CD1/license.tar.gz
|
||||||
|
elif [ -f %{_prefix}/lib/skelcd/CD1/license.tar.gz ]; then
|
||||||
|
tar -C license -xzf %{_prefix}/lib/skelcd/CD1/license.tar.gz
|
||||||
|
fi
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}
|
mkdir -p %{buildroot}%{_sysconfdir} %{buildroot}%{_prefix}/lib/issue.d %{buildroot}/run
|
||||||
mkdir -p %{buildroot}%{_prefix}/lib/issue.d
|
|
||||||
echo -e "\nWelcome to ___SUMMARY___ (%{_target_cpu}) - Kernel \\\r (\\\l).\n" > %{buildroot}%{_prefix}/lib/issue.d/10-OS
|
echo -e "\nWelcome to ___SUMMARY___ (%{_target_cpu}) - Kernel \\\r (\\\l).\n" > %{buildroot}%{_prefix}/lib/issue.d/10-OS
|
||||||
echo -e "\n" > %{buildroot}%{_prefix}/lib/issue.d/90-OS
|
echo -e "\n" > %{buildroot}%{_prefix}/lib/issue.d/90-OS
|
||||||
|
|
||||||
# Put EULA into correct place
|
|
||||||
mkdir -p %{buildroot}/%{_sysconfdir}/YaST2/licenses/base
|
|
||||||
cd %{buildroot}/%{_sysconfdir}/YaST2/licenses/base
|
|
||||||
if [ -f /CD1/license.tar.gz ]; then
|
|
||||||
tar -xzf /CD1/license.tar.gz
|
|
||||||
elif [ -f %{_prefix}/lib/skelcd/CD1/license.tar.gz ]; then
|
|
||||||
tar -xzf %{_prefix}/lib/skelcd/CD1/license.tar.gz
|
|
||||||
fi
|
|
||||||
|
|
||||||
VERSION_ID=`echo %{version}|tr '[:upper:]' '[:lower:]'|sed -e 's/ //g;'`
|
VERSION_ID=`echo %{version}|tr '[:upper:]' '[:lower:]'|sed -e 's/ //g;'`
|
||||||
# note: VERSION is an optional field and has no meaning other than informative on a rolling distro
|
# note: VERSION is an optional field and has no meaning other than informative on a rolling distro
|
||||||
# We do thus not add it to the os-release file
|
# We do thus not add it to the os-release file
|
||||||
@ -220,6 +218,15 @@ LOGO="distributor-logo-MicroOS"
|
|||||||
EOF
|
EOF
|
||||||
ln -s ..%{_prefix}/lib/os-release %{buildroot}%{_sysconfdir}/os-release
|
ln -s ..%{_prefix}/lib/os-release %{buildroot}%{_sysconfdir}/os-release
|
||||||
|
|
||||||
|
# Put EULA into correct place
|
||||||
|
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}%_defaultlicensedir/product/base/$i
|
||||||
|
done
|
||||||
|
|
||||||
___CREATE_PRODUCT_FILES___
|
___CREATE_PRODUCT_FILES___
|
||||||
|
|
||||||
%post
|
%post
|
||||||
@ -237,16 +244,13 @@ fi
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(644,root,root,755)
|
%defattr(644,root,root,755)
|
||||||
|
%dir %_defaultlicensedir/product
|
||||||
|
%_defaultlicensedir/product/base
|
||||||
|
%license license/*
|
||||||
%{_sysconfdir}/os-release
|
%{_sysconfdir}/os-release
|
||||||
%{_prefix}/lib/os-release
|
%{_prefix}/lib/os-release
|
||||||
%dir %{_sysconfdir}/products.d
|
%dir %{_sysconfdir}/products.d
|
||||||
%{_sysconfdir}/products.d/*
|
%{_sysconfdir}/products.d/*
|
||||||
%dir %{_sysconfdir}/YaST2/
|
|
||||||
%dir %{_sysconfdir}/YaST2/licenses/
|
|
||||||
%dir %{_sysconfdir}/YaST2/licenses/base/
|
|
||||||
# no %doc here, or we will not install them
|
|
||||||
%{_sysconfdir}/YaST2/licenses/base/license*txt
|
|
||||||
%{_sysconfdir}/YaST2/licenses/base/no-acceptance-needed
|
|
||||||
%dir %{_prefix}/lib/issue.d
|
%dir %{_prefix}/lib/issue.d
|
||||||
%{_prefix}/lib/issue.d/*-OS
|
%{_prefix}/lib/issue.d/*-OS
|
||||||
|
|
||||||
|
@ -235,9 +235,7 @@ fi
|
|||||||
mkdir -p %{buildroot}%{_sysconfdir}/zypp/vendors.d
|
mkdir -p %{buildroot}%{_sysconfdir}/zypp/vendors.d
|
||||||
echo -e "[main]\nvendors=openSUSE,SUSE,SUSE LLC <https://www.suse.com/>\n" > %{buildroot}%{_sysconfdir}/zypp/vendors.d/00-openSUSE.conf
|
echo -e "[main]\nvendors=openSUSE,SUSE,SUSE LLC <https://www.suse.com/>\n" > %{buildroot}%{_sysconfdir}/zypp/vendors.d/00-openSUSE.conf
|
||||||
|
|
||||||
|
# fate#319341, make openSUSE-release own YaST license files.
|
||||||
# fate#319341, make openSUSE-release own YaST license files. TODO:
|
|
||||||
# get rid of /etc/YaST2/licenses
|
|
||||||
install -D -d -m 755 "%{buildroot}%_defaultlicensedir/product/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"
|
||||||
@ -271,10 +269,11 @@ fi
|
|||||||
%config %{_sysconfdir}/YaST2/control.xml
|
%config %{_sysconfdir}/YaST2/control.xml
|
||||||
%config %{_sysconfdir}/zypp/vendors.d/00-openSUSE.conf
|
%config %{_sysconfdir}/zypp/vendors.d/00-openSUSE.conf
|
||||||
%{_prefix}/lib/motd.d/welcome
|
%{_prefix}/lib/motd.d/welcome
|
||||||
%dir %{_prefix}/lib/issue.d/
|
%config(noreplace) %{_sysconfdir}/issue.net
|
||||||
|
%dir %{_sysconfdir}/products.d
|
||||||
|
%{_sysconfdir}/products.d/*
|
||||||
|
%dir %{_prefix}/lib/issue.d
|
||||||
%{_prefix}/lib/issue.d/10-openSUSE.conf
|
%{_prefix}/lib/issue.d/10-openSUSE.conf
|
||||||
%{_prefix}/lib/issue.d/90-openSUSE.conf
|
%{_prefix}/lib/issue.d/90-openSUSE.conf
|
||||||
%config(noreplace) %{_sysconfdir}/issue.net
|
|
||||||
%{_sysconfdir}/products.d
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user