Summary: Policy for system wide latency Name: latency-policy Version: 0.1 Release: 1%{?dist} URL: http://people.freedesktop.org/~hughsient/releases/ Source0: %{name}-%{version}.tar.gz License: GPLv2+ Group: System Environment/Libraries Source0: http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires(post): chkconfig Requires(preun): chkconfig %description Latency is the time delay between the moment something is initiated, and the moment one of its effects begins or becomes detectable. Why do you care? Well, some power management modes save a ton of power, but also increase the time it takes to respond to these interrupts. Most users don't care as these delays a typically in the microsecond range, but you might if you're on a server processing financial data. %prep %setup -q %build %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %post /sbin/chkconfig --add latency-policy %preun if [ $1 = 0 ]; then service latency-policy stop > /dev/null 2>&1 /sbin/chkconfig --del latency-policy fi %files %defattr(-,root,root) %doc %{_datadir}/doc/%{name}-%{version}/COPYING %doc %{_datadir}/doc/%{name}-%{version}/ChangeLog %doc %{_datadir}/doc/%{name}-%{version}/README %dir %{_sysconfdir}/latency-policy %dir %{_sysconfdir}/latency-policy/config.d %config %{_sysconfdir}/latency-policy/config.d/* %config %{_sysconfdir}/sysconfig/latency %config %{_sysconfdir}/rc.d/init.d/latency-policy %dir %{_libdir}/latency-policy %{_libdir}/latency-policy/* %changelog * Sat Jul 12 2008 Richard Hughes - 0.1-1 - Initial version