irqbalance-vl.spec 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. %define name irqbalance
  2. %define version 1.0.5
  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. %configure
  26. CFLAGS="%{optflags}" %__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. * Fri Mar 22 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.5-1
  54. - update to 1.0.5
  55. * Tue Apr 19 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.55-3
  56. - add missing BuildRequires: imake
  57. * Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> 0.55-2
  58. - rebuilt with rpm-4.8.1-3
  59. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 0.55-1vl5
  60. - applied new versioning policy, spec in utf-8
  61. * Sat Dec 16 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.55-0vl1
  62. - update to irqbalance 0.55 from www.irqbalance.org
  63. - add patch0 from svn trunk(rev.19)
  64. * Fri Dec 15 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.13-0vl2
  65. - update irqbalance.init
  66. - do not start irqbalance on non-SMP system.
  67. - do not "killproc" if irqbalance is not running.
  68. * Thu Nov 16 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.13-0vl1
  69. - new upstream release
  70. - change Group to System Environment/Base
  71. - add manpage
  72. * Mon Jan 17 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 0.12-0vl1
  73. - new upstream release
  74. * Sun Aug 29 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.09-0vl1
  75. - initial build for Vine Linux
  76. * Tue Jun 01 2004 Marcel Pol <mpol@mandrake.org> 0.09-1mdk
  77. - 0.09
  78. * Tue Sep 09 2003 Marcel Pol <mpol@gmx.net> 0.06-1mdk
  79. - initial mandrake contrib
  80. Patch2: irqbalance-norebalance-zeroints.patch
  81. Patch3: irqbalance-classes.patch
  82. Patch4: irqbalance-oneshot.patch