source: projects/specs/trunk/i/irqbalance/irqbalance-vl.spec @ 11536

Revision 11536, 3.3 KB checked in by tomop, 5 years ago (diff)

irqbalance-1.3.0-1

Line 
1%define name    irqbalance
2%define version 1.3.0
3%define release 1%{?_dist_release}
4
5Summary:        Daemon to balance irq's across multiple CPUs/Cores.
6Summary(ja):    複数の CPU 間で IRQ をバランスさせるためのデーモン
7Name:           %{name}
8Version:        %{version}
9Release:        %{release}
10License:        GPLv3
11Group:          System Environment/Base
12URL:            http://irqbalance.github.io/irqbalance/
13Source0:        https://github.com/Irqbalance/irqbalance/archive/v1.3.0.tar.gz#/%{name}-%{version}.tar.gz
14Source1:        %{name}.init
15Source2:        %{name}.sysconfig
16
17Patch1:         %{name}-1.0.4-env-file-path.patch
18
19BuildRoot:      %{_tmppath}/%{name}-%{version}-root
20BuildRequires:  autoconf automake libtool
21BuildRequires:  glib2-devel pkgconfig libcap-ng-devel
22BuildRequires:  ncurses-devel
23
24Vendor:                 Project Vine
25Distribution:   Vine Linux
26
27%description
28irqbalance is a daemon that evenly distributes IRQ load across
29multiple CPUs for enhanced performance.
30
31%prep
32%setup -q
33%patch1 -p1
34
35%build
36./autogen.sh
37%configure
38CFLAGS="%{optflags}" %__make %{?_smp_mflags}
39
40%install
41[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
42mkdir -p $RPM_BUILD_ROOT%{_sbindir}
43install irqbalance $RPM_BUILD_ROOT%{_sbindir}
44mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/{rc.d/init.d,sysconfig}
45install %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/irqbalance
46install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/irqbalance
47mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
48install irqbalance.1 %{buildroot}%{_mandir}/man1/
49
50%clean
51[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
52
53
54%post
55/sbin/chkconfig --add irqbalance
56/sbin/service irqbalance condrestart
57
58%preun
59if [ $1 = 0 ]; then
60    /sbin/service irqbalance stop > /dev/null 2>&1
61    /sbin/chkconfig --del irqbalance
62fi
63
64
65%files
66%defattr(-,root,root)
67%doc COPYING AUTHORS
68%config(noreplace) %{_sysconfdir}/rc.d/init.d/*
69%config(noreplace) %{_sysconfdir}/sysconfig/*
70%{_sbindir}/*
71%{_mandir}/*/*
72
73
74
75%changelog
76* Sat Feb 24 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.0-1
77- updated to 1.3.0.
78
79* Mon Jan 12 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.8-1
80- update to 1.0.8
81
82* Fri Mar 22 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.5-1
83- update to 1.0.5
84
85* Tue Apr 19 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.55-3
86- add missing BuildRequires: imake
87
88* Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> 0.55-2
89- rebuilt with rpm-4.8.1-3
90
91* Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 0.55-1vl5
92- applied new versioning policy, spec in utf-8
93
94* Sat Dec 16 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.55-0vl1
95- update to irqbalance 0.55 from www.irqbalance.org
96- add patch0 from svn trunk(rev.19)
97
98* Fri Dec 15 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.13-0vl2
99- update irqbalance.init
100  - do not start irqbalance on non-SMP system.
101  - do not "killproc" if irqbalance is not running.
102
103* Thu Nov 16 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.13-0vl1
104- new upstream release
105- change Group to System Environment/Base
106- add manpage
107
108* Mon Jan 17 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 0.12-0vl1
109- new upstream release
110
111* Sun Aug 29 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.09-0vl1
112- initial build for Vine Linux
113
114* Tue Jun 01 2004 Marcel Pol <mpol@mandrake.org> 0.09-1mdk
115- 0.09
116
117* Tue Sep 09 2003 Marcel Pol <mpol@gmx.net> 0.06-1mdk
118- initial mandrake contrib
119Patch2: irqbalance-norebalance-zeroints.patch
120Patch3: irqbalance-classes.patch
121Patch4: irqbalance-oneshot.patch
Note: See TracBrowser for help on using the repository browser.