f9758014b6
- Update to version 1.6.0 (b47eea84cbb93f533b0cba2f1aa): * fix balancing when numa information isn't available * Refine document about IRQBALANCE_BANNED_CPUS * Fix string truncation issues detected by GCC 8 * fix socket path creation * Update document for option --banmod and --deepestcache * Fix ambiguous parsing of *node* entries in /sys. * procinterrupts: check xen-dyn-event more flexible * misc: Add an example for policy script * policyscript: ignore non-executable files when specifying a directory remove because already mainline: D fix_buffer_overflow_compiler.patch OBS-URL: https://build.opensuse.org/request/show/712883 OBS-URL: https://build.opensuse.org/package/show/Base:System/irqbalance?expand=0&rev=73
96 lines
2.9 KiB
RPMSpec
96 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package irqbalance
|
|
#
|
|
# Copyright (c) 2019 SUSE LINUX 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
|
%if ! %{defined _fillupdir}
|
|
%define _fillupdir %{_localstatedir}/adm/fillup-templates
|
|
%endif
|
|
Name: irqbalance
|
|
Version: 1.6.0
|
|
Release: 0
|
|
Summary: Balance IRQs on SMP Machines
|
|
License: GPL-2.0-or-later
|
|
Group: System/Daemons
|
|
Url: https://github.com/Irqbalance/irqbalance
|
|
#Source: https://github.com/Irqbalance/irqbalance/archive/v%%{version}.tar.gz
|
|
Source: %{name}-%{version}.tar.gz
|
|
Source3: sysconfig.irqbalance
|
|
Patch1: Set-fd-limit.patch
|
|
Patch2: install-man-pages.patch
|
|
BuildRequires: libcap-ng-devel
|
|
BuildRequires: libtool
|
|
BuildRequires: ncurses-devel
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: systemd-rpm-macros
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
Requires(pre): coreutils
|
|
Requires(pre): fillup
|
|
ExcludeArch: s390 s390x
|
|
%{?systemd_requires}
|
|
%ifnarch %{arm}
|
|
BuildRequires: libnuma-devel
|
|
%endif
|
|
|
|
%description
|
|
irqbalance dynamically switches the CPUs for IRQs to prevent cpu0 from
|
|
being used for all IRQs.
|
|
|
|
%prep
|
|
%setup -q
|
|
%autopatch -p1
|
|
|
|
%build
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
%configure
|
|
make %{?_smp_mflags} LDFLAGS="-Wl,-z,relro,-z,now" CFLAGS="%{optflags} -fPIE -pie $(ncurses6-config --cflags)" LDFLAGS="$(ncurses6-config --libs)"
|
|
cp %{SOURCE3} .
|
|
|
|
%install
|
|
%make_install
|
|
|
|
mkdir -p %{buildroot}%{_fillupdir}/
|
|
install -m 0644 sysconfig.irqbalance %{buildroot}%{_fillupdir}/
|
|
sed -ie "s|EnvironmentFile=.*|EnvironmentFile=%{_sysconfdir}/sysconfig/irqbalance|g" misc/irqbalance.service
|
|
# Remove syslog.target in systemd service file; not provided by systemd anymore
|
|
sed -ie "s|After=syslog.target||g" misc/irqbalance.service
|
|
install -D -m 0644 misc/irqbalance.service %{buildroot}%{_unitdir}/irqbalance.service
|
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcirqbalance
|
|
|
|
%pre
|
|
%service_add_pre irqbalance.service
|
|
|
|
%post
|
|
%fillup_only %{name}
|
|
%service_add_post irqbalance.service
|
|
|
|
%preun
|
|
%service_del_preun irqbalance.service
|
|
|
|
%postun
|
|
%service_del_postun irqbalance.service
|
|
|
|
%files
|
|
%{_sbindir}/irqbalance
|
|
%{_sbindir}/irqbalance-ui
|
|
%{_sbindir}/rcirqbalance
|
|
%{_unitdir}/irqbalance.service
|
|
%{_mandir}/man1/irqbalance.1%{?ext_man}
|
|
%{_fillupdir}/sysconfig.irqbalance
|
|
|
|
%changelog
|