diff --git a/tuned.spec b/tuned.spec index 3c96cdf..f20a66c 100644 --- a/tuned.spec +++ b/tuned.spec @@ -1,7 +1,7 @@ Summary: A dynamic adaptive system tuning daemon Name: tuned Version: 2.4.1 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ Source: https://fedorahosted.org/releases/t/u/tuned/tuned-%{version}.tar.bz2 URL: https://fedorahosted.org/tuned/ @@ -112,6 +112,12 @@ sed -i 's|.*/\([^/]\+\)/[^\.]\+\.conf|\1|' /etc/tuned/active_profile %postun %systemd_postun_with_restart tuned.service +# conditional support for grub2, grub2 is not available on all architectures +# and tuned is noarch package, thus the following hack is needed +if [ "$1" == "0" ]; then + rm -f %{_sysconfdir}/grub.d/00_tuned || : +fi + %triggerun -- tuned < 2.0-0 # remove ktune from old tuned, now part of tuned @@ -221,6 +227,10 @@ fi %{_mandir}/man7/tuned-profiles-compat.7* %changelog +* Mon Jan 5 2015 Jaroslav Škarvada - 2.4.1-2 +- remove 00_tuned grub2 template upon tuned uninstall + resolves: rhbz#1178310 + * Thu Oct 16 2014 Jaroslav Škarvada - 2.4.1-1 - new-release - fixed return code of tuned grub template