Blame SPECS/irqbalance.spec

5f346f
Name:           irqbalance
5f346f
Version:        1.0.7
5f346f
Release:        11%{?dist}
5f346f
Epoch:          3
5f346f
Summary:        IRQ balancing daemon
5f346f
5f346f
Group:          System Environment/Base
5f346f
License:        GPLv2
5f346f
Url:            https://github.com/Irqbalance/irqbalance
5f346f
Source0:        https://github.com/Irqbalance/irqbalance/archive/v%{version}.tar.gz
5f346f
Source1:        irqbalance.sysconfig
5f346f
5f346f
BuildRequires:  autoconf automake libtool libcap-ng
5f346f
BuildRequires:  glib2-devel pkgconfig libcap-ng-devel
5f346f
%ifnarch %{arm}
5f346f
BuildRequires:  numactl-devel
5f346f
BuildRequires:  systemd-units
5f346f
Requires: numactl-libs
5f346f
%endif
5f346f
Requires(post): systemd-units
5f346f
Requires(postun):systemd-units
5f346f
Requires(preun):systemd-units
5f346f
#Requires(triggerun):systemd-units
5f346f
5f346f
%define _hardened_build 1
5f346f
5f346f
ExclusiveArch: %{ix86} x86_64 ia64 ppc ppc64 ppc64le %{arm} aarch64
5f346f
5f346f
Patch1: irqbalance-1.0.4-env-file-path.patch
5f346f
Patch2: irqbalance-1.0.6-man_IRQBALANCE_BANNED_CPUS.patch
5f346f
Patch3: irqbalance-1.0.7-ignore_affinity_hint.patch
5f346f
Patch4: irqbalance-1.0.8-removing-unused-variable-cache_stat.patch
5f346f
Patch5: irqbalance-1.0.8-Manpage-note-about-ignoring-of-pid-in-some-cases.patch
5f346f
Patch6: irqbalance-1.0.8-irqbalance-signal-handling-tuning.patch
5f346f
Patch7: irqbalance-1.0.8-Warning-when-irqbalance-hasn-t-root-privileges.patch
5f346f
Patch8: irqbalance-1.0.7-manpage-hostname.patch
5f346f
Patch9: irqbalance-1.0.8-import-__bitmap_parselist-from-Linux-kernel.patch
5f346f
Patch10:irqbalance-1.0.8-fix-cpulist_parse-definition-to-match-bitmap_parseli.patch
5f346f
Patch11:irqbalance-1.0.8-parse-isolcpus-from-proc-cmdline-to-set-up-banned_cp.patch
5f346f
Patch12:irqbalance-1.0.8-fix-memory-leak-in-classify-code.patch
5f346f
Patch13:irqbalance-1.0.8-separate-cmomand-line-banned-irqs.patch
5f346f
Patch14:irqbalance-1.0.8-parse-isolcpus-and-nohz-cpus-from-sysfs.patch
5f346f
Patch15:irqbalance-1.0.8-Invalid-parsing-for-isolated-and-nohz_full-cpu-masks.patch
5f346f
Patch16:irqbalance-1.0.9-irqbalance-set-IRQBALANCE_DEBUG-variable-implies-for.patch
5f346f
Patch17:irqbalance-node-package.patch
5f346f
Patch18:irqbalance-1.0.8-Balance-correctly-IRQs-reappearing.patch
5f346f
5f346f
%description
5f346f
irqbalance is a daemon that evenly distributes IRQ load across
5f346f
multiple CPUs for enhanced performance.
5f346f
5f346f
%prep
5f346f
%setup -q
5f346f
%patch1 -p1
5f346f
%patch2 -p1
5f346f
%patch3 -p1
5f346f
%patch4 -p1
5f346f
%patch5 -p1
5f346f
%patch6 -p1
5f346f
%patch7 -p1
5f346f
%patch8 -p1
5f346f
%patch9 -p1
5f346f
%patch10 -p1
5f346f
%patch11 -p1
5f346f
%patch12 -p1
5f346f
%patch13 -p1
5f346f
%patch14 -p1
5f346f
%patch15 -p1
5f346f
%patch16 -p1
5f346f
%patch17 -p1
5f346f
%patch18 -p1
5f346f
5f346f
%build
5f346f
./autogen.sh
5f346f
%{configure}
5f346f
CFLAGS="%{optflags}" make %{?_smp_mflags}
5f346f
5f346f
%install
5f346f
install -D -p -m 0755 %{name} %{buildroot}%{_sbindir}/%{name}
5f346f
install -D -p -m 0644 ./misc/irqbalance.service %{buildroot}%{_unitdir}/irqbalance.service
5f346f
install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
5f346f
5f346f
install -d %{buildroot}%{_mandir}/man1/
5f346f
install -p -m 0644 ./irqbalance.1 %{buildroot}%{_mandir}/man1/
5f346f
5f346f
%files
5f346f
%defattr(-,root,root)
5f346f
%doc COPYING AUTHORS
5f346f
%{_sbindir}/irqbalance
5f346f
%{_unitdir}/irqbalance.service
5f346f
%{_mandir}/man1/*
5f346f
%config(noreplace) %{_sysconfdir}/sysconfig/irqbalance
5f346f
5f346f
%post
5f346f
%systemd_post irqbalance.service
5f346f
5f346f
%preun
5f346f
%systemd_preun irqbalance.service
5f346f
5f346f
%postun
5f346f
%systemd_postun_with_restart irqbalance.service
5f346f
5f346f
%triggerun -- irqbalance < 2:0.56-3
5f346f
if /sbin/chkconfig --level 3 irqbalance ; then
5f346f
    /bin/systemctl enable irqbalance.service >/dev/null 2>&1 || :
5f346f
fi
5f346f
/sbin/chkconfig --del irqbalance >/dev/null 2>&1 || :
5f346f
5f346f
%changelog
5f346f
* Mon Feb 05 2018 Petr Oros <poros@redhat.com> - 3:1.0.7-11
5f346f
- Balance correctly IRQs reappearing
5f346f
- Resolves: #1536373
5f346f
5f346f
* Tue May 16 2017 Petr Oros <poros@redhat.com> - 3:1.0.7-10
5f346f
- irqbalance node package patch
5f346f
- Resolves: #1444195
5f346f
5f346f
* Tue Apr 4 2017 Petr Oros <poros@redhat.com> - 3:1.0.7-9
5f346f
- set IRQBALANCE_DEBUG variable implies foreground mode
5f346f
- Resolves: #1361211
5f346f
5f346f
* Tue Dec 20 2016 Petr Oros <poros@redhat.com> - 3:1.0.7-8
5f346f
- Fix Epoch in version
5f346f
- Resolves: #1393539
5f346f
5f346f
* Wed Nov 30 2016 Petr Oros <poros@redhat.com> - 2:1.0.7-7
5f346f
- Fix Invalid parsing for isolated and nohz_full cpu masks
5f346f
- Resolves: #1393539
5f346f
5f346f
* Tue Feb 02 2016 Petr Holasek <pholasek@redhat.com> - 2:1.0.7-6
5f346f
- nohz and isolated cpus are read from sysfs (#1264130)
5f346f
5f346f
* Mon Jul 13 2015 Petr Holasek <pholasek@redhat.com> - 2:1.0.7-5
5f346f
- banned irqs aren't touched (#1237356)
5f346f
5f346f
* Fri Jun 12 2015 Petr Holasek <pholasek@redhat.com> - 2:1.0.7-4
5f346f
- fixed memory leak in pci bus parsing code (#1225319)
5f346f
5f346f
* Tue May 05 2015 Petr Holasek <pholasek@redhat.com> - 2:1.0.7-3
5f346f
- fixed putting irqs on isolated cpus (#1201552)
5f346f
5f346f
* Tue Jan 06 2015 Petr Holasek <pholasek@redhat.com> - 2:1.0.7-2
5f346f
- fixed unused variable revealed by covscan
5f346f
- fixed ignored pid argument (#1155632)
5f346f
- warning when irqbalance started under non-root (#1155799)
5f346f
- more robust signal handling (#1158937)
5f346f
- fixed hostname in manpage (#1162251)
5f346f
5f346f
* Tue Aug 19 2014 Petr Holasek <pholasek@redhat.com> - 2:1.0.7-1
5f346f
- Rebased to version 1.0.7 (#1018140)
5f346f
5f346f
* Mon Aug 04 2014 Petr Holasek <pholasek@redhat.com> - 2:1.0.6-7
5f346f
- ppc64le has been added to exclusive archs (#1125551)
5f346f
5f346f
* Tue Jul 29 2014 Petr Holasek <pholasek@redhat.com> - 2:1.0.6-6
5f346f
- aarch64 has been added to exclusive archs (#1055729)
5f346f
5f346f
* Mon Feb 10 2014 Petr Holasek <pholasek@redhat.com> - 2:1.0.6-5
5f346f
- Fixed irqbalance web adresses in spec (bz1060810)
5f346f
- Default hintpolicy adjusted (bz1060814)
5f346f
- Missing autogen.sh call fixed
5f346f
5f346f
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2:1.0.6-4
5f346f
- Mass rebuild 2013-12-27
5f346f
5f346f
* Thu Oct 31 2013 Petr Holasek <pholasek@redhat.com> - 2:1.0.6-3
5f346f
- Fixed env variable man page description (bz1020633)
5f346f
5f346f
* Tue Sep 10 2013 Petr Holasek <pholasek@redhat.com> - 2:1.0.6-2
5f346f
- Fixed CPU hotplug/hotunplug sigsegv (bz998494)
5f346f
5f346f
* Mon Aug 12 2013 Petr Holasek <pholasek@redhat.com> - 2:1.0.6-1
5f346f
- Rebased to version 1.0.6 (bz996171)
5f346f
5f346f
* Tue Jul 30 2013 Petr Holasek <pholasek@redhat.com> - 2:1.0.5-5
5f346f
- Man page and --help output were fixed (bz948372)
5f346f
5f346f
* Fri Jul 26 2013 Petr Holasek <pholasek@redhat.com> - 2:1.0.5-4
5f346f
- Hardened build
5f346f
5f346f
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:1.0.5-2
5f346f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5f346f
5f346f
* Mon Jan 21 2013 Petr Holasek <pholasek@redhat.com> - 2:1.0.5-1
5f346f
- Rebased to version 1.0.5
5f346f
5f346f
* Wed Aug 29 2012 Petr Holasek <pholasek@redhat.com> - 2:1.0.4-2
5f346f
- Env file path edited
5f346f
5f346f
* Mon Aug 27 2012 Petr Holasek <pholasek@redhat.com> - 2:1.0.4-1
5f346f
- Rebased to version 1.0.4
5f346f
5f346f
* Wed Aug 22 2012 Petr Holasek <pholasek@redhat.com> - 2:1.0.3-5
5f346f
- Make irqbalance scan for new irqs when it detects new irqs (bz832815)
5f346f
- Fixes SIGFPE crash for some banning configuration (bz849792)
5f346f
- Fixes affinity_hint values processing (bz832815)
5f346f
- Adds banirq and bansript options (bz837049)
5f346f
- imake isn't needed for building any more (bz844359)
5f346f
- Fixes clogging of syslog (bz837646)
5f346f
- Added IRQBALANCE_ARGS variable for passing arguments via systemd(bz837048)
5f346f
- Fixes --hint-policy=subset behavior (bz844381)
5f346f
5f346f
* Sun Apr 15 2012 Petr Holasek <pholasek@redhat.com> - 2:1.0.3-4
5f346f
- Updated libnuma dependencies
5f346f
5f346f
* Sun Feb  5 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 2:1.0.3-3
5f346f
- Build on ARM
5f346f
5f346f
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:1.0.3-2
5f346f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
5f346f
5f346f
* Fri Dec 02 2011 Neil Horman <nhorman@redhat.com> - 2:1.0.3-1
5f346f
- Updated to latest upstream release
5f346f
5f346f
* Fri Nov 04 2011 Neil Horman <nhorman@redhat.com> - 2:1.0.2-1
5f346f
- Updated to latest upstream release
5f346f
5f346f
* Wed Oct 26 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:1.0-4
5f346f
- Rebuilt for glibc bug#747377
5f346f
5f346f
* Fri Oct 21 2011 Neil Horman <nhorman@redhat.com> - 2:1.0-3
5f346f
- Fix another crash on non-numa systems (bz 748070)
5f346f
5f346f
* Mon Oct 17 2011 Neil Horman <nhorman@redhat.com> - 2:1.0-2
5f346f
- Fix crash for systems with no numa node support
5f346f
5f346f
* Wed Oct 12 2011 Neil Horman <nhorman@redhat.com> - 2:1.0-1
5f346f
- Update irqbalance to latest upstream version
5f346f
5f346f
* Fri May  6 2011 Bill Nottingham <notting@redhat.com> - 2:0.56-4
5f346f
- fix upgrade trigger
5f346f
5f346f
* Fri Apr  8 2011 Peter Robinson <pbrobinson@gmail.com> - 2:0.56-3
5f346f
- Fix build in rawhide
5f346f
- Add license file to rpm
5f346f
- Cleanup spec file
5f346f
5f346f
* Fri Mar 25 2011 Anton Arapov <anton@redhat.com> - 2:0.56-3
5f346f
- rework init in order to respect systemd. (bz 659622)
5f346f
5f346f
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:0.56-2
5f346f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
5f346f
5f346f
* Thu Jun 10 2010 Neil Horman <nhorman@redhat.com> - 2:0.56-1
5f346f
- Updated to latest upstream version
5f346f
5f346f
* Wed Sep 09 2009 Neil Horman <nhorman@redhat.com> - 2:0.55-25
5f346f
- Fixing BuildRequires
5f346f
5f346f
* Fri Sep 04 2009 Neil Horman <nhorman@redhat.com> - 2:0.55-24
5f346f
- Fixing irqbalance initscript (bz 521246)
5f346f
5f346f
* Wed Sep 02 2009 Neil Horman <nhorman@redhat.com> - 2:0.55-23
5f346f
- Fixing BuildRequires for new config script
5f346f
5f346f
* Tue Sep 01 2009 Neil Horman <nhorman@redhat.com> - 2:0.55-22
5f346f
- Fixing BuildRequires for new config script
5f346f
5f346f
* Tue Sep 01 2009 Neil Horman <nhorman@redhat.com> - 2:0.55-21
5f346f
- Fixing BuildRequires for new config script
5f346f
5f346f
* Tue Sep 01 2009 Neil Horman <nhorman@redhat.com> - 2:0.55-20
5f346f
- Fixing BuildRequires for new config script
5f346f
5f346f
* Tue Sep 01 2009 Neil Horman <nhorman@redhat.com> - 2:0.55-19
5f346f
- Incorporate capng (bz 520699)
5f346f
5f346f
* Fri Jul 31 2009 Peter Lemenkov <lemenkov@gmail.com> - 2:0.55-18
5f346f
- Added back accidentaly forgotten imake
5f346f
5f346f
* Fri Jul 31 2009 Peter Lemenkov <lemenkov@gmail.com> - 2:0.55-17
5f346f
- Cosmetic fixes in spec-file
5f346f
- Fixed rpmlint error in the init-script
5f346f
5f346f
* Tue Jul 28 2009 Peter Lemenkov <lemenkov@gmail.com> - 2:0.55-16
5f346f
- Many imrovements in spec-file
5f346f
5f346f
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:0.55-15
5f346f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
5f346f
5f346f
* Fri Mar 6 2009 Neil Horman <nhorman@redhat.com>
5f346f
- Update spec file to build for i586 as per new build guidelines (bz 488849)
5f346f
5f346f
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:0.55-13
5f346f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
5f346f
5f346f
* Fri Dec 12 2008 Neil Norman <nhorman@redhat.com> - 2:0.55-12
5f346f
- Remove odd Netorking dependence from irqbalance (bz 476179)
5f346f
5f346f
* Fri Aug 01 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2:0.55-11
5f346f
- fix license tag
5f346f
5f346f
* Wed Jun 04 2008 Neil Horman <nhorman@redhat.com> - 2:0.55-10
5f346f
- Update man page to explain why irqbalance exits on single cache (bz 449949)
5f346f
5f346f
* Tue Mar 18 2008 Neil Horman <nhorman@redhat.com> - 2:0.55-9
5f346f
- Rediff pid-file patch to not remove initial parse_cpu_tree (bz 433270)
5f346f
5f346f
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2:0.55-8
5f346f
- Autorebuild for GCC 4.3
5f346f
5f346f
* Thu Nov 01 2007 Neil Horman <nhorman@redhat.com> - 2:0.55-7
5f346f
- Update to properly hadndle pid files (bz 355231)
5f346f
5f346f
* Thu Oct 04 2007 Neil Horman <nhorman@redhat.com> - 2:0.55-6
5f346f
- Fix irqbalance init script (bz 317219)
5f346f
5f346f
* Fri Sep 28 2007 Neil Horman <nhorman@redhat.com> - 2:0.55-5
5f346f
- Install pie patch
5f346f
- Grab Ulis cpuparse cleanup (bz 310821)
5f346f
5f346f
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 2:0.55-4
5f346f
- Rebuild for selinux ppc32 issue.
5f346f
5f346f
* Thu Jul 05 2007 Neil Horman <nhorman@redhat.com> - 0.55.3
5f346f
- Fixing LSB requirements (bz 246959)
5f346f
5f346f
* Tue Dec 12 2006 Neil Horman <nhorman@redhat.com> - 0.55-2
5f346f
- Fixing typos in spec file (bz 219301)
5f346f
5f346f
* Tue Dec 12 2006 Neil Horman <nhorman@redhat.com> - 0.55-1
5f346f
- Updating to version 0.55
5f346f
5f346f
* Mon Dec 11 2006 Neil Horman <nhorman@redhat.com> - 0.54-1
5f346f
- Update irqbalance to new version released at www.irqbalance.org
5f346f
5f346f
* Wed Nov 15 2006 Neil Horman <nhorman@redhat.com> - 1.13-8
5f346f
- Add ability to set default affinity mask (bz 211148)
5f346f
5f346f
* Wed Nov 08 2006 Neil Horman <nhorman@redhat.com> - 1.13-7
5f346f
- fix up irqbalance to detect multicore (not ht) (bz 211183)
5f346f
5f346f
* Thu Nov 02 2006 Neil Horman <nhorman@redhat.com> - 1.13-6
5f346f
- bumping up MAX_INTERRUPTS to support xen kernels
5f346f
- rediffing patch1 and patch3 to remove fuzz
5f346f
5f346f
* Tue Oct 17 2006 Neil Horman <nhorman@redhat.com> - 1.13-5
5f346f
- Making oneshot mean oneshot always (bz 211178)
5f346f
5f346f
* Wed Sep 13 2006 Peter Jones <pjones@redhat.com> - 1.13-4
5f346f
- Fix subsystem locking
5f346f
5f346f
* Fri Aug 18 2006 Jesse Keating <jkeating@redhat.com> - 1.13-2
5f346f
- rebuilt with latest binutils to pick up 64K -z commonpagesize on ppc*
5f346f
  (#203001)
5f346f
- Remove hack to use cvs checkin ID as release as it doesn't follow
5f346f
  packaging guidelines
5f346f
5f346f
* Tue Aug 01 2006 Neil Horman <nhorman@redhat.com>
5f346f
- Change license to GPL in version 0.13
5f346f
5f346f
* Sat Jul 29 2006 Dave Jones <davej@redhat.com>
5f346f
- identify a bunch more classes.
5f346f
5f346f
* Fri Jul 14 2006 Jesse Keating <jkeating@redhat.com>
5f346f
- rebuild
5f346f
5f346f
* Tue Jul 11 2006 Dave Jones <davej@redhat.com>
5f346f
- Further lazy rebalancing tweaks.
5f346f
5f346f
* Sun Feb 26 2006 Dave Jones <davej@redhat.com>
5f346f
- Don't rebalance IRQs where no interrupts have occured.
5f346f
5f346f
* Sun Feb 12 2006 Dave Jones <davej@redhat.com>
5f346f
- Build for ppc[64] too.
5f346f
5f346f
* Thu Feb 09 2006 Dave Jones <davej@redhat.com>
5f346f
- rebuild.
5f346f
5f346f
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
5f346f
- rebuilt for new gcj
5f346f
5f346f
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
5f346f
- rebuilt
5f346f
5f346f
* Tue Mar  1 2005 Dave Jones <davej@redhat.com>
5f346f
- Rebuild with gcc4
5f346f
5f346f
* Tue Feb  8 2005 Dave Jones <davej@redhat.com>
5f346f
- Build as pie, also -D_FORTIFY_SOURCE=2
5f346f
5f346f
* Tue Jan 11 2005 Dave Jones <davej@redhat.com>
5f346f
- Add missing Obsoletes: kernel-utils.
5f346f
5f346f
* Mon Jan 10 2005 Dave Jones <davej@redhat.com>
5f346f
- Start irqbalance in runlevel 2 too. (#102064)
5f346f
5f346f
* Sat Dec 18 2004 Dave Jones <davej@redhat.com>
5f346f
- Initial packaging, based on kernel-utils.
5f346f