irqbalance/irqbalance.spec
Dave Jones fc413c7607 auto-import irqbalance-1.12-1.1 on branch devel from
irqbalance-1.12-1.1.src.rpm
2005-01-07 05:58:43 +00:00

68 lines
1.5 KiB
RPMSpec

Summary: IRQ balancing daemon.
Name: irqbalance
Version: 1.12
Release: %(R="$Revision$"; RR="${R##: }"; echo ${RR%%?})
Serial: 1
Group: System Environment/Base
License: GPL/OSL
Source0: irqbalance-0.12.tar.gz
Source1: irqbalance.init
Source2: irqbalance.sysconfig
Buildroot: %{_tmppath}/%{name}-%{version}-root
Prereq: /sbin/chkconfig /sbin/service
Patch1: irqbalance-pie.patch
ExclusiveArch: i386 x86_64 ia64
%description
irqbalance is a daemon that evenly distributes IRQ load across
multiple CPUs for enhanced performance.
%prep
%setup -q -c -a 0
%patch1 -p1
%build
rm -rf $RPM_BUILD_ROOT
mkdir -p %{buildroot}/usr/sbin
mkdir -p %{buildroot}/usr/man
mkdir -p %{buildroot}/etc/rc.d/init.d
mkdir -p %{buildroot}/etc/sysconfig
cd irqbalance
make
%install
mkdir -p %{buildroot}/usr/share/man/man{1,8}
cd irqbalance
install irqbalance %{buildroot}/usr/sbin
install %{SOURCE91} %{buildroot}/etc/rc.d/init.d/irqbalance
install %{SOURCE92} %{buildroot}/etc/sysconfig/irqbalance
install irqbalance.1 %{buildroot}/usr/share/man/man1/
chmod -R a-s %{buildroot}
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
%files
%defattr(-,root,root)
/usr/sbin/irqbalance
%attr(0644,root,root) %{_mandir}/*/*
/etc/rc.d/init.d/irqbalance
%attr(0644,root,root) /etc/sysconfig/irqbalance
%preun
if [ "$1" = "0" ] ; then
/sbin/chkconfig --del irqbalance
fi
%post
/sbin/chkconfig --add irqbalance
%changelog
* Sat Dec 18 2004 Dave Jones <davej@redhat.com>
- Initial packaging, based on kernel-utils.