# # spec file for package tuned # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: tuned Version: 2.0.2 Release: 0 Summary: A dynamic adaptive system tuning daemon License: GPL-2.0 Group: System/Base Url: https://fedorahosted.org/tuned/ # The source for this package was pulled from upstream git. Use the # following commands to get the corresponding tarball: # git clone git://git.fedorahosted.org/git/tuned.git # cd tuned # git checkout v%%{version} # make archive Source: tuned-%{version}.tar.bz2 # PATCH-FIX-OPENSUSE fix-allow-receive_sender-default.patch allow receive_* is normally # not needed as that is the default -- Patch0: fix-allow-receive_sender-default.patch # PATCH-FIX-OPENSUSE fix-new-systemd-tmpfiles.d-path.patch Fix tmpfiles.d systemd path from /etc/tmpdfiles.d to /usr/lib/tmpfiles.d to be # compatible with new systemd -- Patch1: fix-new-systemd-tmpfiles.d-path.patch BuildRequires: python BuildRequires: systemd Requires: dbus-python Requires: pygobject2 Requires: python-decorator %{?systemd_requires} BuildArch: noarch %description The tuned package contains a daemon that tunes system settings dynamically. It does so by monitoring the usage of several system components periodically. Based on that information components will then be put into lower or higher power saving modes to adapt to the current usage. Currently only ethernet network and ATA harddisk devices are implemented. %package utils Summary: Disk and net statistic monitoring systemtap scripts Group: System/Base Requires: %{name} = %{version}-%{release} Requires: systemtap %description utils The tuned-utils package contains several systemtap scripts to allow detailed manual monitoring of the system. Instead of the typical IO/sec it collects minimal, maximal and average time between operations to be able to identify applications that behave power inefficient (many small operations instead of fewer large ones). %prep %setup -q %patch0 -p1 %patch1 -p1 %build #The tuned daemon is written in pure Python. Nothing requires to be built. %install make install DESTDIR=%{buildroot} %py_compile %{buildroot} rm -rf %{buildroot}/%{_datadir}/doc %pre %service_add_pre %{name}.service %post %service_add_post %{name}.service %preun %service_del_preun %{name}.service %postun %service_del_postun %{name}.service %files %defattr(-,root,root,-) %doc AUTHORS COPYING README %config %{_sysconfdir}/bash_completion.d %{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 %config(noreplace) %{_sysconfdir}/tuned/active_profile %{_prefix}/lib/tmpfiles.d %config %{_sysconfdir}/dbus-1/system.d/com.redhat.tuned.conf %{_unitdir}/tuned.service %dir %{_localstatedir}/log/tuned %ghost %{_localstatedir}/run/tuned %dir /etc/tuned %{_mandir}/man5/tuned* %{_mandir}/man8/tuned* %files utils %defattr(-,root,root,-) %doc doc/TIPS.txt doc/README.scomes %{_sbindir}/varnetload %{_sbindir}/netdevstat %{_sbindir}/diskdevstat %{_sbindir}/scomes %{_bindir}/powertop2tuned %{_mandir}/man8/varnetload.* %{_mandir}/man8/netdevstat.* %{_mandir}/man8/diskdevstat.* %{_mandir}/man8/scomes.* %changelog