Search
j0ke.net Open Build Service
>
Projects
>
stresslinux
>
stresslinux-release
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 12
[-]
[+]
Changed
stresslinux-release.spec
@@ -75,11 +75,8 @@ %install mkdir -p $RPM_BUILD_ROOT/etc . %{S:0} -echo -e "\nWelcome to $BUILD_DISTRIBUTION_NAME - Kernel \\\r (\\\l).\n\n" > $RPM_BUILD_ROOT/etc/issue -echo "Welcome to $BUILD_DISTRIBUTION_NAME - Kernel %%r (%%t)." > $RPM_BUILD_ROOT/etc/issue.net echo $BUILD_DISTRIBUTION_NAME > $RPM_BUILD_ROOT/etc/stresslinux-release echo VERSION = $BUILD_DISTRIBUTION_VERSION >> $RPM_BUILD_ROOT/etc/stresslinux-release -echo "Have a lot of fun..." > $RPM_BUILD_ROOT/etc/motd mkdir -p $RPM_BUILD_ROOT/etc/zypp/products.d/ touch $RPM_BUILD_ROOT/etc/zypp/products.d/stresslinux-release.prod %if 0%{?suse_version} >= 1210 @@ -89,13 +86,17 @@ %__install -m755 ${SRC} %{buildroot}%{_sysconfdir}/systemd/system/${SCRIPT} done %endif +%__install -D -m644 %{S:0} %{buildroot}%{_datadir}/%{name}/buildenv + +%post +. %{_datadir}/%{name}/buildenv +echo -e "\nWelcome to $BUILD_DISTRIBUTION_NAME - Kernel \\\r (\\\l).\n\n" > $RPM_BUILD_ROOT/etc/issue +echo "Welcome to $BUILD_DISTRIBUTION_NAME - Kernel %%r (%%t)." > $RPM_BUILD_ROOT/etc/issue.net %files %defattr(644,root,root,755) +%{_datadir}/%{name}/buildenv /etc/stresslinux-release -%config /etc/motd -%config(noreplace) /etc/issue -%config(noreplace) /etc/issue.net %if 0%{?suse_version} >= 1210 %dir %{_sysconfdir}/systemd %dir %{_sysconfdir}/systemd/system