irqbalance-vl.spec 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. %define name irqbalance
  2. %define version 0.55
  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: GPL/OSL
  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. Patch0: %{name}-%{version}-svn19.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. %patch0 -p1
  24. %build
  25. %__make
  26. %install
  27. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  28. mkdir -p $RPM_BUILD_ROOT%{_sbindir}
  29. install irqbalance $RPM_BUILD_ROOT%{_sbindir}
  30. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/{rc.d/init.d,sysconfig}
  31. install %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/irqbalance
  32. install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/irqbalance
  33. mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
  34. install irqbalance.1 %{buildroot}%{_mandir}/man1/
  35. %clean
  36. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  37. %post
  38. /sbin/chkconfig --add irqbalance
  39. /sbin/service irqbalance condrestart
  40. %preun
  41. if [ $1 = 0 ]; then
  42. /sbin/service irqbalance stop > /dev/null 2>&1
  43. /sbin/chkconfig --del irqbalance
  44. fi
  45. %files
  46. %defattr(-,root,root)
  47. %config(noreplace) %{_sysconfdir}/rc.d/init.d/*
  48. %config(noreplace) %{_sysconfdir}/sysconfig/*
  49. %{_sbindir}/*
  50. %{_mandir}/*/*
  51. %changelog
  52. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 0.55-1vl5
  53. - applied new versioning policy, spec in utf-8
  54. * Sun Dec 16 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.55-0vl1
  55. - update to irqbalance 0.55 from www.irqbalance.org
  56. - add patch0 from svn trunk(rev.19)
  57. * Sat Dec 15 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.13-0vl2
  58. - update irqbalance.init
  59. - do not start irqbalance on non-SMP system.
  60. - do not "killproc" if irqbalance is not running.
  61. * Thu Nov 16 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.13-0vl1
  62. - new upstream release
  63. - change Group to System Environment/Base
  64. - add manpage
  65. * Mon Jan 17 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 0.12-0vl1
  66. - new upstream release
  67. * Sun Aug 29 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.09-0vl1
  68. - initial build for Vine Linux
  69. * Tue Jun 01 2004 Marcel Pol <mpol@mandrake.org> 0.09-1mdk
  70. - 0.09
  71. * Tue Sep 09 2003 Marcel Pol <mpol@gmx.net> 0.06-1mdk
  72. - initial mandrake contrib
  73. Patch2: irqbalance-norebalance-zeroints.patch
  74. Patch3: irqbalance-classes.patch
  75. Patch4: irqbalance-oneshot.patch