]> git.pld-linux.org Git - packages/irqbalance.git/blob - irqbalance.spec
39469bcaae46ca8f627d46fe320dce05f293eee0
[packages/irqbalance.git] / irqbalance.spec
1 Summary:        Balancing of IRQs between multiple CPUs
2 Summary(pl):    Rozdzielanie IRQ pomiêdzy wiele procesorów
3 Name:           irqbalance
4 Version:        0.12
5 Release:        2
6 License:        OSL v1.1
7 Group:          Applications/System
8 Source0:        http://people.redhat.com/arjanv/irqbalance/%{name}-%{version}.tar.gz
9 # Source0-md5:  1f225b73a01380955231b77d9be60c7a
10 Source1:        %{name}.init
11 Patch0:         %{name}-opt.patch
12 BuildRequires:  rpmbuild(macros) >= 1.268
13 Requires(post,preun):   /sbin/chkconfig
14 Requires:       rc-scripts
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 Balancing of IRQs between multiple CPUs.
19
20 %description -l pl
21 Narzêdzie do rozdzielania przerwañ IRQ pomiêdzy wiele procesorów.
22
23 %prep
24 %setup -q -n %{name}
25 %patch -p1
26
27 %build
28 %{__make} %{?debug:debug} \
29         CC="%{__cc}" \
30         CFLAGS="%{rpmcflags}"
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man1,/etc/rc.d/init.d}
35
36 install %{name} $RPM_BUILD_ROOT%{_sbindir}
37 install %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1
38 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
39
40 %clean
41 rm -rf $RPM_BUILD_ROOT
42
43 %post
44 /sbin/chkconfig --add irqbalance
45 %service irqbalance restart "irqbalance daemon"
46
47 %preun
48 if [ "$1" = "0" ]; then
49         %service irqbalance stop
50         /sbin/chkconfig --del irqbalance
51 fi
52
53 %files
54 %defattr(644,root,root,755)
55 %doc Changelog TODO
56 %attr(755,root,root) %{_sbindir}/*
57 %{_mandir}/man1/*
58 %attr(754,root,root) /etc/rc.d/init.d/irqbalance
This page took 0.076825 seconds and 2 git commands to generate.