]>
Commit | Line | Data |
---|---|---|
7ca69a96 | 1 | Summary: Balancing of IRQs between multiple CPUs |
d77fb2e0 | 2 | Summary(pl.UTF-8): Rozdzielanie IRQ pomiędzy wiele procesorów |
7ca69a96 | 3 | Name: irqbalance |
19e2b417 AM |
4 | Version: 1.0.3 |
5 | Release: 1 | |
cde2830c | 6 | License: GPL |
41c79ca6 | 7 | Group: Daemons |
19e2b417 AM |
8 | Source0: http://irqbalance.googlecode.com/files/irqbalance-1.0.3.tar.gz |
9 | # Source0-md5: 6f246481d6295bcb9a79751c03207c96 | |
d763f13c | 10 | Source1: %{name}.init |
67f82f96 PG |
11 | Source2: %{name}.sysconfig |
12 | Source3: %{name}.service | |
19e2b417 | 13 | URL: http://code.google.com/p/irqbalance/ |
a19410e5 | 14 | BuildRequires: glib2-devel |
edeee08c | 15 | # due to -fpie |
e7790d55 | 16 | BuildRequires: gcc >= 5:3.4 |
19e2b417 AM |
17 | BuildRequires: libcap-ng-devel |
18 | BuildRequires: numactl-devel | |
d8794f4c | 19 | BuildRequires: pkgconfig |
a455a3a6 | 20 | BuildRequires: rpmbuild(macros) >= 1.647 |
a19410e5 | 21 | BuildRequires: xorg-util-gccmakedep |
bae0186f | 22 | Requires(post,preun): /sbin/chkconfig |
a455a3a6 | 23 | Requires(post,preun,postun): systemd-units >= 38 |
84afc4b1 | 24 | Requires: rc-scripts |
a455a3a6 | 25 | Requires: systemd-units >= 38 |
7ca69a96 AM |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
23ff0f78 PG |
29 | irqbalance is a daemon that evenly distributes IRQ load across |
30 | multiple CPUs for enhanced performance. | |
7ca69a96 | 31 | |
df4bda38 JR |
32 | %description -l pl.UTF-8 |
33 | Narzędzie do rozdzielania przerwań IRQ pomiędzy wiele procesorów | |
34 | w celu zwiększenia wydajności systemu. | |
cf0d64ca | 35 | |
7ca69a96 | 36 | %prep |
a19410e5 | 37 | %setup -q |
7ca69a96 AM |
38 | |
39 | %build | |
19e2b417 AM |
40 | %configure \ |
41 | --with-libcap-ng=yes | |
7ca69a96 AM |
42 | |
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
19e2b417 | 45 | install -d $RPM_BUILD_ROOT%{systemdunitdir} \ |
67f82f96 | 46 | $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} |
7ca69a96 | 47 | |
19e2b417 AM |
48 | %{__make} install \ |
49 | DESTDIR=$RPM_BUILD_ROOT | |
50 | ||
d763f13c | 51 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
67f82f96 PG |
52 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name} |
53 | install %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir} | |
7ca69a96 AM |
54 | |
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
d763f13c AM |
58 | %post |
59 | /sbin/chkconfig --add irqbalance | |
84afc4b1 | 60 | %service irqbalance restart "irqbalance daemon" |
67f82f96 | 61 | %systemd_post irqbalance.service |
d763f13c AM |
62 | |
63 | %preun | |
64 | if [ "$1" = "0" ]; then | |
84afc4b1 ER |
65 | %service irqbalance stop |
66 | /sbin/chkconfig --del irqbalance | |
d763f13c | 67 | fi |
67f82f96 PG |
68 | %systemd_preun irqbalance.service |
69 | ||
70 | %postun | |
71 | %systemd_reload | |
d763f13c | 72 | |
3fef12a7 PG |
73 | %triggerpostun -- irqbalance < 0.55-4 |
74 | %systemd_trigger irqbalance.service | |
75 | ||
7ca69a96 AM |
76 | %files |
77 | %defattr(644,root,root,755) | |
7ca69a96 | 78 | %attr(755,root,root) %{_sbindir}/* |
d763f13c | 79 | %attr(754,root,root) /etc/rc.d/init.d/irqbalance |
67f82f96 PG |
80 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} |
81 | %{systemdunitdir}/irqbalance.service | |
19e2b417 | 82 | %{_mandir}/man1/irqbalance.1* |