ethtool/ethtool.spec
Petr Uzel 31653cb6a1 - Update to new upstream release 3.6
* Feature: Allow setting MDI-X state (-s option)
  * Fix: Preserve pause advertising bits when setting speed and
    duplex with autoneg on (-s option)
  * Fix: Don't call ioctl to set EEE parameters if they are the
    same as the current parameters (--set-eee option)

OBS-URL: https://build.opensuse.org/package/show/network:utilities/ethtool?expand=0&rev=34
2012-10-08 06:56:17 +00:00

62 lines
1.8 KiB
RPMSpec

#
# spec file for package ethtool
#
# Copyright (c) 2012 SUSE LINUX Products 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: ethtool
Version: 3.6
Release: 0
Summary: Examine and Tune Ethernet-Based Network Interfaces
License: GPL-2.0
Group: Productivity/Networking/Diagnostic
Url: http://kernel.org/pub/software/network/ethtool/
#Freecode-URL: https://freecode.com/projects/ethtool
Source: http://kernel.org/pub/software/network/ethtool/%{name}-%{version}.tar.xz
Source2: http://kernel.org/pub/software/network/ethtool/%{name}-%{version}.tar.sign
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: xz
%description
Ethtool is a small utility for examining and tuning ethernet-based
network interfaces. See the man page for more details.
%prep
%setup -q
%build
export CFLAGS="%{optflags} -W -Wall -Wstrict-prototypes -Wformat-security -Wpointer-arith"
%configure
make %{?_smp_mflags}
%install
%make_install
#UsrMerge
mkdir $RPM_BUILD_ROOT/sbin
ln -sf %{_sbindir}/ethtool $RPM_BUILD_ROOT/sbin
#EndUserMerge
%files
%defattr(-,root,root)
#UsrMerge
/sbin/ethtool
#EndUserMerge
%{_sbindir}/ethtool
%{_mandir}/man8/ethtool.8*
%doc AUTHORS COPYING NEWS README ChangeLog
%changelog