2007-01-16 00:17:54 +01:00
|
|
|
#
|
2011-07-07 15:08:03 +02:00
|
|
|
# spec file for package irqbalance
|
2007-01-16 00:17:54 +01:00
|
|
|
#
|
2015-03-17 16:27:20 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX 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/
|
|
|
|
#
|
|
|
|
|
2012-05-09 17:29:34 +02:00
|
|
|
|
2007-01-16 00:17:54 +01:00
|
|
|
Name: irqbalance
|
2015-03-17 16:27:20 +01:00
|
|
|
Version: 1.0.9
|
2011-12-01 18:11:30 +01:00
|
|
|
Release: 0
|
2007-01-16 00:17:54 +01:00
|
|
|
Summary: Balance IRQs on SMP Machines
|
2012-06-25 17:03:01 +02:00
|
|
|
License: GPL-2.0+
|
2014-06-16 15:30:14 +02:00
|
|
|
Group: System/Daemons
|
2015-01-23 18:09:29 +01:00
|
|
|
Url: https://github.com/Irqbalance/irqbalance
|
|
|
|
Source: https://github.com/Irqbalance/irqbalance/archive/v%{version}.tar.gz
|
2007-12-12 18:12:55 +01:00
|
|
|
Source3: sysconfig.irqbalance
|
2015-03-17 16:27:20 +01:00
|
|
|
BuildRequires: libcap-ng-devel
|
2011-10-17 16:03:00 +02:00
|
|
|
BuildRequires: libnuma-devel
|
2011-10-15 20:44:40 +02:00
|
|
|
BuildRequires: libtool
|
2015-03-17 16:27:20 +01:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2011-12-01 18:11:30 +01:00
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
2012-05-09 17:29:34 +02:00
|
|
|
Requires(pre): coreutils
|
|
|
|
Requires(pre): fillup
|
2015-03-17 16:27:20 +01:00
|
|
|
ExclusiveArch: ia64 x86_64 ppc64 ppc64le ppc %{sparc}
|
2011-11-30 09:32:10 +01:00
|
|
|
%{?systemd_requires}
|
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.
|
|
|
|
|
|
|
|
%prep
|
2010-10-03 22:41:57 +02:00
|
|
|
%setup -q
|
2007-01-16 00:17:54 +01:00
|
|
|
|
|
|
|
%build
|
2015-01-23 18:09:29 +01:00
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
2010-10-03 22:41:57 +02:00
|
|
|
%configure
|
2015-03-17 16:27:20 +01:00
|
|
|
make %{?_smp_mflags} LDFLAGS="-Wl,-z,relro,-z,now" CFLAGS="%{optflags} -fPIE -pie"
|
2007-12-12 18:12:55 +01:00
|
|
|
cp %{SOURCE3} .
|
2007-04-16 09:05:38 +02:00
|
|
|
gzip irqbalance.1
|
2007-01-16 00:17:54 +01:00
|
|
|
|
|
|
|
%install
|
2011-08-16 19:08:20 +02:00
|
|
|
mkdir -p %{buildroot}%{_sbindir}
|
|
|
|
install -m 0755 irqbalance %{buildroot}%{_sbindir}
|
|
|
|
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/
|
2015-03-17 16:27:20 +01:00
|
|
|
sed -ie "s|EnvironmentFile=.*|EnvironmentFile=%{_sysconfdir}/sysconfig/irqbalance|g" misc/irqbalance.service
|
2013-10-22 02:01:38 +02:00
|
|
|
# Remove syslog.target in systemd service file; not provided by systemd anymore
|
|
|
|
sed -ie "s|After=syslog.target||g" misc/irqbalance.service
|
2011-11-30 09:32:10 +01:00
|
|
|
install -D -m 0644 misc/irqbalance.service %{buildroot}%{_unitdir}/irqbalance.service
|
2015-03-17 16:27:20 +01:00
|
|
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcirqbalance
|
2011-11-30 09:32:10 +01:00
|
|
|
|
|
|
|
%pre
|
|
|
|
%service_add_pre irqbalance.service
|
2007-01-16 00:17:54 +01:00
|
|
|
|
2011-08-16 19:08:20 +02:00
|
|
|
%post
|
2014-06-13 17:59:46 +02:00
|
|
|
%fillup_only %{name}
|
2011-11-30 09:32:10 +01:00
|
|
|
%service_add_post irqbalance.service
|
2007-01-16 00:17:54 +01:00
|
|
|
|
|
|
|
%preun
|
2011-11-30 09:32:10 +01:00
|
|
|
%service_del_preun irqbalance.service
|
2007-01-16 00:17:54 +01:00
|
|
|
|
|
|
|
%postun
|
2011-11-30 09:32:10 +01:00
|
|
|
%service_del_postun irqbalance.service
|
2007-01-16 00:17:54 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2007-04-12 23:30:06 +02:00
|
|
|
%{_sbindir}/irqbalance
|
2014-09-11 15:21:48 +02:00
|
|
|
%{_sbindir}/rcirqbalance
|
2011-11-30 09:32:10 +01:00
|
|
|
%{_unitdir}/irqbalance.service
|
2007-04-16 09:05:38 +02:00
|
|
|
%{_mandir}/man1/irqbalance.1.gz
|
2011-08-16 19:08:20 +02:00
|
|
|
%{_localstatedir}/adm/fillup-templates/sysconfig.irqbalance
|
2007-01-16 00:17:54 +01:00
|
|
|
|
2007-04-03 21:31:37 +02:00
|
|
|
%changelog
|