hdparm-vl.spec 5.8 KB

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