hdparm-vl.spec 5.4 KB

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