From 03e47b0d68f29d61a49f8396980c1791a80558671ef519b2f344893d3b6c6e4d Mon Sep 17 00:00:00 2001
From: Denisart Benjamin
Date: Sun, 22 Dec 2013 15:44:27 +0000
Subject: [PATCH] Accepting request 212025 from
home:posophe:branches:Base:System
update
OBS-URL: https://build.opensuse.org/request/show/212025
OBS-URL: https://build.opensuse.org/package/show/Base:System/tuned?expand=0&rev=15
---
tuned-2.2.2.tar.bz2 | 3 ---
tuned-2.3.0.tar.bz2 | 3 +++
tuned.changes | 37 +++++++++++++++++++++++++++++++++++++
tuned.spec | 27 +++++++++++++--------------
4 files changed, 53 insertions(+), 17 deletions(-)
delete mode 100644 tuned-2.2.2.tar.bz2
create mode 100644 tuned-2.3.0.tar.bz2
diff --git a/tuned-2.2.2.tar.bz2 b/tuned-2.2.2.tar.bz2
deleted file mode 100644
index 371902d..0000000
--- a/tuned-2.2.2.tar.bz2
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:22b7d2655a58440ee0bf7a3ed197414121a6851e8e71a82eb3290c9ffbdb26cc
-size 58138
diff --git a/tuned-2.3.0.tar.bz2 b/tuned-2.3.0.tar.bz2
new file mode 100644
index 0000000..c49c193
--- /dev/null
+++ b/tuned-2.3.0.tar.bz2
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fba74ad66abc942859cd42aba0eaf379565adc9ecadea4eb8b49ddad2ff2a4d5
+size 62406
diff --git a/tuned.changes b/tuned.changes
index 56619a6..6b16570 100644
--- a/tuned.changes
+++ b/tuned.changes
@@ -1,3 +1,40 @@
+-------------------------------------------------------------------
+Sun Dec 22 15:38:29 UTC 2013 - p.drouand@gmail.com
+
+- Update to version 2.3.0
+ + audio plugin: fixed audio settings in standard profiles
+ resolves: rhbz#1019805
+ + video plugin: fixed tunings
+ + daemon: fixed crash if preset profile is not available
+ resolves: rhbz#953128
+ + man: various updates and corrections
+ + functions: fixed usb and bluetooth handling
+ + tuned: switched to lightweighted pygobject3-base
+ + daemon: added global config for dynamic_tuning
+ resolves: rhbz#1006427
+ + utils: added pmqos-static script for debug purposes
+ resolves: rhbz#1015676
+ + throughput-performance: various fixes
+ resolves: rhbz#987570
+ + tuned: added global option update_interval
+ + plugin_cpu: added support for x86_energy_perf_policy
+ resolves: rhbz#1015675
+ + dbus: fixed KeyboardInterrupt handling
+ + plugin_cpu: added support for intel_pstate
+ resolves: rhbz#996722
+ + profiles: various fixes
+ resolves: rhbz#922068
+ + profiles: added desktop profile
+ resolves: rhbz#996723
+ + tuned-adm: implemented non DBus fallback control
+ + profiles: added sap profile
+ + tuned: lowered CPU usage due to python bug
+ resolves: rhbz#917587
+- Add missing requirements; ethtool, gawk, python-pyudev and powertop
+- Replace python-gobject2 with python-gobject in requirements;
+ python-gobject2 is depreciated
+- Remove unwanted stuff instead of exclude it
+
-------------------------------------------------------------------
Sun Oct 20 19:44:13 UTC 2013 - hrvoje.senjan@gmail.com
diff --git a/tuned.spec b/tuned.spec
index 5afb940..d2c89cf 100644
--- a/tuned.spec
+++ b/tuned.spec
@@ -17,7 +17,7 @@
Name: tuned
-Version: 2.2.2
+Version: 2.3.0
Release: 0
Summary: A dynamic adaptive system tuning daemon
License: GPL-2.0
@@ -34,9 +34,12 @@ BuildRequires: python
BuildRequires: systemd
Requires: /usr/bin/cpupower
Requires: dbus-1-python
-Requires: python-gobject2
+Requires: ethtool
+Requires: gawk
Requires: python-configobj
Requires: python-decorator
+Requires: python-pyudev
+Requires: python-gobject
%{?systemd_requires}
BuildArch: noarch
@@ -51,6 +54,7 @@ network and ATA harddisk devices are implemented.
Summary: Disk and net statistic monitoring systemtap scripts
Group: System/Base
Requires: %{name} = %{version}
+Requires: powertop
%description utils
This package contains utilities that can help you to fine tune your
@@ -76,14 +80,15 @@ instead of fewer large ones).
%build
#The tuned daemon is written in pure Python. Nothing requires to be built.
+# Just a hack to avoid installation in a wrong directory
+sed -i 's|usr/libexec/tuned|%{_libexecdir}/%{name}|' Makefile
%install
make install DESTDIR=%{buildroot}
%py_compile %{buildroot}
rm -rf %{buildroot}/%{_datadir}/doc
-
-%pre
-%service_add_pre %{name}.service
+# Remove unwanted stuffs instead of exclude them in files list
+rm -rf %{buildroot}%{_libexecdir}/%{name}/{default,desktop-powersave,laptop-ac-powersave,server-powersave,laptop-battery-powersave,enterprise-storage,spindown-disk}
%post
%service_add_post %{name}.service
@@ -111,16 +116,10 @@ sed -i 's|.*/\([^/]\+\)/[^\.]\+\.conf|\1|' /etc/tuned/active_profile
%{python_sitelib}/tuned
%{_sbindir}/tuned
%{_sbindir}/tuned-adm
-%exclude %{_prefix}/lib/tuned/default
-%exclude %{_prefix}/lib/tuned/desktop-powersave
-%exclude %{_prefix}/lib/tuned/laptop-ac-powersave
-%exclude %{_prefix}/lib/tuned/server-powersave
-%exclude %{_prefix}/lib/tuned/laptop-battery-powersave
-%exclude %{_prefix}/lib/tuned/enterprise-storage
-%exclude %{_prefix}/lib/tuned/spindown-disk
-%{_prefix}/lib/tuned
+%{_libexecdir}/tuned
%config(noreplace) %{_sysconfdir}/tuned/active_profile
-%{_prefix}/lib/tmpfiles.d
+%config(noreplace) %{_sysconfdir}/tuned/tuned-main.conf
+%{_libexecdir}/tmpfiles.d
%config %{_sysconfdir}/dbus-1/system.d/com.redhat.tuned.conf
%{_unitdir}/tuned.service
%dir %{_localstatedir}/log/tuned