sg3_utils-vl.spec 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. %define rescan_version 1.57
  2. Summary: Utilities for devices that use SCSI command sets
  3. Summary(ja): SCSIコマンドセットを利用するデバイスのためのユーティリティ
  4. Name: sg3_utils
  5. Version: 1.37
  6. Release: 1%{?_dist_release}
  7. License: GPLv2+ and BSD
  8. Group: Applications/System
  9. Source0: http://sg.danny.cz/sg/p/%{name}-%{version}.tar.xz
  10. Source1: http://www.garloff.de/kurt/linux/rescan-scsi-bus.sh-%{rescan_version}
  11. URL: http://sg.danny.cz/sg/
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  13. Requires: %{name}-libs = %{version}-%{release}
  14. Vendor: Project Vine
  15. Distribution: Vine Linux
  16. %description
  17. Collection of Linux utilities for devices that use the SCSI command set.
  18. Includes utilities to copy data based on "dd" syntax and semantics (called
  19. sg_dd, sgp_dd and sgm_dd); check INQUIRY data and VPD pages (sg_inq); check
  20. mode and log pages (sginfo, sg_modes and sg_logs); spin up and down
  21. disks (sg_start); do self tests (sg_senddiag); and various other functions.
  22. See the README, CHANGELOG and COVERAGE files. Requires the linux kernel 2.4
  23. series or later. In the 2.4 series SCSI generic device names (e.g. /dev/sg0)
  24. must be used. In the 2.6 series other device names may be used as
  25. well (e.g. /dev/sda).
  26. Warning: Some of these tools access the internals of your system
  27. and the incorrect usage of them may render your system inoperable.
  28. %package libs
  29. Summary: Shared library for %{name}
  30. Summary(ja): %{name} の共有ライブラリ
  31. Group: System Environment/Libraries
  32. %description libs
  33. This package contains the shared library for %{name}.
  34. %package devel
  35. Summary: Development library and header files for the sg3_utils library
  36. Summary(ja): %{name} ライブラリの開発ファイル
  37. Group: Development/Libraries
  38. Requires: %{name}-libs = %{version}-%{release}
  39. Requires: glibc-headers
  40. %description devel
  41. This package contains the %{name} library and its header files for
  42. developing applications.
  43. %prep
  44. %setup -q
  45. %build
  46. %configure --disable-static
  47. # Don't use rpath!
  48. sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  49. sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  50. make %{?_smp_mflags}
  51. %install
  52. make install DESTDIR=$RPM_BUILD_ROOT
  53. rm -rf $RPM_BUILD_ROOT/%{_libdir}/*.la
  54. install -p -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/rescan-scsi-bus.sh
  55. %clean
  56. rm -rf $RPM_BUILD_ROOT
  57. %post libs -p /sbin/ldconfig
  58. %postun libs -p /sbin/ldconfig
  59. %files
  60. %defattr(-,root,root)
  61. %doc ChangeLog COVERAGE CREDITS INSTALL README README.sg_start
  62. %attr(755,root,root) %{_bindir}/*
  63. %{_mandir}/man8/*
  64. %files libs
  65. %defattr(-,root,root)
  66. %{_libdir}/*.so.*
  67. %files devel
  68. %defattr(-,root,root)
  69. %{_includedir}/scsi/*.h
  70. %{_libdir}/*.so
  71. %changelog
  72. * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.37-1
  73. - update to 1.37
  74. * Fri May 27 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.27-2
  75. - rebuild for Vine 6
  76. * Mon Oct 19 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.27-1
  77. - initial build for Vine Linux
  78. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.27-2
  79. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  80. * Tue Apr 28 2009 Dan Horák <dan@danny.cz> - 1.27-1
  81. - update to version 1.27
  82. - changelog: http://sg.danny.cz/sg/p/sg3_utils.ChangeLog
  83. * Tue Mar 31 2009 Dan Horák <dan@danny.cz> - 1.26-4
  84. - add dependency between the libs subpackage and the main package (#492921)
  85. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.26-3
  86. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  87. * Mon Nov 3 2008 Dan Horák <dan@danny.cz> - 1.26-2
  88. - update URL
  89. - include rescan-scsi-bus script 1.29
  90. * Mon Jun 30 2008 Dan Horák <dan@danny.cz> - 1.26-1
  91. - update to upstream version 1.26
  92. * Fri Mar 28 2008 Phil Knirsch <pknirsch@redhat.com> - 1.25-4
  93. - Dropped really unnecessary Provides of sg_utils (#226414)
  94. - Use --disable-static in configure (#226414)
  95. * Thu Mar 27 2008 Phil Knirsch <pknirsch@redhat.com> - 1.25-3
  96. - Specfile cleanup, removal of static development libraries (#226414)
  97. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.25-2
  98. - Autorebuild for GCC 4.3
  99. * Mon Oct 22 2007 Phil Knirsch <pknirsch@redhat.com> - 1.25-1
  100. - Fixed URLs
  101. - Updated to sg3_utils-1.25
  102. * Thu Aug 16 2007 Phil Knirsch <pknirsch@redhat.com> - 1.23-2
  103. - License review and update
  104. * Fri Feb 02 2007 Phil Knirsch <pknirsch@redhat.com> - 1.23-1
  105. - Update to sg3_utils-1.23
  106. - Updated summary
  107. * Mon Nov 13 2006 Phil Knirsch <pknirsch@redhat.com> - 1.22-1
  108. - Update to sg3_utils-1.22
  109. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.20-2.1
  110. - rebuild
  111. * Wed Jun 07 2006 Phil Knirsch <pknirsch@redhat.com> - 1.20-2
  112. - Fixed rebuild problem on latest toolchain
  113. - Added missing buildprereqs
  114. * Fri May 19 2006 Phil Knirsch <pknirsch@redhat.com> - 1.20-1
  115. - Update to sg3_utils-1.20.
  116. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.19-1.1
  117. - bump again for double-long bug on ppc(64)
  118. * Fri Feb 10 2006 Phil Knirsch <pknirsch@redhat.com> - 1.19-1
  119. - Update to sg3_utils-1.19.
  120. - Fixed rebuild problem on 64bit archs.
  121. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.17-1.1
  122. - rebuilt for new gcc4.1 snapshot and glibc changes
  123. * Mon Nov 07 2005 Phil Knirsch <pknirsch@redhat.com> 1.17-1
  124. - Update to sg3-utils-1.17
  125. - Split package up into 3 subpackages: sg3_utils, devel and libs
  126. - Some minor updates to the specfile
  127. * Wed Mar 02 2005 Phil Knirsch <pknirsch@redhat.com> 1.06-5
  128. - bump release and rebuild with gcc 4
  129. * Fri Feb 18 2005 Phil Knirsch <pknirsch@redhat.com> 1.06-4
  130. - rebuilt
  131. * Tue Aug 03 2004 Phil Knirsch <pknirsch@redhat.com> 1.06-3
  132. - rebuilt
  133. * Thu Mar 11 2004 Tim Powers <timp@redhat.com> 1.06-2
  134. - rebuild
  135. * Wed Feb 18 2004 Phil Knirsch <pknirsch@redhat.com> 1.06-1
  136. - Initial version for RHEL3 U2.
  137. * Fri Jan 09 2004 - dgilbert@interlog.com
  138. - sg3_utils.spec for mandrake; more sginfo work, sg_scan, sg_logs
  139. * sg3_utils-1.06
  140. * Wed Nov 12 2003 - dgilbert@interlog.com
  141. - sg_readcap: sizes; sg_logs: double fetch; sg_map 256 sg devices; sginfo
  142. * sg3_utils-1.05
  143. * Tue May 13 2003 - dgilbert@interlog.com
  144. - default sg_turs '-n=' to 1, sg_logs gets '-t' for temperature, CREDITS
  145. * sg3_utils-1.04
  146. * Wed Apr 02 2003 - dgilbert@interlog.com
  147. - 6 byte CDBs for sg_modes, sg_start on block devs, sg_senddiag, man pages
  148. * sg3_utils-1.03
  149. * Wed Jan 01 2003 - dgilbert@interlog.com
  150. - interwork with block SG_IO, fix in sginfo, '-t' for sg_turs
  151. * sg3_utils-1.02
  152. * Wed Aug 14 2002 - dgilbert@interlog.com
  153. - raw switch in sg_inq
  154. * sg3_utils-1.01
  155. * Sun Jul 28 2002 - dgilbert@interlog.com
  156. - decode sg_logs pages, add dio to sgm_dd, drop "gen=1" arg, "of=/dev/null"
  157. * sg3_utils-1.00
  158. * Sun Mar 17 2002 - dgilbert@interlog.com
  159. - add sg_modes+sg_logs for sense pages, expand sg_inq, add fua+sync to sg_dd++
  160. * sg3_utils-0.99
  161. * Sat Feb 16 2002 - dgilbert@interlog.com
  162. - resurrect sg_reset; snprintf cleanup, time,gen+cdbsz args to sg_dd++
  163. * sg3_utils-0.98
  164. * Sun Dec 23 2001 - dgilbert@interlog.com
  165. - move isosize to archive directory; now found in util-linux-2.10s and later
  166. * sg3_utils-0.97
  167. * Fri Dec 21 2001 - dgilbert@interlog.com
  168. - add sgm_dd, sg_read, sg_simple4 and sg_simple16 [add mmap-ed IO support]
  169. * sg3_utils-0.96
  170. * Sat Sep 15 2001 - dgilbert@interlog.com
  171. - sg_map can do inquiry; sg_dd, sgp_dd + sgq_dd dio help
  172. * sg3_utils-0.95
  173. * Thu Apr 19 2001 - dgilbert@interlog.com
  174. - add sg_start, improve sginfo and sg_map [Kurt Garloff]
  175. * sg3_utils-0.94
  176. * Mon Mar 5 2001 - dgilbert@interlog.com
  177. - add scsi_devfs_scan, add sg_include.h, 'coe' more general in sgp_dd
  178. * sg3_utils-0.93
  179. * Tue Jan 16 2001 - dgilbert@interlog.com
  180. - clean sg_err.h include dependencies, bug fixes, Makefile in archive directory
  181. * sg3_utils-0.92
  182. * Thu Dec 21 2000 - dgilbert@interlog.com
  183. - signals for sg_dd, man pages and additions for sg_rbuf and isosize
  184. * sg3_utils-0.91
  185. * Mon Dec 11 2000 - dgilbert@interlog.com
  186. - Initial creation of package, containing
  187. * sg3_utils-0.90