- 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
94 lines
3.0 KiB
RPMSpec
94 lines
3.0 KiB
RPMSpec
#
|
|
# spec file for package irqbalance
|
|
#
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
Name: irqbalance
|
|
Version: 0.56_svn201010021305
|
|
Release: 0
|
|
License: GPLv2+
|
|
Summary: Balance IRQs on SMP Machines
|
|
Url: http://www.irqbalance.org
|
|
Group: System/Daemons
|
|
Source: %{name}-%{version}.tar.bz2
|
|
Source1: irqbalance.pod
|
|
Source2: irq_balancer
|
|
Source3: sysconfig.irqbalance
|
|
Source4: irqbalance.service
|
|
# xorg-x11-util-devel is for gccmakedep
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
PreReq: coreutils
|
|
PreReq: fillup
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%if 0%{?suse_version} >= 1130
|
|
BuildRequires: libcap-ng-devel
|
|
%endif
|
|
# PATCH-MISSING-TAG -- See http://en.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
|
Patch0: irqbalance-fix-Makefile
|
|
# PATCH-MISSING-TAG -- See http://en.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
|
Patch1: irqbalance-0.55-as-needed.patch
|
|
|
|
%description
|
|
irqbalance dynamically switches the CPUs for IRQs to prevent cpu0 from
|
|
being used for all IRQs.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
%patch1
|
|
|
|
%build
|
|
./autogen.sh
|
|
%configure
|
|
make LDFLAGS="-Wl,-z,relro,-z,now" CFLAGS="%{optflags} -fPIE -pie"
|
|
cp %{SOURCE1} .
|
|
cp %{SOURCE3} .
|
|
pod2man --release=0.5.5 --center=irqbalance irqbalance.pod irqbalance.1
|
|
gzip irqbalance.1
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_sbindir}
|
|
mkdir -p %{buildroot}%{_sysconfdir}/init.d
|
|
install -m 0755 irqbalance %{buildroot}%{_sbindir}
|
|
install -m 0755 $RPM_SOURCE_DIR/irq_balancer %{buildroot}%{_sysconfdir}/init.d
|
|
ln -s /etc/init.d/irq_balancer %{buildroot}%{_sbindir}/rcirq_balancer
|
|
mkdir -p %{buildroot}%{_mandir}/man1
|
|
install -m 0644 irqbalance.1.gz %{buildroot}%{_mandir}/man1
|
|
mkdir -p %{buildroot}%{_localstatedir}/adm/fillup-templates/
|
|
install -m 0644 sysconfig.irqbalance %{buildroot}%{_localstatedir}/adm/fillup-templates/
|
|
mkdir -p %{buildroot}/lib/systemd/system/
|
|
install -D -p -m 0644 %{SOURCE4} %{buildroot}/lib/systemd/system/
|
|
|
|
%post
|
|
%fillup_only
|
|
|
|
%preun
|
|
%stop_on_removal irq_balancer
|
|
|
|
%postun
|
|
%restart_on_update irq_balancer
|
|
%insserv_cleanup
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%{_sbindir}/irqbalance
|
|
%{_sysconfdir}/init.d/irq_balancer
|
|
/lib/systemd/system/irqbalance.service
|
|
%{_sbindir}/rcirq_balancer
|
|
%{_mandir}/man1/irqbalance.1.gz
|
|
%{_localstatedir}/adm/fillup-templates/sysconfig.irqbalance
|
|
|
|
%changelog
|