%define name powertweak %define version 0.1.14 %define release 1 #%define serial 1 Summary: Powertweak - Tune system to optimal performance. Name: %{name} Version: %{version} Release: %{release} #Serial: %{serial} Copyright: GPL Group: Applications/System URL: http://linux.powertweak.com Vendor: Dave Jones Source: %{name}-%{version}.tar.bz2 #Patch: powertweak-0.1.1-destdir.patch ExclusiveArch: i386 BuildRoot: /var/tmp/%{name}-%{version} #Distribution: Freshmeat RPMs Packager: William Stearns %description Powertweak is a utility for tweaking your Linux system to peak performance. It can tune many parts of your system. Tunes PCI devices to use optimal settings. Enables performance enhancing features of the CPU(s). %prep %setup -q #%patch -p1 -b .destdir #cd lib #./configure --prefix=/usr %{version} #cd .. %build ./configure make %install if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi mkdir -p $RPM_BUILD_ROOT/usr/local/bin mkdir -p $RPM_BUILD_ROOT/usr/local/share/powertweak mkdir -p $RPM_BUILD_ROOT/usr/man/man8 mkdir -p $RPM_BUILD_ROOT/var/log/powertweak make DESTDIR=$RPM_BUILD_ROOT install cp -p $RPM_BUILD_DIR/%{name}-%{version}/Documentation/powertweak.man $RPM_BUILD_ROOT/usr/man/man8/powertweak.8 %clean if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi %files %defattr(-,root,root) %doc AUTHORS COPYING ChangeLog NEWS README Documentation/* %attr(755,root,root) /usr/local/bin/gpowertweak %attr(755,root,root) /usr/local/bin/powertweak %attr(755,root,root) /usr/local/bin/powertweakconfig %attr(755,root,root) %dir /usr/local/share/powertweak %attr(644,root,root) /usr/local/share/powertweak/procentry.xml %attr(755,root,root) /usr/man/man8/powertweak.8 %attr(755,root,root) %dir /var/log/powertweak %changelog * Thu May 18 2000 William Stearns - updated to 0.1.14 source. Spec updates. * Tue Jul 20 1999 Ryan Weaver [powertweak-0.1.1-1] - Initial RPM Build.