2007-01-16 00:17:54 +01:00
|
|
|
#
|
2007-04-12 23:30:06 +02:00
|
|
|
# spec file for package irqbalance (Version 0.55)
|
2007-01-16 00:17:54 +01:00
|
|
|
#
|
2008-08-15 23:56:56 +02:00
|
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:17:54 +01:00
|
|
|
#
|
2008-08-15 23:56:56 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:17:54 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-08-15 23:56:56 +02:00
|
|
|
|
2007-01-16 00:17:54 +01:00
|
|
|
Name: irqbalance
|
2007-12-12 18:12:55 +01:00
|
|
|
License: GPL v2 or later
|
2007-01-16 00:17:54 +01:00
|
|
|
Group: System/Daemons
|
2007-12-12 18:12:55 +01:00
|
|
|
AutoReqProv: on
|
2007-01-16 00:17:54 +01:00
|
|
|
PreReq: %insserv_prereq
|
2007-04-12 23:30:06 +02:00
|
|
|
Version: 0.55
|
2008-11-06 00:30:39 +01:00
|
|
|
Release: 120
|
2007-01-16 00:17:54 +01:00
|
|
|
Summary: Balance IRQs on SMP Machines
|
2007-04-12 23:30:06 +02:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2007-04-16 09:05:38 +02:00
|
|
|
Source1: irqbalance.pod
|
2007-01-16 00:17:54 +01:00
|
|
|
Source2: irq_balancer
|
2007-12-12 18:12:55 +01:00
|
|
|
Source3: sysconfig.irqbalance
|
|
|
|
Url: http://www.irqbalance.org
|
|
|
|
PreReq: coreutils fillup
|
2007-01-16 00:17:54 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-04-12 23:30:06 +02:00
|
|
|
# xorg-x11-util-devel is for gccmakedep
|
2007-04-16 09:05:38 +02:00
|
|
|
BuildRequires: glib2-devel perl xorg-x11-util-devel
|
2007-04-12 23:30:06 +02:00
|
|
|
Patch0: irqbalance-fix-Makefile
|
2007-01-16 00:17:54 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
irqbalance dynamically switches the CPUs for IRQs to prevent cpu0 from
|
|
|
|
being used for all IRQs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
2007-04-12 23:30:06 +02:00
|
|
|
Arjan van de Ven <arjan@linux.intel.com>
|
2007-01-16 00:17:54 +01:00
|
|
|
|
|
|
|
%prep
|
2007-04-12 23:30:06 +02:00
|
|
|
%setup
|
2007-01-16 00:17:54 +01:00
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
%build
|
|
|
|
make CFLAGS="$RPM_OPT_FLAGS -fPIE -pie"
|
2007-04-16 09:05:38 +02:00
|
|
|
cp %{SOURCE1} .
|
2007-12-12 18:12:55 +01:00
|
|
|
cp %{SOURCE3} .
|
2007-04-16 09:05:38 +02:00
|
|
|
pod2man --release=0.5.5 --center=irqbalance irqbalance.pod irqbalance.1
|
|
|
|
gzip irqbalance.1
|
2007-01-16 00:17:54 +01:00
|
|
|
|
|
|
|
%install
|
2007-04-12 23:30:06 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_sbindir}
|
2007-01-16 00:17:54 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/init.d
|
2007-04-12 23:30:06 +02:00
|
|
|
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
|
2007-04-16 09:05:38 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
|
|
|
|
install -m 0644 irqbalance.1.gz $RPM_BUILD_ROOT/%{_mandir}/man1
|
2007-12-12 18:12:55 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates/
|
|
|
|
install -m 0644 sysconfig.irqbalance $RPM_BUILD_ROOT/var/adm/fillup-templates/
|
2007-01-16 00:17:54 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%stop_on_removal irq_balancer
|
|
|
|
|
|
|
|
%post
|
|
|
|
%insserv_force_if_yast irq_balancer
|
2007-12-12 18:12:55 +01:00
|
|
|
%{fillup_only}
|
2007-01-16 00:17:54 +01:00
|
|
|
|
|
|
|
%postun
|
|
|
|
%restart_on_update irq_balancer
|
|
|
|
%insserv_cleanup
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2007-04-12 23:30:06 +02:00
|
|
|
%{_sbindir}/irqbalance
|
2007-01-16 00:17:54 +01:00
|
|
|
/etc/init.d/irq_balancer
|
2007-04-12 23:30:06 +02:00
|
|
|
%{_sbindir}/rcirq_balancer
|
2007-04-16 09:05:38 +02:00
|
|
|
%{_mandir}/man1/irqbalance.1.gz
|
2007-12-12 18:12:55 +01:00
|
|
|
/var/adm/fillup-templates/sysconfig.irqbalance
|
2007-01-16 00:17:54 +01:00
|
|
|
|
2007-04-03 21:31:37 +02:00
|
|
|
%changelog
|
2008-11-06 00:30:39 +01:00
|
|
|
* Wed Nov 05 2008 bwalle@suse.de
|
|
|
|
- Don't start the irqbalance on IA64 SGI SN2 systems (bnc#441505).
|
|
|
|
* Fri Aug 15 2008 bwalle@suse.de
|
2008-08-15 23:56:56 +02:00
|
|
|
- add "Required-Stop" to fix rpmlint error
|
2008-11-06 00:30:39 +01:00
|
|
|
* Tue Dec 11 2007 bwalle@suse.de
|
2007-12-12 18:12:55 +01:00
|
|
|
- add /etc/sysconfig/irqbalance configuration file for
|
|
|
|
IRQBALANCE_ONESHOT, IRQBALANCE_BANNED_CPUS and
|
|
|
|
IRQBALANCE_BANNED_INTERRUPTS configuration (#342593)
|
|
|
|
- fix some minor rpmlint warnings
|
2008-08-15 23:56:56 +02:00
|
|
|
* Thu Apr 26 2007 bwalle@suse.de
|
2007-04-27 00:28:53 +02:00
|
|
|
- remove special handling of timer interrupt and dual core
|
|
|
|
systems from init script because the new irq balancer does
|
|
|
|
that automatically
|
2008-11-06 00:30:39 +01:00
|
|
|
* Sun Apr 15 2007 bwalle@suse.de
|
2007-04-16 09:05:38 +02:00
|
|
|
- wrote manpage for irqbalance
|
2008-08-15 23:56:56 +02:00
|
|
|
* Wed Apr 11 2007 bwalle@suse.de
|
2007-04-12 23:30:06 +02:00
|
|
|
- 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
|
2008-08-15 23:56:56 +02:00
|
|
|
* Tue Apr 03 2007 bwalle@suse.de
|
2007-04-03 21:31:37 +02:00
|
|
|
- increased IRQ number to (256 + (32*MAX_CPU)) as done in the
|
|
|
|
x86_64 kernel
|
2008-08-15 23:56:56 +02:00
|
|
|
* Fri Jul 14 2006 sf@suse.de
|
2007-01-16 00:17:54 +01:00
|
|
|
- added patch from bug #171500, fixing regexps
|
2008-08-15 23:56:56 +02:00
|
|
|
* Tue May 16 2006 sf@suse.de
|
2007-01-16 00:17:54 +01:00
|
|
|
- added irqbalance-assert.diff to completely fix
|
|
|
|
bug #158186 (see changelog entry below)
|
2008-08-15 23:56:56 +02:00
|
|
|
* Tue May 09 2006 sf@suse.de
|
2007-01-16 00:17:54 +01:00
|
|
|
- increase MAX_INTERRUPTS to 512 to avoid
|
|
|
|
segfault (bug #158186)
|
2008-08-15 23:56:56 +02:00
|
|
|
* Wed May 03 2006 sf@suse.de
|
2007-01-16 00:17:54 +01:00
|
|
|
- modified startscript to start irqbalancing only on real SMP
|
|
|
|
machines (multisocket) (bug #171500)
|
2008-08-15 23:56:56 +02:00
|
|
|
* Thu Feb 09 2006 ak@suse.de
|
2007-01-16 00:17:54 +01:00
|
|
|
- increase max number of cpus to 128 (#146945)
|
|
|
|
- install manpage
|
2008-08-15 23:56:56 +02:00
|
|
|
* Wed Jan 25 2006 mls@suse.de
|
2007-01-16 00:17:54 +01:00
|
|
|
- converted neededforbuild to BuildRequires
|
2008-08-15 23:56:56 +02:00
|
|
|
* Mon Oct 31 2005 dmueller@suse.de
|
2007-01-16 00:17:54 +01:00
|
|
|
- don't build as root
|
2008-08-15 23:56:56 +02:00
|
|
|
* Fri Sep 02 2005 ro@suse.de
|
2007-01-16 00:17:54 +01:00
|
|
|
- rcscript: ignore on machines with < 2 CPUs
|
2008-11-06 00:30:39 +01:00
|
|
|
* Mon Jun 20 2005 ro@suse.de
|
2007-01-16 00:17:54 +01:00
|
|
|
- build with fPIE/pie
|
2008-08-15 23:56:56 +02:00
|
|
|
* Mon Feb 16 2004 sf@suse.de
|
2007-01-16 00:17:54 +01:00
|
|
|
- update to 0.09
|
2008-08-15 23:56:56 +02:00
|
|
|
* Sat Sep 20 2003 kukuk@suse.de
|
2007-01-16 00:17:54 +01:00
|
|
|
- Add PreRequires for insserv
|
2008-08-15 23:56:56 +02:00
|
|
|
* Thu Sep 04 2003 ro@suse.de
|
2007-01-16 00:17:54 +01:00
|
|
|
- added stop_on_removal and restart_on_update
|
|
|
|
- changed insserv_and_fillup to insserv_force_if_yast
|
2008-08-15 23:56:56 +02:00
|
|
|
* Thu Sep 04 2003 sf@suse.de
|
2007-01-16 00:17:54 +01:00
|
|
|
- added %%insserv_and_fillup in %%post
|
|
|
|
and %%insserv_cleanup in %%postun
|
2008-08-15 23:56:56 +02:00
|
|
|
* Thu Sep 04 2003 ak@suse.de
|
2007-01-16 00:17:54 +01:00
|
|
|
- update to version 0.6
|
|
|
|
- Clean up init script a bit
|
|
|
|
- Move initscript outside tar and mark as source
|
2008-08-15 23:56:56 +02:00
|
|
|
* Fri Mar 21 2003 sf@suse.de
|
2007-01-16 00:17:54 +01:00
|
|
|
- initial version 0.1
|