irqbalance-vl.spec 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. %define name irqbalance
  2. %define version 1.3.0
  3. %define release 1%{?_dist_release}
  4. Summary: Daemon to balance irq's across multiple CPUs/Cores.
  5. Summary(ja): 複数の CPU 間で IRQ をバランスさせるためのデーモン
  6. Name: %{name}
  7. Version: %{version}
  8. Release: %{release}
  9. License: GPLv3
  10. Group: System Environment/Base
  11. URL: http://irqbalance.github.io/irqbalance/
  12. Source0: https://github.com/Irqbalance/irqbalance/archive/v1.3.0.tar.gz#/%{name}-%{version}.tar.gz
  13. Source1: %{name}.init
  14. Source2: %{name}.sysconfig
  15. Patch1: %{name}-1.0.4-env-file-path.patch
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  17. BuildRequires: autoconf automake libtool
  18. BuildRequires: glib2-devel pkgconfig libcap-ng-devel
  19. BuildRequires: ncurses-devel
  20. Vendor: Project Vine
  21. Distribution: Vine Linux
  22. %description
  23. irqbalance is a daemon that evenly distributes IRQ load across
  24. multiple CPUs for enhanced performance.
  25. %prep
  26. %setup -q
  27. %patch1 -p1
  28. %build
  29. ./autogen.sh
  30. %configure
  31. CFLAGS="%{optflags}" %__make %{?_smp_mflags}
  32. %install
  33. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  34. mkdir -p $RPM_BUILD_ROOT%{_sbindir}
  35. install irqbalance $RPM_BUILD_ROOT%{_sbindir}
  36. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/{rc.d/init.d,sysconfig}
  37. install %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/irqbalance
  38. install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/irqbalance
  39. mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
  40. install irqbalance.1 %{buildroot}%{_mandir}/man1/
  41. %clean
  42. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  43. %post
  44. /sbin/chkconfig --add irqbalance
  45. /sbin/service irqbalance condrestart
  46. %preun
  47. if [ $1 = 0 ]; then
  48. /sbin/service irqbalance stop > /dev/null 2>&1
  49. /sbin/chkconfig --del irqbalance
  50. fi
  51. %files
  52. %defattr(-,root,root)
  53. %doc COPYING AUTHORS
  54. %config(noreplace) %{_sysconfdir}/rc.d/init.d/*
  55. %config(noreplace) %{_sysconfdir}/sysconfig/*
  56. %{_sbindir}/*
  57. %{_mandir}/*/*
  58. %changelog
  59. * Sat Feb 24 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.0-1
  60. - updated to 1.3.0.
  61. * Mon Jan 12 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.8-1
  62. - update to 1.0.8
  63. * Fri Mar 22 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.5-1
  64. - update to 1.0.5
  65. * Tue Apr 19 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.55-3
  66. - add missing BuildRequires: imake
  67. * Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> 0.55-2
  68. - rebuilt with rpm-4.8.1-3
  69. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 0.55-1vl5
  70. - applied new versioning policy, spec in utf-8
  71. * Sat Dec 16 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.55-0vl1
  72. - update to irqbalance 0.55 from www.irqbalance.org
  73. - add patch0 from svn trunk(rev.19)
  74. * Fri Dec 15 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.13-0vl2
  75. - update irqbalance.init
  76. - do not start irqbalance on non-SMP system.
  77. - do not "killproc" if irqbalance is not running.
  78. * Thu Nov 16 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.13-0vl1
  79. - new upstream release
  80. - change Group to System Environment/Base
  81. - add manpage
  82. * Mon Jan 17 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 0.12-0vl1
  83. - new upstream release
  84. * Sun Aug 29 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.09-0vl1
  85. - initial build for Vine Linux
  86. * Tue Jun 01 2004 Marcel Pol <mpol@mandrake.org> 0.09-1mdk
  87. - 0.09
  88. * Tue Sep 09 2003 Marcel Pol <mpol@gmx.net> 0.06-1mdk
  89. - initial mandrake contrib
  90. Patch2: irqbalance-norebalance-zeroints.patch
  91. Patch3: irqbalance-classes.patch
  92. Patch4: irqbalance-oneshot.patch