irqbalance-vl.spec 2.8 KB

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