tuned/tuned.spec

241 lines
8.3 KiB
RPMSpec
Raw Normal View History

2009-03-03 09:56:17 +00:00
Summary: A dynamic adaptive system tuning daemon
Name: tuned
Version: 0.2.10
2010-02-01 14:09:57 +00:00
Release: 1%{?dist}
2009-03-03 09:56:17 +00:00
License: GPLv2+
Group: System Environment/Daemons
# The source for this package was pulled from upstream git. Use the
# following commands to get the corresponding tarball:
2009-09-23 10:53:48 +00:00
# git clone git://git.fedorahosted.org/git/tuned.git
2009-03-03 09:56:17 +00:00
# cd tuned
# git checkout v%{version}
# make archive
Source: tuned-%{version}.tar.bz2
2009-09-23 10:53:48 +00:00
URL: https://fedorahosted.org/tuned/
2009-03-03 09:56:17 +00:00
Buildroot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
2009-11-26 11:39:10 +00:00
BuildRequires: python
Requires: usermode ethtool
2009-03-03 09:56:17 +00:00
Requires(post): chkconfig
Requires(preun): chkconfig
Requires(preun): initscripts
Requires(postun): initscripts
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
Requires: systemtap
2009-03-03 09:56:17 +00:00
Group: Applications/System
%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
%build
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
%clean
rm -rf %{buildroot}
%post
/sbin/chkconfig --add tuned
2009-08-04 15:43:24 +00:00
/sbin/chkconfig --add ktune
2009-03-03 09:56:17 +00:00
%preun
if [ $1 = 0 ] ; then
/sbin/service tuned stop >/dev/null 2>&1
/sbin/chkconfig --del tuned
2009-08-04 15:43:24 +00:00
/sbin/service ktune stop >/dev/null 2>&1
/sbin/chkconfig --del ktune
2009-03-03 09:56:17 +00:00
fi
%postun
if [ "$1" -ge "1" ] ; then
/sbin/service tuned condrestart >/dev/null 2>&1 || :
2009-08-04 15:43:24 +00:00
/sbin/service ktune condrestart >/dev/null 2>&1 || :
2009-03-03 09:56:17 +00:00
fi
%files
%defattr(-,root,root,-)
2009-08-04 15:43:24 +00:00
%doc AUTHORS ChangeLog COPYING INSTALL NEWS README doc/DESIGN.txt doc/TIPS.txt ktune/README.ktune
2009-03-03 09:56:17 +00:00
%{_initddir}/tuned
%config(noreplace) %{_sysconfdir}/tuned.conf
2009-10-19 15:08:58 +00:00
%config(noreplace) %{_sysconfdir}/pam.d/tuned-adm
%config(noreplace) %{_sysconfdir}/security/console.apps/tuned-adm
2009-03-03 09:56:17 +00:00
%{_sbindir}/tuned
2009-08-04 15:43:24 +00:00
%{_sbindir}/tuned-adm
2009-10-19 15:08:58 +00:00
# consolehelper hard link
%{_bindir}/tuned-adm
2009-08-04 15:43:24 +00:00
%{_sysconfdir}/tune-profiles
2009-03-03 09:56:17 +00:00
%{_datadir}/tuned
2009-08-18 16:06:45 +00:00
%{_mandir}/man1/*
2009-03-03 09:56:17 +00:00
%{_mandir}/man5/*
%{_mandir}/man8/*
2009-08-04 15:43:24 +00:00
%attr(0755,root,root) %{_initddir}/ktune
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/ktune
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysctl.ktune
%dir %attr(0755,root,root) %{_sysconfdir}/ktune.d
%dir /var/log/tuned
2009-03-03 09:56:17 +00:00
%files utils
%defattr(-,root,root,-)
%doc doc/README.utils
2009-08-04 15:43:24 +00:00
%doc doc/README.scomes
%{_sbindir}/varnetload
2009-03-03 09:56:17 +00:00
%{_sbindir}/netdevstat
%{_sbindir}/diskdevstat
%{_sbindir}/scomes
2009-08-04 15:43:24 +00:00
2009-03-03 09:56:17 +00:00
%changelog
* Wed Feb 03 2010 Jan Vcelak <jvcelak@redhat.com> 0.2.10-1
- Log file moved to separate directory.
2010-02-01 14:09:57 +00:00
* Mon Feb 01 2010 Jan Vcelak <jvcelak@redhat.com> 0.2.9-1
- New release.
2010-01-26 15:44:04 +00:00
* Tue Jan 26 2010 Jan Vcelak <jvcelak@redhat.com> 0.2.8-2
- Included Thomas Woerner's patch checking user rights when executing
ktune service commands.
- Included Jan Vcelak's patch fixing logging module initialization.
2010-01-08 16:37:54 +00:00
* Fri Jan 08 2010 Jan Vcelak <jvcelak@redhat.com> 0.2.8-1
- New release. Adds logging support.
* Mon Dec 21 2009 Jan Vcelak <jvcelak@redhat.com> 0.2.7-2
- Fixed 542305 - [abrt] crash detected in tuned-0.2.5-2.fc12
Some ethernet cards are not supported by 'ethtool'.
* Fri Dec 11 2009 Thomas Woerner <twoerner@redhat.com> 0.2.7-1
- Updated ktune to version 0.4-1
- Supports start and stop options in profile scripts calls
- Fixed CMDLINE_ELEVATOR test (rhbz#496940#c9)
* Tue Dec 08 2009 Phil Knirsch <pknirsch@redhat.com> 0.2.6-1
- Included Jan Vcelak's patch for pyo and pyc files
- Updated ktune.sh script for laptop-battery-powersave profile with latest
ALPM mechanism
- Fixed ktune.sh script for laptop-battery-powersave profile to stop printing
errors when files in /sys are missing
2009-11-26 11:39:10 +00:00
* Thu Nov 26 2009 Petr Lautrbach <plautrba@redhat.com> 0.2.5-2
- Added python into build requires
2009-11-26 11:39:10 +00:00
- Resolves: #539949
* Tue Nov 03 2009 Phil Knirsch <pknirsch@redhat.com> 0.2.5-1
- Moved from prerelease to normal
- Added missing ethtool requires
- Fixed 532209 - init priority wrong for ktune (Jan Vcelak)
- Fixed 530457 - [abrt] crash detected in tuned-0.2.5-0.1.fc12 (Jan Vcelak)
- Added detection of netcard supported speeds (Jan Vcelak)
- Fix ktune.sh script for stopping in regard to ALPM and CDROM polling (Phil Knirsch)
2009-10-20 14:16:28 +00:00
2009-10-19 15:08:58 +00:00
* Mon Oct 19 2009 Marcela Mašláňová <mmaslano@redhat.com> 0.2.5-0.3
- new release
* Thu Oct 15 2009 Petr Lautrbach <plautrba@redhat.com> 0.2.5-0.2
- Allow run tuned-adm as root for users at the physical console
* Mon Oct 12 2009 Petr Lautrbach <plautrba@redhat.com> 0.2.5-0.1
- Removed dependence on kobo
- Bumped to 0.2.5 pre release version
2009-09-23 10:53:48 +00:00
* Wed Sep 23 2009 Petr Lautrbach <plautrba@redhat.com> 0.2.4-2
- fixed url to fedorahosted project page
- Resolves: #519019
* Mon Sep 21 2009 Petr Lautrbach <plautrba@redhat.com> 0.2.4-1
- Update release to tuned-0.2.4
- Resolves: #523385
2009-08-18 16:06:45 +00:00
* Tue Aug 18 2009 Phil Knirsch <pknirsch@redhat.com> 0.2.3-1
- Updated documentation
- Few more fixes for tuned-adm
* Fri Aug 14 2009 Phil Knirsch <pknirsch@redhat.com> 0.2.2-1
- Updates to the ktune scripts
- Added support for start/stop of the ktune scripts and ktune initscript
2009-08-04 15:43:24 +00:00
* Tue Aug 04 2009 Phil Knirsch <pknirsch@redhat.com> - 0.2.1-1
- Added first set of profiles
- Added tuned-adm tool for profile switching
- Fixed several issues with the tuned-adm tool
* Mon Jul 27 2009 Thomas Woerner <twoerner@redhat.com> - 0.2.0-1
- Integrated ktune-0.4
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2009-08-04 15:43:24 +00:00
* Thu Jul 16 2009 Phil Knirsch <pknirsch@redhat.com> - 0.1.7-1
- Added first version CPU tuning and monitoring plugins
* Thu Jun 25 2009 Petr Lautrbach <plautrba@redhat.com> - 0.1.6-1
- added scomes
* Wed Mar 25 2009 Phil Knirsch <pknirsch@redhat.com> - 0.1.5-1
- Updated documentation, thanks to Marcela Maslanova!
- Updated diskdevstat and netdevstat to have command line arguments
- Added the possibility to output a histogram at the end of the
run for detailed information about the collected data
* Fri Mar 06 2009 Phil Knirsch <pknirsch@redhat.com> - 0.1.4-1
- Dropped unecessary kernel-debuginfo requires from tuned-utils
2009-03-03 09:56:17 +00:00
* Mon Mar 02 2009 Phil Knirsch <pknirsch@redhat.com> - 0.1.3-1
- Fixed placement of doc entry at tuned-utils package
* Thu Feb 26 2009 Phil Knirsch <pknirsch@redhat.com> - 0.1.2-1
- Added config file option to enable/disable plugins
- Switched from ConfigParser to RawConfigParser
- Renamed doc/README.txt to doc/DESIGN.txt
- Added tuned.conf man page
- Updated tuned man page
- Updated package descriptions (#487312)
- Added documentation for utils scripts (#487312)
* Wed Feb 25 2009 Phil Knirsch <pknirsch@redhat.com> - 0.1.1-1
- Bump version
- Added comment in empty __init__.py files
- Fixed BuildRoot tag to use latest recommendation of FPG
- Lots of whitespace changes
- Some minor README changes
- Added a changelog rule in Makefile
- Fixed rpmlint error messages
- Add init() methods to each plugin
- Call plugin init() methods during tuned's init()
- Add support for command line parameters
o -c conffile|--config==conffile to specify the location of the config file
o -d to start tuned as a daemon (instead of as normal app)
- Readded the debug output in case tuned isn't started as as daemon
- Fixed initialization of max transfer values for net tuning plugin
- Added complete cleanup code in case of tuned exiting and/or
getting a SIGTERM to restore default values
- Made the disk tuning pluging less nosy if started as non-daemon
- Fixed missing self. in the tuned.py config handling
- Added a manpage
- Fixed summary
- Added missing GPL notic to tuned.py
- Added explanation for Source entry in specfile
- Added a distarchive target for the Makefile for proper tagging in git
- Added a explanation how to create the tarball via git in the specfile
- Fixed the defattr() lines in the specfile to conform FRG
* Mon Feb 23 2009 Phil Knirsch <pknirsch@redhat.com> - 0.1.0-1
- Initial version