hdparm/hdparm.spec
linfeilong835 5080b949db update hdparm.spec.
(cherry picked from commit ad12631fbfdf326846731a544f04582658354889)
2022-01-22 16:19:56 +08:00

73 lines
1.7 KiB
RPMSpec

Name: hdparm
Version: 9.58
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
Patch9000: 9000-hdparm-fallocate-close-fd.patch
Patch9001: 9001-hdparam-Remove-security_password-printing.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
* 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