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