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
|
|
|
#
|
2022-08-17 23:43:18 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
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.
|
|
|
|
|
2019-07-01 17:41:49 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:17:54 +01:00
|
|
|
#
|
|
|
|
|
2012-05-09 17:29:34 +02:00
|
|
|
|
2017-11-24 15:25:26 +01:00
|
|
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
|
|
|
%if ! %{defined _fillupdir}
|
2018-10-02 15:50:40 +02:00
|
|
|
%define _fillupdir %{_localstatedir}/adm/fillup-templates
|
2017-11-24 15:25:26 +01:00
|
|
|
%endif
|
2007-01-16 00:17:54 +01:00
|
|
|
Name: irqbalance
|
2022-10-13 18:40:28 +02:00
|
|
|
Version: 1.9.1
|
2011-12-01 18:11:30 +01:00
|
|
|
Release: 0
|
2019-07-09 10:29:36 +02:00
|
|
|
Summary: Daemon to balance IRQs on SMP machines
|
2018-10-02 15:50:40 +02:00
|
|
|
License: GPL-2.0-or-later
|
2014-06-16 15:30:14 +02:00
|
|
|
Group: System/Daemons
|
2020-04-27 19:15:49 +02:00
|
|
|
URL: https://github.com/Irqbalance/irqbalance
|
2022-08-17 23:43:18 +02:00
|
|
|
Source: https://github.com/Irqbalance/irqbalance/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2007-12-12 18:12:55 +01:00
|
|
|
Source3: sysconfig.irqbalance
|
2018-10-02 15:50:40 +02:00
|
|
|
Patch1: Set-fd-limit.patch
|
2022-10-19 10:22:15 +02:00
|
|
|
Patch2: uninitialized.patch
|
2022-10-25 23:35:52 +02:00
|
|
|
# https://github.com/Irqbalance/irqbalance/pull/243
|
|
|
|
Patch3: Avoid-double-free-on-deinit_thermal.patch
|
2015-03-17 16:27:20 +01:00
|
|
|
BuildRequires: libcap-ng-devel
|
2011-10-15 20:44:40 +02:00
|
|
|
BuildRequires: libtool
|
2017-01-12 19:03:54 +01:00
|
|
|
BuildRequires: ncurses-devel
|
2018-10-02 15:50:40 +02:00
|
|
|
BuildRequires: pkgconfig
|
2011-12-01 18:11:30 +01:00
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
2022-10-19 10:22:15 +02:00
|
|
|
%ifarch x86_64
|
|
|
|
BuildRequires: pkgconfig(libnl-3.0)
|
|
|
|
%endif
|
2020-04-27 19:15:49 +02:00
|
|
|
Requires(pre): %fillup_prereq
|
|
|
|
Recommends: %{name}-ui
|
2020-08-16 16:16:54 +02:00
|
|
|
ExcludeArch: s390 s390x
|
2021-08-11 12:26:51 +02:00
|
|
|
%{?systemd_ordering}
|
2018-10-02 15:50:40 +02:00
|
|
|
%ifnarch %{arm}
|
2016-01-18 15:19:16 +01:00
|
|
|
BuildRequires: libnuma-devel
|
|
|
|
%endif
|
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.
|
|
|
|
|
2020-04-27 19:15:49 +02:00
|
|
|
%package ui
|
|
|
|
Summary: UI for IRQ balance Daemon
|
|
|
|
Group: System/Daemons
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description ui
|
|
|
|
Text UI for the IRQ balance daemon.
|
|
|
|
|
2007-01-16 00:17:54 +01:00
|
|
|
%prep
|
2010-10-03 22:41:57 +02:00
|
|
|
%setup -q
|
2018-10-02 15:50:40 +02:00
|
|
|
%autopatch -p1
|
2007-01-16 00:17:54 +01:00
|
|
|
|
|
|
|
%build
|
2015-01-23 18:09:29 +01:00
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
2022-10-19 10:22:15 +02:00
|
|
|
%configure \
|
|
|
|
%ifarch x86_64
|
|
|
|
--enable-thermal
|
|
|
|
%endif
|
|
|
|
|
2020-08-16 16:16:54 +02:00
|
|
|
%make_build LDFLAGS="-Wl,-z,relro,-z,now" CFLAGS="%{optflags} -fPIE -pie $(ncurses6-config --cflags)" LDFLAGS="$(ncurses6-config --libs)"
|
2007-12-12 18:12:55 +01:00
|
|
|
cp %{SOURCE3} .
|
2007-01-16 00:17:54 +01:00
|
|
|
|
|
|
|
%install
|
2017-01-12 19:10:55 +01:00
|
|
|
%make_install
|
|
|
|
|
2017-11-24 15:25:26 +01:00
|
|
|
mkdir -p %{buildroot}%{_fillupdir}/
|
|
|
|
install -m 0644 sysconfig.irqbalance %{buildroot}%{_fillupdir}/
|
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
|
|
|
|
2022-10-25 23:09:31 +02:00
|
|
|
%check
|
|
|
|
%make_build check
|
|
|
|
|
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
|
2020-04-27 19:15:49 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS README.md
|
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
|
2018-10-02 15:50:40 +02:00
|
|
|
%{_mandir}/man1/irqbalance.1%{?ext_man}
|
2017-11-24 15:25:26 +01:00
|
|
|
%{_fillupdir}/sysconfig.irqbalance
|
2007-01-16 00:17:54 +01:00
|
|
|
|
2020-04-27 19:15:49 +02:00
|
|
|
%files ui
|
|
|
|
%{_sbindir}/irqbalance-ui
|
2020-05-27 16:10:02 +02:00
|
|
|
%{_mandir}/man1/irqbalance-ui.1%{?ext_man}
|
2020-04-27 19:15:49 +02:00
|
|
|
|
2007-04-03 21:31:37 +02:00
|
|
|
%changelog
|