2019-09-30 11:17:00 -04:00
|
|
|
Name: sg3_utils
|
2021-11-25 15:55:21 +08:00
|
|
|
Version: 1.46
|
|
|
|
|
Release: 1
|
2019-09-30 11:17:00 -04:00
|
|
|
Summary: Utilities that send SCSI commands to devices.
|
|
|
|
|
License: GPL-2.0-or-later AND BSD
|
|
|
|
|
URL: http://sg.danny.cz/sg/sg3_utils.html
|
|
|
|
|
Source0: http://sg.danny.cz/sg/p/sg3_utils-%{version}.tar.xz
|
|
|
|
|
|
2020-07-17 15:52:17 +08:00
|
|
|
Patch0: 0000-sg3_utils-1.37-rescan-scsi-findremapped-enhance.patch
|
|
|
|
|
Patch1: 0001-sg3_utils-1.37-rescan-downpress.patch
|
|
|
|
|
Patch2: 0002-bugfix-sg3_utils-fix-syntax-error.patch
|
|
|
|
|
Patch3: 0003-sg3_utils-1.42-delete-lun-rescan-scsi-bus-report-error.patch
|
2021-10-21 11:26:12 +08:00
|
|
|
Patch4: 0004-sg3_utils-fix-memset-coredump.patch
|
2020-07-17 15:52:17 +08:00
|
|
|
|
|
|
|
|
Provides: %{name}-libs
|
|
|
|
|
Obsoletes: %{name}-libs
|
2021-07-31 15:38:03 +08:00
|
|
|
BuildRequires: gcc
|
2019-09-30 11:17:00 -04:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The sg3_utils package contains utilities that send SCSI commands to devices. As well as
|
|
|
|
|
devices on transports traditionally associated with SCSI (e.g. Fibre Channel (FCP),
|
|
|
|
|
Serial Attached SCSI (SAS) and the SCSI Parallel Interface(SPI)) many other devices use
|
|
|
|
|
SCSI command sets. ATAPI cd/dvd drives and SATA disks that connect via a translation
|
|
|
|
|
layer or a bridge device are examples of devices that use SCSI command sets.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: A collection of tools that send SCSI commands to devices
|
2020-07-17 15:52:17 +08:00
|
|
|
Obsoletes: %{name}-libs
|
2019-09-30 11:17:00 -04:00
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
This subpackage contains libraries and header files for developing
|
|
|
|
|
applications that want to make use of libsgutils.
|
|
|
|
|
|
|
|
|
|
%package help
|
|
|
|
|
Summary: Including man files for pciutils
|
|
|
|
|
Requires: man
|
|
|
|
|
|
|
|
|
|
%description help
|
|
|
|
|
This contains man files for the using of pciutils.
|
|
|
|
|
|
|
|
|
|
%prep
|
2021-07-31 15:38:03 +08:00
|
|
|
%autosetup -n %{name}-%{version} -p1
|
2019-09-30 11:17:00 -04:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%configure --disable-static
|
|
|
|
|
# Don't use rpath!
|
|
|
|
|
%disable_rpath
|
|
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
2020-11-04 21:39:57 +08:00
|
|
|
%check
|
|
|
|
|
make check
|
|
|
|
|
|
2019-09-30 11:17:00 -04:00
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
install -p -m 644 doc/rescan-scsi-bus.sh.8 $RPM_BUILD_ROOT%{_mandir}/man8
|
|
|
|
|
install -p -m 755 scripts/rescan-scsi-bus.sh $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
|
( cd $RPM_BUILD_ROOT%{_bindir}; ln -sf rescan-scsi-bus.sh scsi-rescan )
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_libdir}/*.la
|
|
|
|
|
|
|
|
|
|
#Files list
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc AUTHORS BSD_LICENSE COPYING COVERAGE CREDITS ChangeLog README README.sg_start
|
|
|
|
|
%{_bindir}/*
|
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_includedir}/scsi/*.h
|
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2021-11-25 15:55:21 +08:00
|
|
|
* Thu Nov 25 2021 yanglongkang <yanglongkang@huawei.com> -1.46-1
|
|
|
|
|
- update to 1.46
|
|
|
|
|
|
2021-10-21 11:26:12 +08:00
|
|
|
* Wed Nov 3 2021 yanglongkang <yanglongkang@huawei.com> - 1.45-6
|
|
|
|
|
- sync each branch submit
|
|
|
|
|
|
|
|
|
|
* Thu Oct 21 2021 yanglongkang <yanglongkang@huawei.com> - 1.45-5
|
|
|
|
|
- solve coredump problem
|
|
|
|
|
|
2021-07-31 15:38:03 +08:00
|
|
|
* Sat Jul 31 2021 chenyanpanHW <chenyanpan@huawei.com> - 1.45-4
|
|
|
|
|
- DESC: delete -Sgit from %autosetup, and delete BuildRequires git
|
|
|
|
|
|
2020-12-10 09:32:55 +08:00
|
|
|
* Wed Nov 10 2020 haowenchao <haowenchao@huawei.com> - 1.45-3
|
|
|
|
|
- Fix grammar problems caused by patch
|
|
|
|
|
0003-sg3_utils-1.42-delete-lun-rescan-scsi-bus-report-error.patch
|
|
|
|
|
|
2020-11-04 21:39:57 +08:00
|
|
|
* Wed Nov 5 2020 lixiaokeng <lixiaokeng@huawei.com> - 1.45-2
|
|
|
|
|
- add make check
|
|
|
|
|
|
2020-07-17 15:52:17 +08:00
|
|
|
* Fri Jul 17 2020 yanglongkang <yanglongkang@huawei.com> - 1.45-1
|
|
|
|
|
- update package to 1.45
|
|
|
|
|
|
2020-06-30 09:48:39 +08:00
|
|
|
* Tue Jun 30 2020 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 1.42-12
|
|
|
|
|
- renumber patches.
|
|
|
|
|
|
2020-04-09 16:13:18 +08:00
|
|
|
* Thu Apr 09 2020 Jiangping Hu <hujp1985@foxmail.com> - 1.42-11
|
|
|
|
|
- Fix requires of devel package
|
|
|
|
|
|
2020-03-13 19:14:30 +08:00
|
|
|
* Fri Mar 13 2020 wubo <wubo40@huawei.com> - 1.42-10
|
|
|
|
|
- Type:enhancemnet
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESCi: modify rescan-scsi-bus dolunscan break to return
|
|
|
|
|
|
2019-09-30 11:17:00 -04:00
|
|
|
* Tue Sep 24 2019 wubo <wubo40@huawei.com> - 1.42-9
|
|
|
|
|
- Type:enhancemnet
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESCi: delete lun rescan scsi bus report error
|
|
|
|
|
|
|
|
|
|
* Fri Aug 23 2019 zoujing <zoujing13@huawei.com> - 1.42-8
|
|
|
|
|
- Type:enhancemnet
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESCi:openEuler Debranding
|
|
|
|
|
|
|
|
|
|
* Wed Aug 21 2019 wubo <wubo40@huawei.com> - 1.42-6.7
|
|
|
|
|
- change patch name
|
|
|
|
|
|
2020-03-13 19:14:30 +08:00
|
|
|
* Thu Jul 18 2019 wangye<wangye54@huawei.com> - 1.42-6.6
|
2019-09-30 11:17:00 -04:00
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: huawei for dolunscan
|
|
|
|
|
|
|
|
|
|
* Mon Jul 8 2019 wangye<wangye54@huawei.com> - 1.42-6.5
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: huawei break to return
|
|
|
|
|
|
|
|
|
|
* Tue Apr 16 2019 zhangyujing<zhangyujing1@huawei.com> - 1.42-6.4
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:sg inq fix potential unbounded loop in export
|
|
|
|
|
|
|
|
|
|
* Tue Apr 2 2019 guyue<guyue7@huawei.com> - 1.42-6.3
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:delete useless code
|
|
|
|
|
|
|
|
|
|
* Wed Mar 20 2019 wangjufeng<wangjufeng@huawei.com> - 1.42-6.2
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix syntax error
|
|
|
|
|
|
|
|
|
|
* Wed Jan 23 2019 huangchangyu<huangchangyu@huawei.com> - 1.42-6.1
|
|
|
|
|
- Type:enhanced
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:change patch name according to new rule
|
|
|
|
|
|
|
|
|
|
* Tue Jan 22 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.42-6
|
|
|
|
|
- Package init
|