delete -S git from %autosetup, and delete BuildRequires git

This commit is contained in:
chenyanpanHW 2021-07-30 22:50:04 +08:00
parent 4e4e37e18e
commit 6ef5591059
No known key found for this signature in database
GPG Key ID: 6DAA738A86DB45D7

View File

@ -1,13 +1,13 @@
Name: hdparm
Version: 9.58
Release: 1
Release: 2
Summary: A system utility for setting or showing hard drive parameters
License: BSD
URL: https://sourceforge.net/projects/%{name}/
Source0: https://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Patch1: 0001-hdparm-fallocate-close-fd.patch
BuildRequires: gcc git
BuildRequires: gcc
%description
hdparm - get/set ATA/SATA drive parameters under Linux.
@ -21,7 +21,7 @@ BuildArch: noarch
This package contains the man page for hdparm.
%prep
%autosetup -n %{name}-%{version} -S git -p1
%autosetup -n %{name}-%{version} -p1
%build
CFLAGS="$RPM_OPT_FLAGS" %make_build STRIP=/bin/true LDFLAGS="$RPM_LD_FLAGS"
@ -42,6 +42,9 @@ install -c -m 644 hdparm.8 $RPM_BUILD_ROOT/%{_mandir}/man8
%{_mandir}/man8/hdparm.8*
%changelog
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 9.58-2
- DESC: delete -S git from %autosetup, and delete BuildRequires git
* Fri Jul 17 2020 wangjun <wangjun196@huawei.com> - 9.58-1
- upgrade package to 9.58