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