!15 sg3_utils delete -Sgit from %autosetup, and delete BuildRequires git

From: @chenyanpanHW
Reviewed-by: @liuzhiqiang26
Signed-off-by: @liuzhiqiang26
This commit is contained in:
openeuler-ci-bot 2021-07-31 08:04:30 +00:00 committed by Gitee
commit 93720c461a

View File

@ -1,6 +1,6 @@
Name: sg3_utils
Version: 1.45
Release: 3
Release: 4
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
@ -13,7 +13,7 @@ Patch3: 0003-sg3_utils-1.42-delete-lun-rescan-scsi-bus-report-error.patch
Provides: %{name}-libs
Obsoletes: %{name}-libs
BuildRequires: gcc, git
BuildRequires: gcc
%description
The sg3_utils package contains utilities that send SCSI commands to devices. As well as
@ -38,7 +38,7 @@ Requires: man
This contains man files for the using of pciutils.
%prep
%autosetup -Sgit -n %{name}-%{version}
%autosetup -n %{name}-%{version} -p1
%build
%configure --disable-static
@ -73,6 +73,9 @@ rm -rf $RPM_BUILD_ROOT/%{_libdir}/*.la
%{_mandir}/man8/*
%changelog
* Sat Jul 31 2021 chenyanpanHW <chenyanpan@huawei.com> - 1.45-4
- DESC: delete -Sgit from %autosetup, and delete BuildRequires git
* 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