diff --git a/tuned.changes b/tuned.changes index 7c1cbc9..ad9394a 100644 --- a/tuned.changes +++ b/tuned.changes @@ -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 diff --git a/tuned.spec b/tuned.spec index 5ead6f9..8b16b67 100644 --- a/tuned.spec +++ b/tuned.spec @@ -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