rename patches and fix one fd leak in sysfs_write_attr(). Fix issue: https://gitee.com/src-openeuler/hdparm/issues/I4S2C0 Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com> (cherry picked from commit 8f2ce8643ae9257830d4e27cedd46bca27aafd50)
77 lines
1.8 KiB
RPMSpec
77 lines
1.8 KiB
RPMSpec
Name: hdparm
|
|
Version: 9.58
|
|
Release: 3
|
|
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
|
|
Patch2: 0002-hdparam-Remove-security_password-printing.patch
|
|
Patch3: 0003-hdparm-fix-fd-leak-in-sysfs_write_attr.patch
|
|
|
|
BuildRequires: gcc git
|
|
|
|
%description
|
|
hdparm - get/set ATA/SATA drive parameters under Linux.
|
|
|
|
%package help
|
|
Summary: Include man page for hdparm utility
|
|
Requires: man
|
|
BuildArch: noarch
|
|
|
|
%description help
|
|
This package contains the man page for hdparm.
|
|
|
|
%prep
|
|
%autosetup -n %{name}-%{version} -S git -p1
|
|
|
|
%build
|
|
CFLAGS="$RPM_OPT_FLAGS" %make_build STRIP=/bin/true LDFLAGS="$RPM_LD_FLAGS"
|
|
|
|
%install
|
|
mkdir -p $RPM_BUILD_ROOT/sbin
|
|
install -c -m 755 hdparm $RPM_BUILD_ROOT/sbin/hdparm
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8
|
|
install -c -m 644 hdparm.8 $RPM_BUILD_ROOT/%{_mandir}/man8
|
|
|
|
%files
|
|
%doc README.acoustic
|
|
%license LICENSE.TXT
|
|
/sbin/hdparm
|
|
|
|
%files help
|
|
%{_mandir}/man8/hdparm.8*
|
|
|
|
%changelog
|
|
* Tue Mar 01 2022 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 9.58-3
|
|
- rename patches and fix one fd leak in sysfs_write_attr()
|
|
|
|
* Sat Jan 22 2022 linfeilong<linfeilong@huawei.com> - 9.58-2
|
|
- Type:bugfix
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:delete password print for security
|
|
|
|
* Tue Apr 14 2020 linfeilong<linfeilong@huawei.com> - 9.58-1
|
|
- Type:enhancement
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:Update package to 9.58
|
|
|
|
* Tue Jan 7 2020 openEuler Buildteam <buildteam@openeuler.org> - 9.56-4
|
|
- Type:enhancement
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:Update package
|
|
|
|
* Fri Aug 30 2019 louhongxiang <louhongxiang@huawei.com> - 9.56-3
|
|
- Type:enhancemnet
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:openEuler Debranding
|
|
|
|
* Wed Aug 21 2019 wubo <wubo40@huawei.com> - 9.56-2
|
|
- Package init and change patch name
|
|
|