hdparm-vl.spec 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. Summary: A utility for displaying and/or setting hard disk parameters.
  2. Summary(ja): ハードディスクのパラメータの表示・設定ユーティリティ
  3. Name: hdparm
  4. Version: 9.28
  5. Release: 2%{?_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 17 2011 Shu KONNO <owa@bg.wakwak.com> 9.28-2
  46. - rebuilt with rpm-4.8.1-3
  47. * Sun Apr 25 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 9.28-1
  48. - new upstream release
  49. - built with new toolchain
  50. * Mon Apr 13 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 9.12-1
  51. - new upstream release
  52. - spec in utf-8
  53. * Tue May 13 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 8.6-1
  54. - new upstream release
  55. * Fri Jul 06 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 7.6-0vl1
  56. - new upstream release
  57. - build with new toolchains.
  58. - update description.
  59. - use rpm macros to specify directories.
  60. - add some documents.
  61. * Sun Sep 05 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 5.7-0vl1
  62. - new upstream release
  63. * Tue Apr 8 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 5.2-1vl2
  64. - rebuild
  65. * Fri Dec 06 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 5.2-1vl1
  66. - based on 5.2-1 from Rawhide and built for Vine Linux
  67. - added Japanese summary and description
  68. - previous Vine version was 4.6-0vl1 with no vine-specific patches
  69. * Wed Jun 26 2002 Karsten Hopp <karsten@redhat.de>
  70. - update to 5.2 with the following fixes:
  71. - v5.2 compile fixes for 2.5.xx
  72. - v5.1 fixed segfault in "-i" on older drives
  73. - v5.0 lots of updates and new features
  74. - v4.9 fixed compile error with 2.5.xx kernels
  75. - v4.8 changed -Q to allow specifying queue depth
  76. - v4.7 added -z, -Q, -M flags; expanded parm range for -p
  77. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  78. - automated rebuild
  79. * Thu May 23 2002 Tim Powers <timp@redhat.com>
  80. - automated rebuild
  81. * Fri Feb 22 2002 Karsten Hopp <karsten@redhat.de>
  82. - bump version for 8.0
  83. * Fri Feb 22 2002 Karsten Hopp <karsten@redhat.de>
  84. - rebuild in new environment
  85. * Wed Jan 23 2002 Karsten Hopp <karsten@redhat.de> (4.6-1)
  86. - Update to 4.6
  87. * Mon Oct 01 2001 Karsten Hopp <karsten@redhat.de>
  88. - fix name of doc file (#54137)
  89. * Fri Jul 20 2001 Florian La Roche <Florian.LaRoche@redhat.de>
  90. - exclude s390,s390x
  91. * Mon Jun 25 2001 Karsten Hopp <karsten@redhat.de>
  92. - update to version 4.1
  93. - update URL
  94. * Wed Jul 19 2000 Bernhard Rosenkr舅zer <bero@redhat.com>
  95. - disable readahead (#14268)
  96. - add comment in /etc/sysconfig/harddisks about possible extra parameters
  97. * Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
  98. - automatic rebuild
  99. * Wed Jul 12 2000 Trond Eivind Glomsr <teg@redhat.com>
  100. - disable 32 bit interfacing (#13730)
  101. * Tue Jun 27 2000 Trond Eivind Glomsr <teg@redhat.com>
  102. - use %%{_tmppath}
  103. - add /etc/sysconfig/harddisks, a new file for hardisk
  104. optimization parameters
  105. * Mon Jun 18 2000 Bernhard Rosenkr舅zer <bero@redhat.com>
  106. - FHSify
  107. * Sun Apr 9 2000 Bernhard Rosenkr舅zer <bero@redhat.com>
  108. - Fix compilation with kernel 2.3.*
  109. * Thu Feb 17 2000 Bernhard Rosenkr舅zer <bero@redhat.com>
  110. - 3.9
  111. - handle RPM_OPT_FLAGS
  112. * Thu Feb 17 2000 Bernhard Rosenkr舅zer <bero@redhat.com>
  113. - Use O_NONBLOCK when opening devices so we can manipulate CD-ROM drives
  114. with no media inserted, even when running a current kernel (Bug #6457)
  115. * Sat Feb 5 2000 Bill Nottingham <notting@redhat.com>
  116. - build as non-root user (#6458)
  117. * Fri Feb 4 2000 Bernhard Rosenkr舅zer <bero@redhat.com>
  118. - deal with RPM compressing man pages
  119. * Fri Nov 19 1999 Bernhard Rosenkraenzer <bero@redhat.com>
  120. - 3.6
  121. * Thu Aug 12 1999 Cristian Gafton <gafton@redhat.com>
  122. - version 3.5
  123. * Wed Mar 24 1999 Cristian Gafton <gafton@redhat.com>
  124. - added patches from UP
  125. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  126. - auto rebuild in the new build environment (release 4)
  127. * Tue Dec 29 1998 Cristian Gafton <gafton@redhat.com>
  128. - build for 6.0
  129. * Fri Apr 24 1998 Prospector System <bugs@redhat.com>
  130. - translations modified for de, fr, tr
  131. * Wed Apr 08 1998 Erik Troan <ewt@redhat.com>
  132. - updated to 3.3
  133. - build rooted
  134. * Fri Oct 31 1997 Donnie Barnes <djb@redhat.com>
  135. - fixed spelling error in summary
  136. * Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
  137. - built against glibc