Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 9cb4bfc5d18530176de4a447fd9e65bb > files > 6

irqbalance-1.0.5-2.mga3.src.rpm

%bcond_without systemd

Summary:	Daemon to balance irq's across multiple CPUs
Name:		irqbalance
Version:	1.0.5
Release:	%mkrel 2
License:	GPLv2+
Group:		System/Kernel and hardware
URL:		http://irqbalance.org/
Source0:	https://irqbalance.googlecode.com/files/%{name}-%{version}.tar.gz
Patch0:		irqbalance-1.0.4-fix-service-env-path.patch
Patch1:		irqbalance-1.0.5-automake-1.13.patch
Source1:	%{name}.init
Source2:	%{name}.sysconfig
Source3:	irqbalance.1
Requires(post):  rpm-helper >= 0.24.8-1
Requires(preun): rpm-helper >= 0.24.8-1
BuildRequires:	gccmakedep
BuildRequires:	numa-devel
BuildRequires:	glib2-devel
BuildRequires:	libcap-ng-devel

%description
irqbalance is a daemon that evenly distributes IRQ load across
multiple CPUs for enhanced performance.

%prep
%setup -q
touch NEWS README AUTHORS ChangeLog
%patch0 -p1
%patch1 -p1

%build
./autogen.sh

%configure2_5x
%make

%install
rm -rf %{buildroot}

mkdir -p %{buildroot}{%{_sbindir},%{_mandir}/man1}
install irqbalance %{buildroot}%{_sbindir}
mkdir -p %{buildroot}{%{_initrddir},%{_sysconfdir}/sysconfig}
install %{SOURCE1} %{buildroot}%{_initrddir}/irqbalance
install %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/irqbalance
install %{SOURCE3} %{buildroot}%{_mandir}/man1/
%if %{with systemd}
mkdir -p %{buildroot}/lib/systemd/system/
install -c -m 644  misc/irqbalance.service %{buildroot}/lib/systemd/system/
%endif

%clean
rm -rf %{buildroot}

%post
%_post_service irqbalance

%preun
%_preun_service irqbalance


%files
%{_mandir}/man1/*
%{_sbindir}/*
%{_initrddir}/*
%config(noreplace) %{_sysconfdir}/sysconfig/*
%if %{with systemd}
/lib/systemd/system/irqbalance.service
%endif


%changelog

* Sat Jan 12 2013 umeabot <umeabot> 1.0.5-2.mga3
+ Revision: 354497
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Sun Jan 06 2013 luigiwalser <luigiwalser> 1.0.5-1.mga3
+ Revision: 339738
- fix for automake 1.13
- 1.0.5

* Thu Sep 27 2012 tmb <tmb> 1.0.4-2.mga3
+ Revision: 298788
- fix irqbalance.service env path (#7501)

* Thu Sep 06 2012 fedya <fedya> 1.0.4-1.mga3
+ Revision: 288805
- version update 1.0.4

* Sat Apr 28 2012 tmb <tmb> 1.0.3-2.mga2
+ Revision: 233760
- Require rpm-helper >= 0.24.8-1 for systemd support

* Wed Dec 07 2011 tmb <tmb> 1.0.3-1.mga2
+ Revision: 178368
- add native systemd support
- update to 1.0.3

* Sun Nov 27 2011 tv <tv> 1.0.2-1.mga2
+ Revision: 172548
- new release
- BuildRequires numa-devel

* Sun Feb 20 2011 eandry <eandry> 0.56-2.mga1
+ Revision: 55023
- drop buildroot and old conditionnal
- imported package irqbalance