irqbalance/irqbalance.spec

123 lines
3.4 KiB
RPMSpec

#
# spec file for package irqbalance (Version 0.55)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: irqbalance
License: GNU General Public License (GPL)
Group: System/Daemons
Autoreqprov: on
PreReq: %insserv_prereq
Version: 0.55
Release: 1
Summary: Balance IRQs on SMP Machines
Source: %{name}-%{version}.tar.bz2
Source2: irq_balancer
URL: http://www.irqbalance.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# xorg-x11-util-devel is for gccmakedep
BuildRequires: glib2-devel xorg-x11-util-devel
Patch0: irqbalance-fix-Makefile
%description
irqbalance dynamically switches the CPUs for IRQs to prevent cpu0 from
being used for all IRQs.
Authors:
--------
Arjan van de Ven <arjan@linux.intel.com>
%prep
%setup
%patch0 -p1
%build
make CFLAGS="$RPM_OPT_FLAGS -fPIE -pie"
%install
mkdir -p $RPM_BUILD_ROOT/%{_sbindir}
mkdir -p $RPM_BUILD_ROOT/etc/init.d
install -m 0755 irqbalance $RPM_BUILD_ROOT/%{_sbindir}
install -m 0755 $RPM_SOURCE_DIR/irq_balancer $RPM_BUILD_ROOT/etc/init.d
ln -s /etc/init.d/irq_balancer $RPM_BUILD_ROOT/%{_sbindir}/rcirq_balancer
%clean
rm -rf $RPM_BUILD_ROOT
%preun
%stop_on_removal irq_balancer
%post
%insserv_force_if_yast irq_balancer
%postun
%restart_on_update irq_balancer
%insserv_cleanup
%files
%defattr(-,root,root,-)
%{_sbindir}/irqbalance
/etc/init.d/irq_balancer
%{_sbindir}/rcirq_balancer
%changelog
* Wed Apr 11 2007 - bwalle@suse.de
- updated to irqbalance.org 0.55
o rewrite from static arrays to dynamic lists using glib
o added IRQBALANCE_ONESHOT, IRQBALANCE_BANNED_INTERRUPTS
IRQBALANCE_BANNED_CPUS configuration environment variables
- changed init script to not balance the timer interrupt due to
broken hardware
- added $remote_fs to Required-Start since the binary needs
glib2
* Tue Apr 03 2007 - bwalle@suse.de
- increased IRQ number to (256 + (32*MAX_CPU)) as done in the
x86_64 kernel
* Fri Jul 14 2006 - sf@suse.de
- added patch from bug #171500, fixing regexps
* Tue May 16 2006 - sf@suse.de
- added irqbalance-assert.diff to completely fix
bug #158186 (see changelog entry below)
* Tue May 09 2006 - sf@suse.de
- increase MAX_INTERRUPTS to 512 to avoid
segfault (bug #158186)
* Wed May 03 2006 - sf@suse.de
- modified startscript to start irqbalancing only on real SMP
machines (multisocket) (bug #171500)
* Thu Feb 09 2006 - ak@suse.de
- increase max number of cpus to 128 (#146945)
- install manpage
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Oct 31 2005 - dmueller@suse.de
- don't build as root
* Fri Sep 02 2005 - ro@suse.de
- rcscript: ignore on machines with < 2 CPUs
* Tue Jun 21 2005 - ro@suse.de
- build with fPIE/pie
* Mon Feb 16 2004 - sf@suse.de
- update to 0.09
* Sat Sep 20 2003 - kukuk@suse.de
- Add PreRequires for insserv
* Thu Sep 04 2003 - ro@suse.de
- added stop_on_removal and restart_on_update
- changed insserv_and_fillup to insserv_force_if_yast
* Thu Sep 04 2003 - sf@suse.de
- added %%insserv_and_fillup in %%post
and %%insserv_cleanup in %%postun
* Thu Sep 04 2003 - ak@suse.de
- update to version 0.6
- Clean up init script a bit
- Move initscript outside tar and mark as source
* Fri Mar 21 2003 - sf@suse.de
- initial version 0.1