File irqd.spec of Package irqd
#
# spec file for package irqd
#
# 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: irqd
Version: 0.6.3
Release: 0
Summary: Multiqueue and RPS-aware IRQ affinity balancer
License: GPL-2.0
Group: System/Daemons
#Git-Clone: git://github.com/vaesoo/irqd
Source: %name-%version.tar.xz
Source2: irqd.init
Source3: irqd.service
# PATCH-FIX-UPSTREAM 0001-libnl3-compile-fix.diff status=sent,accepted
Patch1: 0001-libnl3-compile-fix.diff
# PATCH-FIX-UPSTREAM 0002-libnl3-link-fix.diff status=sent,accepted
Patch2: 0002-libnl3-link-fix.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: pkgconfig(glib-2.0) pkgconfig(libnl-3.0)
BuildRequires: pkgconfig(libnl-route-3.0) xz
%description
irqd is an alternative IRQ balancer for Linux kernels. It balances
the IRQs more or less evenly across the CPUs you have in your system.
It currently relies on the Receive Packet Steering (RPS)
implementation of newer Linux kernels, it is of less use currently if
RPS is not available.
%prep
%if 0%{?__xz:1}
%setup -q
%else
tar -xf "%{S:0}" --use=xz;
%setup -DTq
%endif
%patch -P 1 -P 2 -p1
%build
if [ ! -e configure ]; then
./autogen.sh;
fi
%configure
make %{?_smp_mflags}
%install
b="%buildroot";
%makeinstall
mkdir -p "$b/%_initrddir" "$b/lib/systemd/system";
install -pm0755 "%{S:2}" "$b/%_initrddir/irqd";
install -pm0644 "%{S:3}" "$b/lib/systemd/system/irqd.service";
%files
%defattr(-,root,root)
%_initrddir/irqd
/lib/systemd/system/irqd.service
%_sbindir/irqd
%changelog