1 Summary: Balancing of IRQs between multiple CPUs
2 Summary(pl): Rozdzielanie IRQ pomiêdzy wiele procesorów
7 Group: Applications/System
8 #Source0: http://people.redhat.com/arjanv/irqbalance/%{name}-%{version}.tar.gz
9 # Currently no known URL - taken from FC6 src.rpm:
10 Source0: http://www.blues.gda.pl/SOURCES/%{name}-%{version}.tar.gz
11 # Source0-md5: 837f1d69e9b6ef0a58bbd4cf4e0d7f28
13 Patch0: %{name}-opt.patch
14 Patch1: %{name}-classes.patch
15 Patch2: %{name}-norebalance-zeroints.patch
16 Patch3: %{name}-pie.patch
17 BuildRequires: rpmbuild(macros) >= 1.268
18 Requires(post,preun): /sbin/chkconfig
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 irqbalance is a daemon that evenly distributes IRQ load across
24 multiple CPUs for enhanced performance.
27 Narzêdzie do rozdzielania przerwañ IRQ pomiêdzy wiele procesorów
28 w celu zwiêkszenia wydajno¶ci systemu.
39 %{__make} %{?debug:debug} \
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man1,/etc/rc.d/init.d}
47 install %{name} $RPM_BUILD_ROOT%{_sbindir}
48 install %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1
49 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
52 rm -rf $RPM_BUILD_ROOT
55 /sbin/chkconfig --add irqbalance
56 %service irqbalance restart "irqbalance daemon"
59 if [ "$1" = "0" ]; then
60 %service irqbalance stop
61 /sbin/chkconfig --del irqbalance
65 %defattr(644,root,root,755)
67 %attr(755,root,root) %{_sbindir}/*
69 %attr(754,root,root) /etc/rc.d/init.d/irqbalance