irqbalance-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. %define name irqbalance
  2. %define version 1.0.8
  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://www.irqbalance.org/
  12. Source0: %{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: glib2-devel
  18. %description
  19. Daemon to balance irq's across multiple CPUs on systems with
  20. the 2.4 or 2.6 kernel. Only useful on SMP systems.
  21. %prep
  22. %setup -q
  23. %patch1 -p1
  24. %build
  25. ./autogen.sh
  26. %configure
  27. CFLAGS="%{optflags}" %__make
  28. %install
  29. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  30. mkdir -p $RPM_BUILD_ROOT%{_sbindir}
  31. install irqbalance $RPM_BUILD_ROOT%{_sbindir}
  32. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/{rc.d/init.d,sysconfig}
  33. install %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/irqbalance
  34. install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/irqbalance
  35. mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
  36. install irqbalance.1 %{buildroot}%{_mandir}/man1/
  37. %clean
  38. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  39. %post
  40. /sbin/chkconfig --add irqbalance
  41. /sbin/service irqbalance condrestart
  42. %preun
  43. if [ $1 = 0 ]; then
  44. /sbin/service irqbalance stop > /dev/null 2>&1
  45. /sbin/chkconfig --del irqbalance
  46. fi
  47. %files
  48. %defattr(-,root,root)
  49. %config(noreplace) %{_sysconfdir}/rc.d/init.d/*
  50. %config(noreplace) %{_sysconfdir}/sysconfig/*
  51. %{_sbindir}/*
  52. %{_mandir}/*/*
  53. %changelog
  54. * Mon Jan 12 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.8-1
  55. - update to 1.0.8
  56. * Fri Mar 22 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.5-1
  57. - update to 1.0.5
  58. * Tue Apr 19 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.55-3
  59. - add missing BuildRequires: imake
  60. * Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> 0.55-2
  61. - rebuilt with rpm-4.8.1-3
  62. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 0.55-1vl5
  63. - applied new versioning policy, spec in utf-8
  64. * Sat Dec 16 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.55-0vl1
  65. - update to irqbalance 0.55 from www.irqbalance.org
  66. - add patch0 from svn trunk(rev.19)
  67. * Fri Dec 15 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.13-0vl2
  68. - update irqbalance.init
  69. - do not start irqbalance on non-SMP system.
  70. - do not "killproc" if irqbalance is not running.
  71. * Thu Nov 16 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.13-0vl1
  72. - new upstream release
  73. - change Group to System Environment/Base
  74. - add manpage
  75. * Mon Jan 17 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 0.12-0vl1
  76. - new upstream release
  77. * Sun Aug 29 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.09-0vl1
  78. - initial build for Vine Linux
  79. * Tue Jun 01 2004 Marcel Pol <mpol@mandrake.org> 0.09-1mdk
  80. - 0.09
  81. * Tue Sep 09 2003 Marcel Pol <mpol@gmx.net> 0.06-1mdk
  82. - initial mandrake contrib
  83. Patch2: irqbalance-norebalance-zeroints.patch
  84. Patch3: irqbalance-classes.patch
  85. Patch4: irqbalance-oneshot.patch