diff --git a/sources b/sources index 78463dc..b5c8873 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -79834e783da494817bf081fb541c9890 tuned-2.2.0.tar.bz2 +23535f08a5429470210f0e5de1a5c138 tuned-2.2.1.tar.bz2 diff --git a/tuned.spec b/tuned.spec index 43c49a4..3364119 100644 --- a/tuned.spec +++ b/tuned.spec @@ -1,17 +1,17 @@ Summary: A dynamic adaptive system tuning daemon Name: tuned -Version: 2.2.0 +Version: 2.2.1 Release: 1%{?dist} License: GPLv2+ Source: https://fedorahosted.org/releases/t/u/tuned/tuned-%{version}.tar.bz2 URL: https://fedorahosted.org/tuned/ BuildArch: noarch -BuildRequires: python, systemd-units -Requires(post): systemd-units, virt-what -Requires(preun): systemd-units -Requires(postun): systemd-units -Requires: python-decorator, dbus-python, pygobject2, python-pyudev, /usr/bin/cpupower -Requires: virt-what, python-configobj +BuildRequires: python, systemd +Requires(post): systemd, virt-what +Requires(preun): systemd +Requires(postun): systemd +Requires: python-decorator, dbus-python, pygobject2, python-pyudev +Requires: virt-what, python-configobj, ethtool %description The tuned package contains a daemon that tunes system settings dynamically. @@ -23,6 +23,7 @@ network and ATA harddisk devices are implemented. %package utils Requires: %{name} = %{version}-%{release} Summary: Various tuned utilities +Requires: powertop %description utils This package contains utilities that can help you to fine tune your @@ -60,10 +61,7 @@ make install DESTDIR=%{buildroot} %post -# initial instalation -if [ $1 -eq 1 ]; then - /usr/bin/systemctl daemon-reload &>/dev/null || : -fi +%systemd_post tuned.service # try to autodetect the best profile for the system in case there is none preset if [ ! -f /etc/tuned/active_profile -o -z "`cat /etc/tuned/active_profile 2>/dev/null`" ] @@ -76,19 +74,13 @@ fi # convert active_profile from full path to name (if needed) sed -i 's|.*/\([^/]\+\)/[^\.]\+\.conf|\1|' /etc/tuned/active_profile + %preun -# package removal, not upgrade -if [ $1 -eq 0 ]; then - /usr/bin/systemctl --no-reload disable tuned.service &>/dev/null || : - /usr/bin/systemctl stop tuned.service &>/dev/null || : -fi +%systemd_preun tuned.service %postun -# package upgrade, not uninstall -if [ $1 -ge 1 ]; then - /usr/bin/systemctl try-restart tuned.service &>/dev/null || : -fi +%systemd_postun_with_restart tuned.service %triggerun -- tuned < 2.0-0 @@ -155,6 +147,33 @@ fi %{_prefix}/lib/tuned/spindown-disk %changelog +* Fri Mar 1 2013 Jaroslav Škarvada - 2.2.1-1 +- new release: + - audio plugin: fixed error handling in _get_timeout + - removed cpupower dependency, added sysfs fallback + - powertop2tuned: fixed parser crash on binary garbage + resolves: rhbz#914933 + - cpu plugin: dropped multicore_powersave as kernel upstream already did + - plugins: options manipulated by dynamic tuning are now correctly saved and restored + - powertop2tuned: added alias -e for --enable option + - powertop2tuned: new option -m, --merge-profile to select profile to merge + - prefer transparent_hugepage over redhat_transparent_hugepage + - recommend: use recommend.conf not autodetect.conf + - tuned.service: switched to dbus type service + resolves: rhbz#911445 + - tuned: new option --pid, -P to write PID file + - tuned, tuned-adm: added new option --version, -v to show version + - disk plugin: use APM value 254 for cleanup / APM disable instead of 255 + resolves: rhbz#905195 + - tuned: new option --log, -l to select log file + - powertop2tuned: avoid circular deps in include (one level check only) + - powertop2tuned: do not crash if powertop is not installed + - net plugin: added support for wake_on_lan static tuning + resolves: rhbz#885504 + - loader: fixed error handling + - spec: used systemd-rpm macros + resolves: rhbz#850347 + * Mon Jan 28 2013 Jan Vcelak 2.2.0-1 - new release: - remove nobarrier from virtual-guest (data loss prevention)