forked from pool/hdparm
Kristyna Streitova
e1e6963521
- update to version 9.56 * 9.56 - fixed byte order for --Istdout so that --Istdin can grok it - added --Iraw for raw binary output of IDENTIFY data to a file * 9.55 - added #include <sys/sysmacros.h> for major()/minor() macros * 9.54 - Partial revert of Jmicron changes, from Jan Friesse. * 9.53 - Read Drive Capacity fixes from Iestyn Walters. - SET MAX ADDRESS fixes from Tom Yan <tom.ty89@gmail.com> - added --security-prompt-for-password to --security-help output - fwdownload changes from Jihoon Lee. OBS-URL: https://build.opensuse.org/request/show/599367 OBS-URL: https://build.opensuse.org/package/show/Base:System/hdparm?expand=0&rev=86
78 lines
2.3 KiB
RPMSpec
78 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package hdparm
|
|
#
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: hdparm
|
|
Version: 9.56
|
|
Release: 0
|
|
Summary: A Program to get and set hard disk parameters
|
|
License: SUSE-Permissive
|
|
Group: Hardware/Other
|
|
Url: http://sourceforge.net/projects/hdparm/
|
|
Source: http://downloads.sf.net/hdparm/%{name}-%{version}.tar.gz
|
|
Patch1: hdparm-nostrip.patch
|
|
Patch2: hdparm-wiper-warn.patch
|
|
Patch3: hdparm-leak-fix.patch
|
|
Patch4: hdparm-9.43-fix-bashisms.patch
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pkgconfig(udev)
|
|
Requires(post): coreutils
|
|
Provides: base:/sbin/hdparm
|
|
|
|
%description
|
|
A shell utility to access and tune the ioctl features of the Linux IDE
|
|
driver and IDE drives.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch1
|
|
%patch2 -p1
|
|
%patch3
|
|
%patch4 -p1
|
|
|
|
%build
|
|
make %{?_smp_mflags} CFLAGS="%{optflags} -Wall -Wstrict-prototypes" LDFLAGS= CC="gcc"
|
|
cp -p wiper/README.txt README.wiper
|
|
|
|
%install
|
|
mkdir -p "%{buildroot}%{_mandir}/man8"
|
|
install -d "%{buildroot}/%{_sbindir}"
|
|
%make_install binprefix="%{_prefix}"
|
|
mv contrib/README contrib/README.contrib
|
|
install -d "%{buildroot}%{_libexecdir}/hdparm"
|
|
install -m 755 contrib/idectl "%{buildroot}%{_libexecdir}/hdparm"
|
|
install -m 755 contrib/ultrabayd "%{buildroot}%{_libexecdir}/hdparm"
|
|
install -m 755 wiper/wiper.sh "%{buildroot}/%{_sbindir}"
|
|
#UsrMerge
|
|
mkdir -p "%{buildroot}/sbin"
|
|
ln -sf %{_sbindir}/wiper.sh "%{buildroot}/sbin"
|
|
ln -sf %{_sbindir}/hdparm "%{buildroot}/sbin"
|
|
#EndUsrMerge
|
|
|
|
%files
|
|
%doc Changelog README.acoustic contrib/README.contrib README.wiper
|
|
%{_mandir}/man8/hdparm.8%{?ext_man}
|
|
#UsrMerge
|
|
/sbin/hdparm
|
|
/sbin/wiper.sh
|
|
#EndUserMerge
|
|
%{_sbindir}/hdparm
|
|
%{_sbindir}/wiper.sh
|
|
%{_libexecdir}/hdparm
|
|
|
|
%changelog
|