* Thu Apr 15 2021 Tomas Bzatek <tbzatek@redhat.com> - 9.60-2
- Move hdparm binary to /usr/sbin Resolves: #1947860
This commit is contained in:
parent
4ff974e384
commit
94db5c810c
17
hdparm.spec
17
hdparm.spec
@ -1,7 +1,7 @@
|
||||
Summary: A utility for displaying and/or setting hard disk parameters
|
||||
Name: hdparm
|
||||
Version: 9.60
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: BSD
|
||||
URL: https://sourceforge.net/projects/%{name}/
|
||||
Source: https://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
||||
@ -14,6 +14,8 @@ Patch4: %{name}-9.54-resourceleak-fixes-2.patch
|
||||
BuildRequires: gcc
|
||||
BuildRequires: make
|
||||
|
||||
Provides: /sbin/hdparm
|
||||
|
||||
%description
|
||||
Hdparm is a useful system utility for setting (E)IDE hard drive
|
||||
parameters. For example, hdparm can be used to tweak hard drive
|
||||
@ -26,19 +28,22 @@ performance and to spin down hard drives for power conservation.
|
||||
CFLAGS="$RPM_OPT_FLAGS" %make_build STRIP=/bin/true LDFLAGS="$RPM_LD_FLAGS"
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT/sbin
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8
|
||||
install -c -m 755 hdparm $RPM_BUILD_ROOT/sbin/hdparm
|
||||
install -c -m 644 hdparm.8 $RPM_BUILD_ROOT/%{_mandir}/man8
|
||||
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
|
||||
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8
|
||||
install -c -m 755 hdparm $RPM_BUILD_ROOT%{_sbindir}/hdparm
|
||||
install -c -m 644 hdparm.8 $RPM_BUILD_ROOT%{_mandir}/man8
|
||||
|
||||
|
||||
%files
|
||||
%doc hdparm.lsm Changelog README.acoustic TODO
|
||||
%license LICENSE.TXT
|
||||
/sbin/hdparm
|
||||
%{_sbindir}/hdparm
|
||||
%{_mandir}/man8/hdparm.8*
|
||||
|
||||
%changelog
|
||||
* Thu Apr 15 2021 Tomas Bzatek <tbzatek@redhat.com> - 9.60-2
|
||||
- Move hdparm binary to /usr/sbin
|
||||
|
||||
* Fri Apr 09 2021 Tomas Bzatek <tbzatek@redhat.com> - 9.60-1
|
||||
- New upstream version 9.60 (#1947860)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user