]>
Commit | Line | Data |
---|---|---|
1 | Summary: Balancing of IRQs between multiple CPUs | |
2 | Summary(pl.UTF-8): Rozdzielanie IRQ pomiędzy wiele procesorów | |
3 | Name: irqbalance | |
4 | Version: 0.55 | |
5 | Release: 1 | |
6 | License: GPL | |
7 | Group: Applications/System | |
8 | Source0: http://www.irqbalance.org/releases/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 9f6b314ff1fdc14173abeb40592d4edf | |
10 | Source1: %{name}.init | |
11 | Patch0: %{name}-opt.patch | |
12 | Patch1: %{name}-pie.patch | |
13 | URL: http://www.irqbalance.org/ | |
14 | BuildRequires: glib2-devel | |
15 | # due to -fpie | |
16 | BuildRequires: gcc >= 5:3.4 | |
17 | BuildRequires: rpmbuild(macros) >= 1.268 | |
18 | BuildRequires: xorg-util-gccmakedep | |
19 | Requires(post,preun): /sbin/chkconfig | |
20 | Requires: rc-scripts | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | irqbalance is a daemon that evenly distributes IRQ load across | |
25 | multiple CPUs for enhanced performance. | |
26 | ||
27 | %description -l pl.UTF-8 | |
28 | Narzędzie do rozdzielania przerwań IRQ pomiędzy wiele procesorów | |
29 | w celu zwiększenia wydajności systemu. | |
30 | ||
31 | %prep | |
32 | %setup -q | |
33 | %patch0 -p1 | |
34 | %patch1 -p1 | |
35 | ||
36 | %build | |
37 | %{__make} \ | |
38 | CC="%{__cc}" \ | |
39 | OPT="%{rpmcflags}%{?debug: debug.c -DDEBUG}" \ | |
40 | LDFLAGS="%{rpmldflags}" | |
41 | ||
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man1,/etc/rc.d/init.d} | |
45 | ||
46 | install %{name} $RPM_BUILD_ROOT%{_sbindir} | |
47 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} | |
48 | ||
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %post | |
53 | /sbin/chkconfig --add irqbalance | |
54 | %service irqbalance restart "irqbalance daemon" | |
55 | ||
56 | %preun | |
57 | if [ "$1" = "0" ]; then | |
58 | %service irqbalance stop | |
59 | /sbin/chkconfig --del irqbalance | |
60 | fi | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %attr(755,root,root) %{_sbindir}/* | |
65 | %attr(754,root,root) /etc/rc.d/init.d/irqbalance |