File idle3-tools.spec of Package idle3-tools
#
# spec file for package idle3-tools
#
# Copyright (c) 2016 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: idle3-tools
Version: 0.9.1
Release: %mkrel 1
Summary: Utility for WD Hard Disks
License: GPL-3.0
Group: Hardware/Other
Url: http://idle3-tools.sourceforge.net/
Source0: %{name}-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Idle3-tools provides a linux/unix utility that can disable, get and set the value of the infamous idle3 timer found on recent Western Digital Hard Disk Drives.
It can be used as an alternative to the official wdidle3.exe proprietary utility, without the need to reboot in a DOS environment.
A power off/on cycle of the drive will still be mandatory for new settings to be taken into account.
%global debug_package %{nil}
%prep
%setup -q
%build
make %{?_smp_mflags}
%install
install -s -D -m 755 idle3ctl %{buildroot}/%{_sbindir}/idle3ctl
gzip -9 idle3ctl.8
install -D -m 644 idle3ctl.8.gz %{buildroot}/%{_mandir}/man8/idle3ctl.8.gz
%files
%defattr(-,root,root)
%{_sbindir}/*
%{_mandir}/man8/*
%doc COPYING
%changelog