irqbalance-vl.spec 3.7 KB

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