hddtemp-vl.spec 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. %bcond_with systemd
  2. %global _hardened_build 1
  3. %global beta beta15
  4. Name: hddtemp
  5. Version: 0.3
  6. Release: 0.35.%{beta}%{?_dist_release}
  7. Summary: Hard disk temperature tool
  8. Summary(ja): HDD温度測定ツール
  9. License: GPLv2+
  10. URL: http://savannah.nongnu.org/projects/hddtemp/
  11. Source0: http://download.savannah.nongnu.org/releases/hddtemp/%{name}-%{version}-%{beta}.tar.bz2
  12. Source1: %{name}.db
  13. Source2: %{name}.service
  14. Source3: %{name}.sysconfig
  15. Source4: %{name}.pam
  16. Source5: %{name}.consoleapp
  17. Patch0: 0001-Try-attribute-190-if-194-doesn-t-exist.patch
  18. Patch1: http://ftp.debian.org/debian/pool/main/h/hddtemp/hddtemp_0.3-beta15-52.diff.gz
  19. # https://bugzilla.redhat.com/show_bug.cgi?id=717479
  20. # https://bugzilla.redhat.com/show_bug.cgi?id=710055
  21. Patch2: %{name}-0.3-beta15-autodetect-717479.patch
  22. Patch3: 0001-Allow-binding-to-a-listen-address-that-doesn-t-exist.patch
  23. Patch4: fix-model-length.patch
  24. BuildRequires: gettext
  25. %if %{with systemd}
  26. # systemd >= 186 for scriptlet macros
  27. BuildRequires: systemd >= 186
  28. Requires(post): systemd
  29. Requires(preun): systemd
  30. Requires(postun): systemd
  31. Requires: %{_bindir}/consolehelper
  32. %endif
  33. Vendor: Project Vine
  34. Distribution: Vine Linux
  35. Packager: tomop
  36. %description
  37. hddtemp is a tool that gives you the temperature of your hard drive by
  38. reading S.M.A.R.T. information.
  39. %description -l ja
  40.  hddtempは、S.M.A.R.T.情報を読み取りHDD温度を出力します。
  41. %prep
  42. %setup -q -n %{name}-%{version}-%{beta}
  43. %patch1 -p1
  44. %patch2 -p1
  45. %patch3 -p1
  46. %patch0 -p1
  47. %patch4 -p1
  48. sed -i -e 's|/etc/hddtemp.db|/usr/share/misc/hddtemp.db|' doc/hddtemp.8
  49. chmod -x contribs/analyze/*
  50. rm COPYING ; cp -p GPL-2 COPYING
  51. cp -p debian/changelog changelog.debian
  52. %build
  53. %configure --disable-dependency-tracking
  54. make %{?_smp_mflags}
  55. %install
  56. make install DESTDIR=$RPM_BUILD_ROOT
  57. install -Dpm 644 %{SOURCE1} $RPM_BUILD_ROOT/usr/share/misc/hddtemp.db
  58. %if %{with systemd}
  59. #install -Dpm 644 %{SOURCE2} $RPM_BUILD_ROOT%{_unitdir}/hddtemp.service
  60. %endif
  61. install -Dpm 644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/hddtemp
  62. install -dm 755 $RPM_BUILD_ROOT%{_bindir}
  63. ln -s consolehelper $RPM_BUILD_ROOT%{_bindir}/hddtemp
  64. install -Dpm 644 %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/hddtemp
  65. install -Dpm 644 %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/security/console.apps/hddtemp
  66. %find_lang %{name}
  67. %if %{with systemd}
  68. %post
  69. %systemd_post hddtemp.service
  70. %preun
  71. %systemd_preun hddtemp.service
  72. %postun
  73. %systemd_postun_with_restart hddtemp.service
  74. %endif
  75. %files -f %{name}.lang
  76. %doc ChangeLog changelog.debian COPYING README TODO contribs/
  77. %config(noreplace) %{_sysconfdir}/sysconfig/hddtemp
  78. %config(noreplace) %{_sysconfdir}/pam.d/hddtemp
  79. %config(noreplace) %{_sysconfdir}/security/console.apps/hddtemp
  80. %if %{with systemd}
  81. %{_unitdir}/hddtemp.service
  82. %endif
  83. %{_bindir}/hddtemp
  84. %{_sbindir}/hddtemp
  85. %config(noreplace) /usr/share/misc/hddtemp.db
  86. %{_mandir}/man8/hddtemp.8*
  87. %changelog
  88. * Sun Apr 24 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.3-0.35.beta15
  89. - initial build for Vine Linux.
  90. * Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-0.34.beta15
  91. - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
  92. * Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-0.33.beta15
  93. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
  94. * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-0.32.beta15
  95. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  96. * Fri Mar 07 2014 Jaromir Capik <jcapik@redhat.com> - 0.3-0.31.beta15
  97. - Fixing the model string size [24 -> 40] (#1061649)
  98. * Sat Jan 18 2014 Ville Skyttä <ville.skytta@iki.fi> - 0.3-0.30.beta15
  99. - Improve comments in database (#1054593, Edward Kuns).
  100. * Sat Jan 18 2014 Ville Skyttä <ville.skytta@iki.fi> - 0.3-0.29.beta15
  101. - Patch to try attribute 190 if 194 doesn't exist for defaults (#1054593).
  102. - Trim down database to just entries not covered by defaults.
  103. - Add some Samsung SSD's lacking a sensor to the database.
  104. * Thu Jan 9 2014 Ville Skyttä <ville.skytta@iki.fi> - 0.3-0.28.beta15
  105. - Patch to allow binding to a listen address that doesn't exist yet.
  106. - Use systemd macros in scriptlets (#850145).
  107. * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-0.27.beta15
  108. - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
  109. * Fri Jan 25 2013 Ville Skyttä <ville.skytta@iki.fi> - 0.3-0.26.beta15
  110. - Drop obsolete After=syslog.target from systemd unit, add Documentation.
  111. - Drop obsolete sysv to systemd migration scriptlets.
  112. - Drop obsolete specfile constructs.
  113. - Update Debian patch set to 0.3-beta15-52.
  114. * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-0.25.beta15
  115. - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
  116. * Mon Apr 23 2012 Ville Skyttä <ville.skytta@iki.fi> - 0.3-0.23.beta15
  117. - Build with hardening flags on.
  118. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-0.23.beta15
  119. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  120. * Thu Aug 18 2011 Ville Skyttä <ville.skytta@iki.fi> - 0.3-0.22.beta15
  121. - Migrate to systemd, patch to glob usual device names w/o arguments (#717479).
  122. - Update Debian patch set to 0.3-beta15-48, ship its changelog in docs.
  123. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-0.21.beta15
  124. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  125. * Sun Feb 14 2010 Ville Skyttä <ville.skytta@iki.fi> - 0.3-0.20.beta15
  126. - Patch to fix ix86 build if sys/ucontext.h is pulled in by signal.h (#564857).
  127. * Thu Aug 20 2009 Ville Skyttä <ville.skytta@iki.fi> - 0.3-0.19.beta15
  128. - Try to start daemon for all disks if none are specified in sysconfig.
  129. - Update URLs.
  130. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-0.18.beta15
  131. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  132. * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-0.17.beta15
  133. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  134. * Wed Oct 1 2008 Ville Skyttä <ville.skytta@iki.fi> - 0.3-0.16.beta15
  135. - Sync with Debian's 0.3-beta15-45 for a fix for undesired spin-ups with
  136. most current drives (#464912).
  137. * Sat Feb 9 2008 Ville Skyttä <ville.skytta@iki.fi> - 0.3-0.15.beta15
  138. - Sync with Debian's 0.3-beta15-38.
  139. - Update drive database to 2007-09-14.
  140. - Trim pre-2006 changelog entries.
  141. * Wed Sep 5 2007 Ville Skyttä <ville.skytta@iki.fi> - 0.3-0.14.beta15
  142. - Adjust server chkconfig start/stop priorities to start before gkrellmd,
  143. other cosmetic init script tweaks.
  144. - Mark hddtemp.db as %%config(noreplace).
  145. * Mon Aug 6 2007 Ville Skyttä <ville.skytta@iki.fi> - 0.3-0.13.beta15
  146. - License: GPLv2+
  147. * Tue Jul 10 2007 Ville Skyttä <ville.skytta@iki.fi> - 0.3-0.12.beta15
  148. - Improve init script LSB compliance.
  149. * Tue Jan 9 2007 Ville Skyttä <ville.skytta@iki.fi> - 0.3-0.11.beta15
  150. - SATA sense fix (#221100, Jens Axboe).
  151. * Sun Dec 31 2006 Ville Skyttä <ville.skytta@iki.fi> - 0.3-0.10.beta15
  152. - Apply patches from Debian containing bunch of hddtemp.db updates and
  153. guess mode improvements for drives not in the database.
  154. * Wed Aug 30 2006 Ville Skyttä <ville.skytta@iki.fi> - 0.3-0.9.beta15
  155. - Rebuild.
  156. * Wed May 3 2006 Ville Skyttä <ville.skytta@iki.fi> - 0.3-0.8.beta15
  157. - 0.3-beta15, drive database 2006-04-26.
  158. - Specfile cleanups.
  159. * Wed Feb 8 2006 Ville Skyttä <ville.skytta@iki.fi> - 0.3-0.8.beta14
  160. - Update drive database to 2006-02-07.
  161. * Wed Jan 18 2006 Ville Skyttä <ville.skytta@iki.fi> - 0.3-0.7.beta14
  162. - Update drive database to 2006-01-18.
  163. - Init script is not a config file.
  164. - Mark console.perms snippet as noreplace.