2019-09-30 10:52:42 -04:00
|
|
|
Name: hdparm
|
2021-11-23 10:28:12 +08:00
|
|
|
Version: 9.62
|
2022-03-01 15:52:12 +08:00
|
|
|
Release: 3
|
2019-09-30 10:52:42 -04:00
|
|
|
Summary: A system utility for setting or showing hard drive parameters
|
|
|
|
|
License: BSD
|
|
|
|
|
URL: https://sourceforge.net/projects/%{name}/
|
2020-01-07 11:44:58 +08:00
|
|
|
Source0: https://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
2020-07-17 11:29:17 +08:00
|
|
|
Patch1: 0001-hdparm-fallocate-close-fd.patch
|
2022-01-22 02:45:19 +00:00
|
|
|
Patch2: 0002-hdparam-Remove-security_password-printing.patch
|
2022-03-01 15:52:12 +08:00
|
|
|
Patch3: 0003-hdparm-fix-fd-leak-in-sysfs_write_attr.patch
|
2019-09-30 10:52:42 -04:00
|
|
|
|
2021-07-30 22:50:04 +08:00
|
|
|
BuildRequires: gcc
|
2019-09-30 10:52:42 -04:00
|
|
|
|
|
|
|
|
%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
|
2021-07-30 22:50:04 +08:00
|
|
|
%autosetup -n %{name}-%{version} -p1
|
2019-09-30 10:52:42 -04:00
|
|
|
|
|
|
|
|
%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
|
2022-03-01 15:52:12 +08:00
|
|
|
* Tue Mar 01 2022 Zhiqiang Liu <liuzhiqiang26@huawei.com> 9.62-3
|
|
|
|
|
- fix fd leak in sysfs_write_attr()
|
|
|
|
|
|
2022-01-22 02:45:19 +00:00
|
|
|
* Sat Jan 22 2022 volcanodragon <linfeilong@huawei.com> 9.62-2
|
|
|
|
|
- delete passwd print for security
|
|
|
|
|
|
2021-11-23 10:28:12 +08:00
|
|
|
* Tue Nov 23 2021 Li Jinlin <lijinlin3@huawei.com> 9.62-1
|
|
|
|
|
- upgrade package to 9.62
|
|
|
|
|
|
2021-07-30 22:50:04 +08:00
|
|
|
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 9.58-2
|
|
|
|
|
- DESC: delete -S git from %autosetup, and delete BuildRequires git
|
|
|
|
|
|
2020-07-17 11:29:17 +08:00
|
|
|
* Fri Jul 17 2020 wangjun <wangjun196@huawei.com> - 9.58-1
|
|
|
|
|
- upgrade package to 9.58
|
|
|
|
|
|
2020-06-30 10:35:15 +08:00
|
|
|
* Tue Jun 30 2020 volcanodragon <linfeilong@openeuler.org> - 9.56-5
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:rename patches
|
|
|
|
|
|
2020-01-07 11:44:58 +08:00
|
|
|
* Tue Jan 7 2020 openEuler Buildteam <buildteam@openeuler.org> - 9.56-4
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Update package
|
|
|
|
|
|
2019-09-30 10:52:42 -04:00
|
|
|
* Fri Aug 30 2019 louhongxiang <louhongxiang@huawei.com> - 9.56-3
|
|
|
|
|
- Type:enhancemnet
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
2020-01-07 11:44:58 +08:00
|
|
|
- DESC:openEuler Debranding
|
2019-09-30 10:52:42 -04:00
|
|
|
|
|
|
|
|
* Wed Aug 21 2019 wubo <wubo40@huawei.com> - 9.56-2
|
|
|
|
|
- Package init and change patch name
|
|
|
|
|
|