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
18 BuildRequires: gcc >= 5:3.4
19 BuildRequires: rpmbuild(macros) >= 1.268
20 Requires(post,preun): /sbin/chkconfig
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 irqbalance is a daemon that evenly distributes IRQ load across
26 multiple CPUs for enhanced performance.
29 Narzêdzie do rozdzielania przerwañ IRQ pomiêdzy wiele procesorów
30 w celu zwiêkszenia wydajno¶ci systemu.
42 CFLAGS="%{rpmcflags}%{?debug: debug.c -DDEBUG}" \
43 LDFLAGS="%{rpmldflags}"
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man1,/etc/rc.d/init.d}
49 install %{name} $RPM_BUILD_ROOT%{_sbindir}
50 install %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1
51 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
54 rm -rf $RPM_BUILD_ROOT
57 /sbin/chkconfig --add irqbalance
58 %service irqbalance restart "irqbalance daemon"
61 if [ "$1" = "0" ]; then
62 %service irqbalance stop
63 /sbin/chkconfig --del irqbalance
67 %defattr(644,root,root,755)
69 %attr(755,root,root) %{_sbindir}/*
71 %attr(754,root,root) /etc/rc.d/init.d/irqbalance