hdparm-vl.spec 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. Summary: A utility for displaying and/or setting hard disk parameters.
  2. Summary(ja): ハードディスクのパラメータの表示・設定ユーティリティ
  3. Name: hdparm
  4. Version: 9.32
  5. Release: 1%{?_dist_release}
  6. License: BSD
  7. Group: Applications/System
  8. Source: http://www.ibiblio.org/pub/Linux/system/hardware/hdparm-%{version}.tar.gz
  9. Source1: hdparm-sysconfig
  10. Buildroot: %{_tmppath}/%{name}-%{version}-root
  11. ExcludeArch: s390 s390x
  12. Vendor: Project Vine
  13. Distribution: Vine Linux
  14. %description
  15. Hdparm is a useful system utility for setting (E)IDE and SATA/
  16. PATA/SAS hard driveparameters.
  17. For example, hdparm can be used to tweak hard drive performance
  18. and to spin down hard drives for power conservation.
  19. %description -l ja
  20. hdparm は (E)IDE や SATA/PATA/SAS ハードディスクのパラメータを
  21. 設定する便利なシステムユーティリティです。
  22. 例えばハードディスクのパフォーマンスを調整したり、電力消費を抑
  23. える為にハードディスクをスピンダウンする設定を行ったりすること
  24. ができます。
  25. %prep
  26. %setup -q
  27. %build
  28. %{__perl} -pi -e "s,-O2,$RPM_OPT_FLAGS,g" Makefile
  29. %{__make} %{?_smp_mflags}
  30. %install
  31. rm -rf $RPM_BUILD_ROOT
  32. %{__mkdir} -p $RPM_BUILD_ROOT%{_syssbindir}
  33. %{__mkdir} -p $RPM_BUILD_ROOT%{_mandir}/man8
  34. %{__install} -c -s -m 755 hdparm $RPM_BUILD_ROOT%{_syssbindir}/hdparm
  35. %{__install} -c -m 644 hdparm.8 $RPM_BUILD_ROOT%{_mandir}/man8
  36. %{__mkdir} -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
  37. %{__install} -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/harddisks
  38. %clean
  39. rm -rf $RPM_BUILD_ROOT
  40. %files
  41. %defattr(-,root,root)
  42. %doc Changelog LICENSE.TXT README.acoustic hdparm.lsm
  43. %config(noreplace) %{_sysconfdir}/sysconfig/harddisks
  44. %{_syssbindir}/hdparm
  45. %{_mandir}/man8/hdparm.8*
  46. %changelog
  47. * Sun Dec 29 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 9.32-1
  48. - update to 9.32
  49. * Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> 9.28-2
  50. - rebuilt with rpm-4.8.1-3
  51. * Sun Apr 25 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 9.28-1
  52. - new upstream release
  53. - built with new toolchain
  54. * Mon Apr 13 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 9.12-1
  55. - new upstream release
  56. - spec in utf-8
  57. * Tue May 13 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 8.6-1
  58. - new upstream release
  59. * Fri Jul 06 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 7.6-0vl1
  60. - new upstream release
  61. - build with new toolchains.
  62. - update description.
  63. - use rpm macros to specify directories.
  64. - add some documents.
  65. * Sun Sep 05 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 5.7-0vl1
  66. - new upstream release
  67. * Tue Apr 8 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 5.2-1vl2
  68. - rebuild
  69. * Fri Dec 06 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 5.2-1vl1
  70. - based on 5.2-1 from Rawhide and built for Vine Linux
  71. - added Japanese summary and description
  72. - previous Vine version was 4.6-0vl1 with no vine-specific patches
  73. * Wed Jun 26 2002 Karsten Hopp <karsten@redhat.de>
  74. - update to 5.2 with the following fixes:
  75. - v5.2 compile fixes for 2.5.xx
  76. - v5.1 fixed segfault in "-i" on older drives
  77. - v5.0 lots of updates and new features
  78. - v4.9 fixed compile error with 2.5.xx kernels
  79. - v4.8 changed -Q to allow specifying queue depth
  80. - v4.7 added -z, -Q, -M flags; expanded parm range for -p
  81. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  82. - automated rebuild
  83. * Thu May 23 2002 Tim Powers <timp@redhat.com>
  84. - automated rebuild
  85. * Fri Feb 22 2002 Karsten Hopp <karsten@redhat.de>
  86. - bump version for 8.0
  87. * Fri Feb 22 2002 Karsten Hopp <karsten@redhat.de>
  88. - rebuild in new environment
  89. * Wed Jan 23 2002 Karsten Hopp <karsten@redhat.de> (4.6-1)
  90. - Update to 4.6
  91. * Mon Oct 01 2001 Karsten Hopp <karsten@redhat.de>
  92. - fix name of doc file (#54137)
  93. * Fri Jul 20 2001 Florian La Roche <Florian.LaRoche@redhat.de>
  94. - exclude s390,s390x
  95. * Mon Jun 25 2001 Karsten Hopp <karsten@redhat.de>
  96. - update to version 4.1
  97. - update URL
  98. * Wed Jul 19 2000 Bernhard Rosenkr舅zer <bero@redhat.com>
  99. - disable readahead (#14268)
  100. - add comment in /etc/sysconfig/harddisks about possible extra parameters
  101. * Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
  102. - automatic rebuild
  103. * Wed Jul 12 2000 Trond Eivind Glomsr <teg@redhat.com>
  104. - disable 32 bit interfacing (#13730)
  105. * Tue Jun 27 2000 Trond Eivind Glomsr <teg@redhat.com>
  106. - use %%{_tmppath}
  107. - add /etc/sysconfig/harddisks, a new file for hardisk
  108. optimization parameters
  109. * Sun Jun 18 2000 Bernhard Rosenkr舅zer <bero@redhat.com>
  110. - FHSify
  111. * Sun Apr 9 2000 Bernhard Rosenkr舅zer <bero@redhat.com>
  112. - Fix compilation with kernel 2.3.*
  113. * Thu Feb 17 2000 Bernhard Rosenkr舅zer <bero@redhat.com>
  114. - 3.9
  115. - handle RPM_OPT_FLAGS
  116. * Thu Feb 17 2000 Bernhard Rosenkr舅zer <bero@redhat.com>
  117. - Use O_NONBLOCK when opening devices so we can manipulate CD-ROM drives
  118. with no media inserted, even when running a current kernel (Bug #6457)
  119. * Sat Feb 5 2000 Bill Nottingham <notting@redhat.com>
  120. - build as non-root user (#6458)
  121. * Fri Feb 4 2000 Bernhard Rosenkr舅zer <bero@redhat.com>
  122. - deal with RPM compressing man pages
  123. * Fri Nov 19 1999 Bernhard Rosenkraenzer <bero@redhat.com>
  124. - 3.6
  125. * Thu Aug 12 1999 Cristian Gafton <gafton@redhat.com>
  126. - version 3.5
  127. * Wed Mar 24 1999 Cristian Gafton <gafton@redhat.com>
  128. - added patches from UP
  129. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  130. - auto rebuild in the new build environment (release 4)
  131. * Tue Dec 29 1998 Cristian Gafton <gafton@redhat.com>
  132. - build for 6.0
  133. * Fri Apr 24 1998 Prospector System <bugs@redhat.com>
  134. - translations modified for de, fr, tr
  135. * Wed Apr 08 1998 Erik Troan <ewt@redhat.com>
  136. - updated to 3.3
  137. - build rooted
  138. * Fri Oct 31 1997 Donnie Barnes <djb@redhat.com>
  139. - fixed spelling error in summary
  140. * Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
  141. - built against glibc