2007-01-16 00:16:28 +01:00
|
|
|
#
|
2011-01-14 02:36:39 +01:00
|
|
|
# spec file for package hdparm
|
2007-01-16 00:16:28 +01:00
|
|
|
#
|
2020-11-30 19:11:52 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2007-01-16 00:16:28 +01:00
|
|
|
#
|
2008-08-14 02:57:39 +02:00
|
|
|
# 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.
|
|
|
|
|
2019-02-11 11:40:03 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:16:28 +01:00
|
|
|
#
|
|
|
|
|
2008-02-22 01:29:24 +01:00
|
|
|
|
2007-01-16 00:16:28 +01:00
|
|
|
Name: hdparm
|
2019-02-11 11:40:03 +01:00
|
|
|
Version: 9.58
|
2012-01-08 20:53:22 +01:00
|
|
|
Release: 0
|
2010-07-22 13:13:39 +02:00
|
|
|
Summary: A Program to get and set hard disk parameters
|
2012-02-19 07:57:16 +01:00
|
|
|
License: SUSE-Permissive
|
2012-01-08 20:53:22 +01:00
|
|
|
Group: Hardware/Other
|
2020-11-30 19:11:52 +01:00
|
|
|
URL: http://sourceforge.net/projects/hdparm/
|
2015-06-24 18:18:49 +02:00
|
|
|
Source: http://downloads.sf.net/hdparm/%{name}-%{version}.tar.gz
|
2010-07-22 13:13:39 +02:00
|
|
|
Patch1: hdparm-nostrip.patch
|
|
|
|
Patch2: hdparm-wiper-warn.patch
|
|
|
|
Patch3: hdparm-leak-fix.patch
|
2014-11-25 08:49:22 +01:00
|
|
|
Patch4: hdparm-9.43-fix-bashisms.patch
|
2012-11-28 09:47:00 +01:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig(udev)
|
2016-08-07 14:13:45 +02:00
|
|
|
Requires(post): coreutils
|
2015-06-24 18:18:49 +02:00
|
|
|
Provides: base:/sbin/hdparm
|
2014-09-25 07:47:51 +02:00
|
|
|
|
2007-01-16 00:16:28 +01:00
|
|
|
%description
|
|
|
|
A shell utility to access and tune the ioctl features of the Linux IDE
|
|
|
|
driver and IDE drives.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch1
|
2009-09-21 21:04:36 +02:00
|
|
|
%patch2 -p1
|
2018-10-23 09:14:51 +02:00
|
|
|
%patch3 -p1
|
2014-11-25 08:49:22 +01:00
|
|
|
%patch4 -p1
|
2007-01-16 00:16:28 +01:00
|
|
|
|
|
|
|
%build
|
2015-06-24 18:18:49 +02:00
|
|
|
make %{?_smp_mflags} CFLAGS="%{optflags} -Wall -Wstrict-prototypes" LDFLAGS= CC="gcc"
|
2010-03-10 17:55:38 +01:00
|
|
|
cp -p wiper/README.txt README.wiper
|
2007-01-16 00:16:28 +01:00
|
|
|
|
|
|
|
%install
|
2015-06-24 18:18:49 +02:00
|
|
|
mkdir -p "%{buildroot}%{_mandir}/man8"
|
|
|
|
install -d "%{buildroot}/%{_sbindir}"
|
|
|
|
%make_install binprefix="%{_prefix}"
|
2007-01-16 00:16:28 +01:00
|
|
|
mv contrib/README contrib/README.contrib
|
2015-06-24 18:18:49 +02:00
|
|
|
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}"
|
2020-11-30 19:11:52 +01:00
|
|
|
%if !0%{?usrmerged}
|
2015-06-24 18:18:49 +02:00
|
|
|
mkdir -p "%{buildroot}/sbin"
|
|
|
|
ln -sf %{_sbindir}/wiper.sh "%{buildroot}/sbin"
|
|
|
|
ln -sf %{_sbindir}/hdparm "%{buildroot}/sbin"
|
2020-11-30 19:11:52 +01:00
|
|
|
%endif
|
2007-01-16 00:16:28 +01:00
|
|
|
|
|
|
|
%files
|
2009-09-21 21:04:36 +02:00
|
|
|
%doc Changelog README.acoustic contrib/README.contrib README.wiper
|
2018-04-22 21:26:30 +02:00
|
|
|
%{_mandir}/man8/hdparm.8%{?ext_man}
|
2020-11-30 19:11:52 +01:00
|
|
|
%if !0%{?usrmerged}
|
2007-01-16 00:16:28 +01:00
|
|
|
/sbin/hdparm
|
2009-09-21 21:04:36 +02:00
|
|
|
/sbin/wiper.sh
|
2020-11-30 19:11:52 +01:00
|
|
|
%endif
|
2012-02-17 15:33:01 +01:00
|
|
|
%{_sbindir}/hdparm
|
|
|
|
%{_sbindir}/wiper.sh
|
2015-06-24 18:18:49 +02:00
|
|
|
%{_libexecdir}/hdparm
|
2007-01-16 00:16:28 +01:00
|
|
|
|
2007-04-29 11:57:15 +02:00
|
|
|
%changelog
|