xref: /aosp_15_r20/external/sg3_utils/sg3_utils.spec (revision 44704f698541f6367e81f991ef8bb54ccbf3fc18)
1Summary: Utilities for devices that use SCSI command sets
2Name: sg3_utils
3Version: 1.48
4# Release: 1%{?dist}
5Release: 1
6License: GPL
7Group: Utilities/System
8Source: https://sg.danny.cz/sg/p/sg3_utils-%{version}.tar.gz
9Url: https://sg.danny.cz/sg/sg3_utils.html
10Provides: sg_utils
11# BuildRequires: libtool
12BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13Packager: Douglas Gilbert <dgilbert@interlog.com>
14
15%description
16Collection of Linux utilities for devices that use the SCSI command set.
17Includes utilities to copy data based on "dd" syntax and semantics (called
18sg_dd, sgp_dd and sgm_dd); check INQUIRY data and VPD pages (sg_inq); check
19mode and log pages (sginfo, sg_modes and sg_logs); spin up and down
20disks (sg_start); do self tests (sg_senddiag); and various other functions.
21See the README, ChangeLog and COVERAGE files. Requires the linux kernel 2.4
22series or later. In the 2.4 series SCSI generic device names (e.g. /dev/sg0)
23must be used. In the 2.6 series and later other device names may be used as
24well (e.g. /dev/sda). Also some support for NVMe devices, especially with
25sg_ses on NVMe enclosures.
26
27Warning: Some of these tools access the internals of your system
28and the incorrect usage of them may render your system inoperable.
29
30%package libs
31Summary: Shared library for %{name}
32Group: System/Libraries
33
34%description libs
35This package contains the shared library for %{name}.
36
37%package devel
38Summary: Static library and header files for the sgutils library
39Group: Development/C
40Requires: %{name}-libs = %{version}-%{release}
41
42%description devel
43This package contains the static %{name} library and its header files for
44developing applications.
45
46%prep
47%setup -q
48
49%build
50%configure
51
52# Don't use rpath!
53sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
54sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
55
56%install
57if [ "$RPM_BUILD_ROOT" != "/" ]; then
58        rm -rf $RPM_BUILD_ROOT
59fi
60
61make install \
62        DESTDIR=$RPM_BUILD_ROOT
63
64%clean
65if [ "$RPM_BUILD_ROOT" != "/" ]; then
66        rm -rf $RPM_BUILD_ROOT
67fi
68
69%files
70%defattr(-,root,root)
71%doc AUTHORS ChangeLog COPYING COVERAGE CREDITS INSTALL NEWS README README.sg_start
72%attr(755,root,root) %{_bindir}/*
73%{_mandir}/man8/*
74
75%files libs
76%defattr(-,root,root)
77%{_libdir}/*.so.*
78
79%files devel
80%defattr(-,root,root)
81%{_includedir}/scsi/*.h
82%{_libdir}/*.so
83%{_libdir}/*.a
84
85%changelog
86* Sat Nov 12 2022 - dgilbert at interlog dot com
87- track t10 changes
88  * sg3_utils-1.48
89
90* Tue Nov 09 2021 - dgilbert at interlog dot com
91- track t10 changes
92  * sg3_utils-1.47
93
94* Mon Mar 29 2021 - dgilbert at interlog dot com
95- track t10 changes
96  * sg3_utils-1.46
97
98* Sat Feb 29 2020 - dgilbert at interlog dot com
99- track t10 changes
100  * sg3_utils-1.45
101
102* Wed Sep 12 2018 - dgilbert at interlog dot com
103- track t10 changes
104  * sg3_utils-1.44
105
106* Tue Sep 11 2018 - dgilbert at interlog dot com
107- track t10 changes
108  * sg3_utils-1.43
109
110* Wed Feb 17 2016 - dgilbert at interlog dot com
111- track t10 changes
112  * sg3_utils-1.42
113
114* Tue Apr 28 2015 - dgilbert at interlog dot com
115- track t10 changes
116  * sg3_utils-1.41
117
118* Mon Nov 10 2014 - dgilbert at interlog dot com
119- track t10 changes
120  * sg3_utils-1.40
121
122* Thu Jun 12 2014 - dgilbert at interlog dot com
123- track t10 changes
124  * sg3_utils-1.39
125
126* Tue Apr 01 2014 - dgilbert at interlog dot com
127- track t10 changes
128  * sg3_utils-1.38
129
130* Mon Oct 14 2013 - dgilbert at interlog dot com
131- track t10 changes
132  * sg3_utils-1.37
133
134* Fri May 31 2013 - dgilbert at interlog dot com
135- track t10 changes
136  * sg3_utils-1.36
137
138* Thu Jan 17 2013 - dgilbert at interlog dot com
139- add sg_compare_and_write, track t10 changes
140  * sg3_utils-1.35
141
142* Sat Oct 13 2012 - dgilbert at interlog dot com
143- add sg_xcopy and sg_copy_results; track t10 changes
144  * sg3_utils-1.34
145
146* Wed Jan 18 2012 - dgilbert at interlog dot com
147- track t10 changes
148  * sg3_utils-1.33
149
150* Wed Jun 22 2011 - dgilbert at interlog dot com
151- track t10 changes
152  * sg3_utils-1.32
153
154* Wed Feb 16 2011 - dgilbert at interlog dot com
155- add sg_decode_sense; track t10 changes
156  * sg3_utils-1.31
157
158* Fri Nov 05 2010 - dgilbert at interlog dot com
159- add sg_referrals; track t10 changes
160  * sg3_utils-1.30
161
162* Wed Mar 31 2010 - dgilbert at interlog dot com
163- track t10 changes
164  * sg3_utils-1.29
165
166* Fri Oct 02 2009 - dgilbert at interlog dot com
167- add sg_get_lba_status, sg_unmap, sg_read_block_limits
168  * sg3_utils-1.28
169
170* Sat Apr 11 2009 - dgilbert at interlog dot com
171- add sg_write_same; sg_dd split; spc4r18 sync
172  * sg3_utils-1.27
173
174* Wed Jun 25 2008 - dgilbert at interlog dot com
175- add sg_sat_phy_event, sync with drafts prior to this date
176  * sg3_utils-1.26
177
178* Tue Oct 16 2007 - dgilbert at interlog dot com
179- add sg_sat_set_features, sg_stpg, sg_safte; sg_dd oflag=sparse,null
180  * sg3_utils-1.25
181
182* Mon May 07 2007 - dgilbert at interlog dot com
183- add sg_raw; sg_rtpg, sg_log, sg_inq and sg_format updates
184  * sg3_utils-1.24
185
186* Wed Jan 31 2007 - dgilbert at interlog dot com
187- add sg_read_buffer + sg_write_buffer
188  * sg3_utils-1.23
189
190* Mon Oct 16 2006 - dgilbert at interlog dot com
191- add sg_sat_identify, expand sg_format and sg_requests
192  * sg3_utils-1.22
193
194* Thu Jul 06 2006 - dgilbert at interlog dot com
195- add sg_vpd and sg_rdac, uniform exit statuses
196  * sg3_utils-1.21
197
198* Tue Apr 18 2006 - dgilbert at interlog dot com
199- sg_logs: sas port specific page decoding, sg*_dd updates
200  * sg3_utils-1.20
201
202* Fri Jan 27 2006 - dgilbert at interlog dot com
203- sg_get_config: resync features with mmc5 rev 1
204  * sg3_utils-1.19
205
206* Fri Nov 18 2005 - dgilbert at interlog dot com
207- add sg_map26; sg_inq '-rr' option to play with hdparm
208  * sg3_utils-1.18
209
210* Thu Sep 22 2005 - dgilbert at interlog dot com
211- add ATA information VPD page to sg_inq
212  * sg3_utils-1.17
213
214* Wed Aug 10 2005 - dgilbert at interlog dot com
215- add sg_ident, sg_inq VPD page extensions
216  * sg3_utils-1.16
217
218* Sun Jun 05 2005 - dgilbert at interlog dot com
219- use O_NONBLOCK on all fds that use SG_IO ioctl
220  * sg3_utils-1.15
221
222* Fri May 06 2005 - dgilbert at interlog dot com
223- produce libsgutils (+ -devel variant) as well as sg3_utils binary rpm
224  * sg3_utils-1.14
225
226* Sun Mar 13 2005 - dgilbert at interlog dot com
227- add sg_format, sg_dd extensions
228  * sg3_utils-1.13
229
230* Fri Jan 21 2005 - dgilbert at interlog dot com
231- add sg_wr_mode, sg_rtpg + sg_reassign; sginfo sas tweaks
232  * sg3_utils-1.12
233
234* Fri Nov 26 2004 - dgilbert at interlog dot com
235- add sg_sync, sg_prevent and sg_get_config; fix sg_requests
236  * sg3_utils-1.11
237
238* Sat Oct 30 2004 - dgilbert at interlog dot com
239- fix read capacity (10+16), add sg_luns
240  * sg3_utils-1.10
241
242* Thu Oct 21 2004 - dgilbert at interlog dot com
243- sg_requests, sg_ses, sg_verify, libsgutils(sg_lib.c+sg_cmds.c), devel rpm
244  * sg3_utils-1.09
245
246* Tue Aug 31 2004 - dgilbert at interlog dot com
247- 'register+move' in sg_persist, sg_opcodes sorts, sg_write_long
248  * sg3_utils-1.08
249
250* Thu Jul 08 2004 - dgilbert at interlog dot com
251- add '-fHead' to sginfo, '-i' for sg_inq, new sg_opcodes + sg_persist
252  * sg3_utils-1.07
253
254* Mon Apr 26 2004 - dgilbert at interlog dot com
255- sg3_utils.spec for mandrake; more sginfo work, sg_scan, sg_logs
256  * sg3_utils-1.06
257
258* Wed Nov 12 2003 - dgilbert at interlog dot com
259- sg_readcap: sizes; sg_logs: double fetch; sg_map 256 sg devices; sginfo
260  * sg3_utils-1.05
261
262* Tue May 13 2003 - dgilbert at interlog dot com
263- default sg_turs '-n=' to 1, sg_logs gets '-t' for temperature, CREDITS
264  * sg3_utils-1.04
265
266* Wed Apr 02 2003 - dgilbert at interlog dot com
267- 6 byte CDBs for sg_modes, sg_start on block devs, sg_senddiag, man pages
268  * sg3_utils-1.03
269
270* Wed Jan 01 2003 - dgilbert at interlog dot com
271- interwork with block SG_IO, fix in sginfo, '-t' for sg_turs
272  * sg3_utils-1.02
273
274* Wed Aug 14 2002 - dgilbert at interlog dot com
275- raw switch in sg_inq
276  * sg3_utils-1.01
277
278* Sun Jul 28 2002 - dgilbert at interlog dot com
279- decode sg_logs pages, add dio to sgm_dd, drop "gen=1" arg, "of=/dev/null"
280  * sg3_utils-1.00
281