Accepting request 79033 from home:saschpe:branches:Base:System

- Run spec-cleaner on spec file
- Don't start irqbalance by default, testing confirmed that it does
  not make any difference on machines with less than 32 cores 
  nowadays (GKH's comment)

OBS-URL: https://build.opensuse.org/request/show/79033
OBS-URL: https://build.opensuse.org/package/show/Base:System/irqbalance?expand=0&rev=10
This commit is contained in:
Cristian Rodríguez 2011-08-16 17:08:20 +00:00 committed by Git OBS Bridge
parent b75721322e
commit 6ee72f3138
3 changed files with 37 additions and 41 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Aug 16 08:40:22 UTC 2011 - saschpe@suse.de
- Run spec-cleaner on spec file
- Don't start irqbalance by default, testing confirmed that it does
not make any difference on machines with less than 32 cores
nowadays (GKH's comment)
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jun 7 14:13:36 UTC 2011 - aj@suse.de Tue Jun 7 14:13:36 UTC 2011 - aj@suse.de

View File

@ -15,43 +15,35 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
# norootforbuild
Name: irqbalance Name: irqbalance
License: GPLv2+
Group: System/Daemons
AutoReqProv: on
PreReq: %insserv_prereq
Version: 0.56_svn201010021305 Version: 0.56_svn201010021305
Release: 7 Release: 0
License: GPLv2+
Summary: Balance IRQs on SMP Machines Summary: Balance IRQs on SMP Machines
Url: http://www.irqbalance.org
Group: System/Daemons
Source: %{name}-%{version}.tar.bz2 Source: %{name}-%{version}.tar.bz2
Source1: irqbalance.pod Source1: irqbalance.pod
Source2: irq_balancer Source2: irq_balancer
Source3: sysconfig.irqbalance Source3: sysconfig.irqbalance
Source4: irqbalance.service Source4: irqbalance.service
Url: http://www.irqbalance.org
PreReq: coreutils fillup
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# xorg-x11-util-devel is for gccmakedep # xorg-x11-util-devel is for gccmakedep
BuildRequires: glib2-devel BuildRequires: pkgconfig(glib-2.0)
%if 0%{suse_version} >= 1130 PreReq: coreutils
PreReq: fillup
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} >= 1130
BuildRequires: libcap-ng-devel BuildRequires: libcap-ng-devel
%endif %endif
# PATCH-MISSING-TAG -- See http://en.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch0: irqbalance-fix-Makefile Patch0: irqbalance-fix-Makefile
# PATCH-MISSING-TAG -- See http://en.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch1: irqbalance-0.55-as-needed.patch Patch1: irqbalance-0.55-as-needed.patch
%description %description
irqbalance dynamically switches the CPUs for IRQs to prevent cpu0 from irqbalance dynamically switches the CPUs for IRQs to prevent cpu0 from
being used for all IRQs. being used for all IRQs.
Authors:
--------
Arjan van de Ven <arjan@linux.intel.com>
%prep %prep
%setup -q %setup -q
%patch0 -p1 %patch0 -p1
@ -60,35 +52,31 @@ Authors:
%build %build
./autogen.sh ./autogen.sh
%configure %configure
make LDFLAGS="-Wl,-z,relro,-z,now" CFLAGS="$RPM_OPT_FLAGS -fPIE -pie" make LDFLAGS="-Wl,-z,relro,-z,now" CFLAGS="%{optflags} -fPIE -pie"
cp %{SOURCE1} . cp %{SOURCE1} .
cp %{SOURCE3} . cp %{SOURCE3} .
pod2man --release=0.5.5 --center=irqbalance irqbalance.pod irqbalance.1 pod2man --release=0.5.5 --center=irqbalance irqbalance.pod irqbalance.1
gzip irqbalance.1 gzip irqbalance.1
%install %install
mkdir -p $RPM_BUILD_ROOT/%{_sbindir} mkdir -p %{buildroot}%{_sbindir}
mkdir -p $RPM_BUILD_ROOT/etc/init.d mkdir -p %{buildroot}%{_sysconfdir}/init.d
install -m 0755 irqbalance $RPM_BUILD_ROOT/%{_sbindir} install -m 0755 irqbalance %{buildroot}%{_sbindir}
install -m 0755 $RPM_SOURCE_DIR/irq_balancer $RPM_BUILD_ROOT/etc/init.d install -m 0755 $RPM_SOURCE_DIR/irq_balancer %{buildroot}%{_sysconfdir}/init.d
ln -s /etc/init.d/irq_balancer $RPM_BUILD_ROOT/%{_sbindir}/rcirq_balancer ln -s /etc/init.d/irq_balancer %{buildroot}%{_sbindir}/rcirq_balancer
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1 mkdir -p %{buildroot}%{_mandir}/man1
install -m 0644 irqbalance.1.gz $RPM_BUILD_ROOT/%{_mandir}/man1 install -m 0644 irqbalance.1.gz %{buildroot}%{_mandir}/man1
mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates/ mkdir -p %{buildroot}%{_localstatedir}/adm/fillup-templates/
install -m 0644 sysconfig.irqbalance $RPM_BUILD_ROOT/var/adm/fillup-templates/ install -m 0644 sysconfig.irqbalance %{buildroot}%{_localstatedir}/adm/fillup-templates/
mkdir -p $RPM_BUILD_ROOT/lib/systemd/system/ mkdir -p %{buildroot}/lib/systemd/system/
install -D -p -m 0644 %{SOURCE4} $RPM_BUILD_ROOT/lib/systemd/system/ install -D -p -m 0644 %{SOURCE4} %{buildroot}/lib/systemd/system/
%clean %post
rm -rf $RPM_BUILD_ROOT %fillup_only
%preun %preun
%stop_on_removal irq_balancer %stop_on_removal irq_balancer
%post
%insserv_force_if_yast irq_balancer
%{fillup_only}
%postun %postun
%restart_on_update irq_balancer %restart_on_update irq_balancer
%insserv_cleanup %insserv_cleanup
@ -96,10 +84,10 @@ rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_sbindir}/irqbalance %{_sbindir}/irqbalance
/etc/init.d/irq_balancer %{_sysconfdir}/init.d/irq_balancer
/lib/systemd/system/irqbalance.service /lib/systemd/system/irqbalance.service
%{_sbindir}/rcirq_balancer %{_sbindir}/rcirq_balancer
%{_mandir}/man1/irqbalance.1.gz %{_mandir}/man1/irqbalance.1.gz
/var/adm/fillup-templates/sysconfig.irqbalance %{_localstatedir}/adm/fillup-templates/sysconfig.irqbalance
%changelog %changelog