!9 hdparm delete -S git from %autosetup, and delete BuildRequires git
From: @chenyanpanHW Reviewed-by: @liuzhiqiang26 Signed-off-by: @liuzhiqiang26
This commit is contained in:
commit
e24c923401
@ -1,13 +1,13 @@
|
|||||||
Name: hdparm
|
Name: hdparm
|
||||||
Version: 9.58
|
Version: 9.58
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: A system utility for setting or showing hard drive parameters
|
Summary: A system utility for setting or showing hard drive parameters
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: https://sourceforge.net/projects/%{name}/
|
URL: https://sourceforge.net/projects/%{name}/
|
||||||
Source0: https://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
Source0: https://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
||||||
Patch1: 0001-hdparm-fallocate-close-fd.patch
|
Patch1: 0001-hdparm-fallocate-close-fd.patch
|
||||||
|
|
||||||
BuildRequires: gcc git
|
BuildRequires: gcc
|
||||||
|
|
||||||
%description
|
%description
|
||||||
hdparm - get/set ATA/SATA drive parameters under Linux.
|
hdparm - get/set ATA/SATA drive parameters under Linux.
|
||||||
@ -21,7 +21,7 @@ BuildArch: noarch
|
|||||||
This package contains the man page for hdparm.
|
This package contains the man page for hdparm.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{name}-%{version} -S git -p1
|
%autosetup -n %{name}-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="$RPM_OPT_FLAGS" %make_build STRIP=/bin/true LDFLAGS="$RPM_LD_FLAGS"
|
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*
|
%{_mandir}/man8/hdparm.8*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Fri Jul 17 2020 wangjun <wangjun196@huawei.com> - 9.58-1
|
||||||
- upgrade package to 9.58
|
- upgrade package to 9.58
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user