Accepting request 334902 from Base:System

1

OBS-URL: https://build.opensuse.org/request/show/334902
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tuned?expand=0&rev=11
This commit is contained in:
Dominique Leuenberger 2015-10-06 11:24:52 +00:00 committed by Git OBS Bridge
commit d1d9c2faf4
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Sep 29 12:41:36 UTC 2015 - mpluskal@suse.com
- Fix build for openSUSE Leap (lack of tmpfiles.d macro)
-------------------------------------------------------------------
Mon Aug 17 16:10:42 UTC 2015 - mpluskal@suse.com

View File

@ -157,7 +157,11 @@ ln -sf service %{buildroot}%{_sbindir}/rctuned
%post
%service_add_post %{name}.service
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%if 0%{?suse_version} <= 1320
systemd-tmpfiles --create %{_tmpfilesdir}/%{name}.conf >/dev/null 2>&1 || :
%else
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%endif
# convert active_profile from full path to name (if needed)
sed -i 's|.*/\([^/]\+\)/[^\.]\+\.conf|\1|' %{_sysconfdir}/tuned/active_profile