Blame SPECS/irqbalance.spec

a48aee
Name:           irqbalance
a48aee
Version:        1.4.0
a48aee
Release:        3%{?dist}
a48aee
Epoch:          2
a48aee
Summary:        IRQ balancing daemon
a48aee
a48aee
Group:          System Environment/Base
a48aee
License:        GPLv2
a48aee
Url:            https://github.com/Irqbalance/irqbalance
a48aee
Source0:        https://github.com/Irqbalance/irqbalance/archive/irqbalance-%{version}.tar.gz
a48aee
Source1:        irqbalance.sysconfig
a48aee
a48aee
BuildRequires:  autoconf automake libtool libcap-ng
a48aee
BuildRequires:  glib2-devel pkgconf libcap-ng-devel
a48aee
BuildRequires:  systemd ncurses-devel
a48aee
Requires: ncurses-libs
a48aee
%ifnarch %{arm}
a48aee
BuildRequires:  numactl-devel
a48aee
Requires: numactl-libs
a48aee
%endif
a48aee
a48aee
%define _hardened_build 1
a48aee
a48aee
ExcludeArch: s390 s390x
a48aee
a48aee
Patch1: irqbalance-1.0.4-env-file-path.patch
a48aee
Patch2: irqbalance-1.4.0-Fix-several-memleak-problems-found-by-covscan.patch
a48aee
Patch3: irqbalance-1.4.0-Fix-an-possible-overflow-error.patch
a48aee
Patch4: irqbalance-1.5.0-Don-t-leak-socket-fd-on-connection-error.patch
a48aee
Patch5: irqbalance-1.4.0-procinterrupts-check-xen-dyn-event-more-flexible.patch
a48aee
Patch6: irqbalance-1.5.0-Update-document-and-remove-dead-options.patch
a48aee
a48aee
%description
a48aee
irqbalance is a daemon that evenly distributes IRQ load across
a48aee
multiple CPUs for enhanced performance.
a48aee
a48aee
%prep
a48aee
%setup -q
a48aee
%patch1 -p1
a48aee
%patch2 -p1
a48aee
%patch3 -p1
a48aee
%patch4 -p1
a48aee
%patch5 -p1
a48aee
%patch6 -p1
a48aee
a48aee
%build
a48aee
./autogen.sh
a48aee
%configure
a48aee
CFLAGS="%{optflags}" make %{?_smp_mflags}
a48aee
a48aee
%install
a48aee
install -D -p -m 0755 %{name} %{buildroot}%{_sbindir}/%{name}
a48aee
install -D -p -m 0644 ./misc/irqbalance.service %{buildroot}/%{_unitdir}/irqbalance.service
a48aee
install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
a48aee
a48aee
install -d %{buildroot}%{_mandir}/man1/
a48aee
install -p -m 0644 ./irqbalance.1 %{buildroot}%{_mandir}/man1/
a48aee
a48aee
%check
a48aee
make check
a48aee
a48aee
%files
a48aee
%doc COPYING AUTHORS
a48aee
%{_sbindir}/irqbalance
a48aee
%{_unitdir}/irqbalance.service
a48aee
%{_mandir}/man1/*
a48aee
%config(noreplace) %{_sysconfdir}/sysconfig/irqbalance
a48aee
a48aee
%post
a48aee
%systemd_post irqbalance.service
a48aee
a48aee
%preun
a48aee
%systemd_preun irqbalance.service
a48aee
a48aee
%postun
a48aee
%systemd_postun_with_restart irqbalance.service
a48aee
a48aee
%triggerun -- irqbalance < 2:0.56-3
a48aee
if /sbin/chkconfig --level 3 irqbalance ; then
a48aee
    /bin/systemctl enable irqbalance.service >/dev/null 2>&1 || :
a48aee
fi
a48aee
/sbin/chkconfig --del irqbalance >/dev/null 2>&1 || :
a48aee
a48aee
%changelog
a48aee
* Mon Mar 25 2019 Kairui Song <kasong@redhat.com> 2:1.4.0-3
a48aee
- Update document and remove dead options to fix manpage scan warning (bz1612706)
a48aee
- Fix gating test error (bz1680619)
a48aee
a48aee
* Tue Nov 6 2018 Kairui Song <kasong@redhat.com> 2:1.4.0-2
a48aee
- Fix several memleak problems found by covscan (bz1606969)
a48aee
- Fix an possible overflow error (bz1606969)
a48aee
- Don't leak socket fd on connection error (bz1606969)
a48aee
- Check xen-dyn-event more flexible (bz1576164)
a48aee
a48aee
* Mon May 14 2018 Neil Horman <nhorman@redhat.com> 2:1.4.0-1
a48aee
- Update to latest upstream release
a48aee
- Add CI harness
a48aee
a48aee
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2:1.3.0-2
a48aee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a48aee
a48aee
* Tue Nov 14 2017 Neil Horman <nhorman@redhat.com> - 2:1.3.0-1
a48aee
- Update to latest upstream
a48aee
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2:1.2.0-4
a48aee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
a48aee
a48aee
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2:1.2.0-3
a48aee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a48aee
a48aee
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2:1.2.0-2
a48aee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a48aee
a48aee
* Fri Jan 13 2017 Petr Holasek <holasekp@gmail.com> - 2:1.2.0-1
a48aee
- Rebased to v1.2.0 (bz1411554)
a48aee
a48aee
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2:1.1.0-3
a48aee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a48aee
a48aee
* Tue Dec 15 2015 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 2:1.1.0-2
a48aee
- Fixed AArch64 support.
a48aee
a48aee
* Mon Dec 07 2015 Petr Holasek <pholasek@redhat.com> - 2:1.1.0-1
a48aee
- Rebased to v1.1.0 (bz1288674)
a48aee
a48aee
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:1.0.9-2
a48aee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
a48aee
a48aee
* Wed Mar 18 2015 Petr Holasek <pholasek@redhat.com> - 2:1.0.9-1
a48aee
- Rebased to v1.0.9
a48aee
a48aee
* Mon Jan 05 2015 Petr Holasek <pholasek@redhat.com> - 2:1.0.8-1
a48aee
- Rebased to v1.0.8 (bz1176898)
a48aee
a48aee
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:1.0.7-8
a48aee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
a48aee
a48aee
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:1.0.7-7
a48aee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a48aee
a48aee
* Sun May 11 2014 Peter Robinson <pbrobinson@fedoraproject.org> 2:1.0.7-6
a48aee
- Switch ExclusiveArch to ExcludeArch as all but s390 is supported (also build for aarch64)
a48aee
a48aee
* Thu May 08 2014 Petr Holasek <pholasek@redhat.com> - 2:1.0.7-5
a48aee
- Fixed memory leak (bz1095915)
a48aee
a48aee
* Mon Feb 10 2014 Petr Holasek <pholasek@redhat.com> - 2:1.0.7-4
a48aee
- Missing autogen.sh call fixed
a48aee
a48aee
* Mon Feb 10 2014 Petr Holasek <pholasek@redhat.com> - 2:1.0.7-3
a48aee
- Irqbalance website address was fixed
a48aee
a48aee
* Fri Jan 10 2014 Petr Holasek <pholasek@redhat.com> - 2:1.0.7-2
a48aee
- ppc64le architecture support was enabled
a48aee
a48aee
* Fri Oct 11 2013 Petr Holasek <pholasek@redhat.com> - 2:1.0.7-1
a48aee
- Rebased to version 1.0.7
a48aee
a48aee
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:1.0.6-4
a48aee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
a48aee
a48aee
* Mon Jul 22 2013 Peter Robinson <pbrobinson@fedoraproject.org> 2:1.0.6-3
a48aee
- Fix FTBFS on ARM, minor spec cleanups
a48aee
a48aee
* Thu Jul 18 2013 Petr Holasek <pholasek@redhat.com> - 2:1.0.6-2
a48aee
- Hardened build
a48aee
a48aee
* Mon Jun 10 2013 Petr Holasek <pholasek@redhat.com> - 2:1.0.6-1
a48aee
- Rebased to version 1.0.6
a48aee
a48aee
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:1.0.5-2
a48aee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a48aee
a48aee
* Mon Jan 21 2013 Petr Holasek <pholasek@redhat.com> - 2:1.0.5-1
a48aee
- Rebased to version 1.0.5
a48aee
a48aee
* Wed Aug 29 2012 Petr Holasek <pholasek@redhat.com> - 2:1.0.4-2
a48aee
- Env file path edited
a48aee
a48aee
* Mon Aug 27 2012 Petr Holasek <pholasek@redhat.com> - 2:1.0.4-1
a48aee
- Rebased to version 1.0.4
a48aee
a48aee
* Wed Aug 22 2012 Petr Holasek <pholasek@redhat.com> - 2:1.0.3-5
a48aee
- Make irqbalance scan for new irqs when it detects new irqs (bz832815)
a48aee
- Fixes SIGFPE crash for some banning configuration (bz849792)
a48aee
- Fixes affinity_hint values processing (bz832815)
a48aee
- Adds banirq and bansript options (bz837049)
a48aee
- imake isn't needed for building any more (bz844359)
a48aee
- Fixes clogging of syslog (bz837646)
a48aee
- Added IRQBALANCE_ARGS variable for passing arguments via systemd(bz837048)
a48aee
- Fixes --hint-policy=subset behavior (bz844381)
a48aee
a48aee
* Sun Apr 15 2012 Petr Holasek <pholasek@redhat.com> - 2:1.0.3-4
a48aee
- Updated libnuma dependencies
a48aee
a48aee
* Sun Feb  5 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 2:1.0.3-3
a48aee
- Build on ARM
a48aee
a48aee
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:1.0.3-2
a48aee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a48aee
a48aee
* Fri Dec 02 2011 Neil Horman <nhorman@redhat.com> - 2:1.0.3-1
a48aee
- Updated to latest upstream release
a48aee
a48aee
* Fri Nov 04 2011 Neil Horman <nhorman@redhat.com> - 2:1.0.2-1
a48aee
- Updated to latest upstream release
a48aee
a48aee
* Wed Oct 26 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:1.0-4
a48aee
- Rebuilt for glibc bug#747377
a48aee
a48aee
* Fri Oct 21 2011 Neil Horman <nhorman@redhat.com> - 2:1.0-3
a48aee
- Fix another crash on non-numa systems (bz 748070)
a48aee
a48aee
* Mon Oct 17 2011 Neil Horman <nhorman@redhat.com> - 2:1.0-2
a48aee
- Fix crash for systems with no numa node support
a48aee
a48aee
* Wed Oct 12 2011 Neil Horman <nhorman@redhat.com> - 2:1.0-1
a48aee
- Update irqbalance to latest upstream version
a48aee
a48aee
* Fri May  6 2011 Bill Nottingham <notting@redhat.com> - 2:0.56-4
a48aee
- fix upgrade trigger
a48aee
a48aee
* Fri Apr  8 2011 Peter Robinson <pbrobinson@gmail.com> - 2:0.56-3
a48aee
- Fix build in rawhide
a48aee
- Add license file to rpm
a48aee
- Cleanup spec file
a48aee
a48aee
* Fri Mar 25 2011 Anton Arapov <anton@redhat.com> - 2:0.56-3
a48aee
- rework init in order to respect systemd. (bz 659622)
a48aee
a48aee
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:0.56-2
a48aee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a48aee
a48aee
* Thu Jun 10 2010 Neil Horman <nhorman@redhat.com> - 2:0.56-1
a48aee
- Updated to latest upstream version
a48aee
a48aee
* Wed Sep 09 2009 Neil Horman <nhorman@redhat.com> - 2:0.55-25
a48aee
- Fixing BuildRequires
a48aee
a48aee
* Fri Sep 04 2009 Neil Horman <nhorman@redhat.com> - 2:0.55-24
a48aee
- Fixing irqbalance initscript (bz 521246)
a48aee
a48aee
* Wed Sep 02 2009 Neil Horman <nhorman@redhat.com> - 2:0.55-23
a48aee
- Fixing BuildRequires for new config script
a48aee
a48aee
* Tue Sep 01 2009 Neil Horman <nhorman@redhat.com> - 2:0.55-22
a48aee
- Fixing BuildRequires for new config script
a48aee
a48aee
* Tue Sep 01 2009 Neil Horman <nhorman@redhat.com> - 2:0.55-21
a48aee
- Fixing BuildRequires for new config script
a48aee
a48aee
* Tue Sep 01 2009 Neil Horman <nhorman@redhat.com> - 2:0.55-20
a48aee
- Fixing BuildRequires for new config script
a48aee
a48aee
* Tue Sep 01 2009 Neil Horman <nhorman@redhat.com> - 2:0.55-19
a48aee
- Incorporate capng (bz 520699)
a48aee
a48aee
* Fri Jul 31 2009 Peter Lemenkov <lemenkov@gmail.com> - 2:0.55-18
a48aee
- Added back accidentaly forgotten imake
a48aee
a48aee
* Fri Jul 31 2009 Peter Lemenkov <lemenkov@gmail.com> - 2:0.55-17
a48aee
- Cosmetic fixes in spec-file
a48aee
- Fixed rpmlint error in the init-script
a48aee
a48aee
* Tue Jul 28 2009 Peter Lemenkov <lemenkov@gmail.com> - 2:0.55-16
a48aee
- Many imrovements in spec-file
a48aee
a48aee
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:0.55-15
a48aee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
a48aee
a48aee
* Fri Mar 6 2009 Neil Horman <nhorman@redhat.com>
a48aee
- Update spec file to build for i586 as per new build guidelines (bz 488849)
a48aee
a48aee
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:0.55-13
a48aee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
a48aee
a48aee
* Fri Dec 12 2008 Neil Norman <nhorman@redhat.com> - 2:0.55-12
a48aee
- Remove odd Netorking dependence from irqbalance (bz 476179)
a48aee
a48aee
* Fri Aug 01 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2:0.55-11
a48aee
- fix license tag
a48aee
a48aee
* Wed Jun 04 2008 Neil Horman <nhorman@redhat.com> - 2:0.55-10
a48aee
- Update man page to explain why irqbalance exits on single cache (bz 449949)
a48aee
a48aee
* Tue Mar 18 2008 Neil Horman <nhorman@redhat.com> - 2:0.55-9
a48aee
- Rediff pid-file patch to not remove initial parse_cpu_tree (bz 433270)
a48aee
a48aee
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2:0.55-8
a48aee
- Autorebuild for GCC 4.3
a48aee
a48aee
* Thu Nov 01 2007 Neil Horman <nhorman@redhat.com> - 2:0.55-7
a48aee
- Update to properly hadndle pid files (bz 355231)
a48aee
a48aee
* Thu Oct 04 2007 Neil Horman <nhorman@redhat.com> - 2:0.55-6
a48aee
- Fix irqbalance init script (bz 317219)
a48aee
a48aee
* Fri Sep 28 2007 Neil Horman <nhorman@redhat.com> - 2:0.55-5
a48aee
- Install pie patch
a48aee
- Grab Ulis cpuparse cleanup (bz 310821)
a48aee
a48aee
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 2:0.55-4
a48aee
- Rebuild for selinux ppc32 issue.
a48aee
a48aee
* Thu Jul 05 2007 Neil Horman <nhorman@redhat.com> - 0.55.3
a48aee
- Fixing LSB requirements (bz 246959)
a48aee
a48aee
* Tue Dec 12 2006 Neil Horman <nhorman@redhat.com> - 0.55-2
a48aee
- Fixing typos in spec file (bz 219301)
a48aee
a48aee
* Tue Dec 12 2006 Neil Horman <nhorman@redhat.com> - 0.55-1
a48aee
- Updating to version 0.55
a48aee
a48aee
* Mon Dec 11 2006 Neil Horman <nhorman@redhat.com> - 0.54-1
a48aee
- Update irqbalance to new version released at www.irqbalance.org
a48aee
a48aee
* Wed Nov 15 2006 Neil Horman <nhorman@redhat.com> - 1.13-8
a48aee
- Add ability to set default affinity mask (bz 211148)
a48aee
a48aee
* Wed Nov 08 2006 Neil Horman <nhorman@redhat.com> - 1.13-7
a48aee
- fix up irqbalance to detect multicore (not ht) (bz 211183)
a48aee
a48aee
* Thu Nov 02 2006 Neil Horman <nhorman@redhat.com> - 1.13-6
a48aee
- bumping up MAX_INTERRUPTS to support xen kernels
a48aee
- rediffing patch1 and patch3 to remove fuzz
a48aee
a48aee
* Tue Oct 17 2006 Neil Horman <nhorman@redhat.com> - 1.13-5
a48aee
- Making oneshot mean oneshot always (bz 211178)
a48aee
a48aee
* Wed Sep 13 2006 Peter Jones <pjones@redhat.com> - 1.13-4
a48aee
- Fix subsystem locking
a48aee
a48aee
* Fri Aug 18 2006 Jesse Keating <jkeating@redhat.com> - 1.13-2
a48aee
- rebuilt with latest binutils to pick up 64K -z commonpagesize on ppc*
a48aee
  (#203001)
a48aee
- Remove hack to use cvs checkin ID as release as it doesn't follow
a48aee
  packaging guidelines
a48aee
a48aee
* Tue Aug 01 2006 Neil Horman <nhorman@redhat.com>
a48aee
- Change license to GPL in version 0.13
a48aee
a48aee
* Sat Jul 29 2006 Dave Jones <davej@redhat.com>
a48aee
- identify a bunch more classes.
a48aee
a48aee
* Fri Jul 14 2006 Jesse Keating <jkeating@redhat.com>
a48aee
- rebuild
a48aee
a48aee
* Tue Jul 11 2006 Dave Jones <davej@redhat.com>
a48aee
- Further lazy rebalancing tweaks.
a48aee
a48aee
* Sun Feb 26 2006 Dave Jones <davej@redhat.com>
a48aee
- Don't rebalance IRQs where no interrupts have occured.
a48aee
a48aee
* Sun Feb 12 2006 Dave Jones <davej@redhat.com>
a48aee
- Build for ppc[64] too.
a48aee
a48aee
* Thu Feb 09 2006 Dave Jones <davej@redhat.com>
a48aee
- rebuild.
a48aee
a48aee
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
a48aee
- rebuilt for new gcj
a48aee
a48aee
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
a48aee
- rebuilt
a48aee
a48aee
* Tue Mar  1 2005 Dave Jones <davej@redhat.com>
a48aee
- Rebuild with gcc4
a48aee
a48aee
* Tue Feb  8 2005 Dave Jones <davej@redhat.com>
a48aee
- Build as pie, also -D_FORTIFY_SOURCE=2
a48aee
a48aee
* Tue Jan 11 2005 Dave Jones <davej@redhat.com>
a48aee
- Add missing Obsoletes: kernel-utils.
a48aee
a48aee
* Mon Jan 10 2005 Dave Jones <davej@redhat.com>
a48aee
- Start irqbalance in runlevel 2 too. (#102064)
a48aee
a48aee
* Sat Dec 18 2004 Dave Jones <davej@redhat.com>
a48aee
- Initial packaging, based on kernel-utils.
a48aee