input/irqbalance.spec
raw · 3.4 KiB
Name: irqbalance
Version: 1.9.5
Release: 1%{?dist}
Summary: IRQ balancing for multi-core systems
Summary(ru): Балансировка прерываний для многоядерных систем
License: GPL-2.0-only
URL: https://github.com/Irqbalance/irqbalance
Packager: NICE SOFT GROUP LLC (ООО "НАЙС СОФТ ГРУПП") 5024245440 <niceos@ncsgp.ru>
Vendor: NiceSOFT
Distribution: NiceOS.Core
BugURL: https://bugs.niceos.ru/
VCS: https://specs.niceos.ru/rmps/%{name}
Source0: https://github.com/Irqbalance/irqbalance/archive/refs/tags/v1.9.5.tar.gz#%{name}-%{version}.tar.gz
BuildRequires: autoconf automake libtool libcap-ng
BuildRequires: pkgconf libcap-ng-devel
BuildRequires: systemd ncurses-devel
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pcre2-devel
BuildRequires: numactl-devel
BuildRequires: systemd-devel
Requires: glib
Requires: ncurses-libs
Requires: numactl-libs
Requires: systemd
%description
irqbalance is a utility that distributes hardware interrupts across CPUs in multi-core/multi-CPU
systems. By spreading interrupt handling more evenly, it can improve overall performance,
especially on servers and workstations.
%description -l ru
irqbalance — утилита для распределения аппаратных прерываний по процессорам в многоядерных/многопроцессорных
системах. Равномерное распределение обработки прерываний помогает повысить общую производительность,
особенно на серверах и рабочих станциях.
%prep
%autosetup -p1
%build
sed -i 's/libsystemd-journal/libsystemd/' configure.ac
sh ./autogen.sh
%configure \
--disable-static \
--with-systemd
%make_build
%install
install -D -p -m 0755 %{name} %{buildroot}%{_sbindir}/%{name}
install -D -p -m 0644 ./misc/irqbalance.service %{buildroot}/%{_unitdir}/irqbalance.service
install -D -p -m 0644 ./misc/irqbalance.env %{buildroot}%{_sysconfdir}/sysconfig/%{name}
install -d %{buildroot}%{_mandir}/man1/
install -p -m 0644 ./irqbalance.1 %{buildroot}%{_mandir}/man1/
install -d %{buildroot}%{_libexecdir}/irqbalance/
%if 0%{?with_check}
%check
make check
%endif
%post
%systemd_post %{name}.service
%preun
%systemd_preun %{name}.service
%postun
%systemd_postun_with_restart %{name}.service
%files
%doc COPYING AUTHORS
%{_sbindir}/irqbalance
%{_unitdir}/irqbalance.service
%{_mandir}/man1/*
%dir %{_libexecdir}/irqbalance
%config(noreplace) %{_sysconfdir}/sysconfig/irqbalance
%changelog
* Sun May 10 2026 NiceOS Team <support@niceos.ru> - 1.9.5-1
- Upstream release adds Meson build support and several bugfixes/hardening updates.
- Validate systemd unit, EnvironmentFile handling, and build flow in NiceOS before merge.
- В upstream-релизе добавлена поддержка сборки через Meson и несколько исправлений/улучшений надёжности.
- Перед включением в NiceOS требуется проверить systemd-юнит, обработку EnvironmentFile и текущий сценарий сборки.
* Sun Jan 11 2026 NiceOS Team <niceos@ncsgp.ru> - 1.9.4-1
- Initial build for NiceOS (Первая сборка для НАЙС.ОС)