2007-01-15 23:11:48 +00:00
|
|
|
#
|
2007-07-27 13:07:24 +00:00
|
|
|
# spec file for package ethtool (Version 6)
|
2007-01-15 23:11:48 +00:00
|
|
|
#
|
2010-01-11 15:51:18 +00:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:11:48 +00:00
|
|
|
#
|
2008-09-12 22:59:40 +00: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.
|
|
|
|
|
2007-01-15 23:11:48 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-09-12 22:59:40 +00:00
|
|
|
|
2007-01-15 23:11:48 +00:00
|
|
|
Name: ethtool
|
2009-12-04 11:27:18 +00:00
|
|
|
License: GPLv2+
|
2007-01-15 23:11:48 +00:00
|
|
|
Group: Productivity/Networking/Diagnostic
|
2007-12-19 14:46:00 +00:00
|
|
|
AutoReqProv: on
|
2007-01-15 23:11:48 +00:00
|
|
|
Summary: Examine and Tune Ethernet-Based Network Interfaces
|
2007-07-27 13:07:24 +00:00
|
|
|
Version: 6
|
2010-01-11 15:51:18 +00:00
|
|
|
Release: 80
|
2008-11-04 16:34:03 +00:00
|
|
|
Url: http://git.kernel.org/?p=network/ethtool/ethtool.git
|
2007-01-15 23:11:48 +00:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-11-04 16:34:03 +00:00
|
|
|
Patch0: ethtool-cmd-speed-use-full-variable.patch
|
|
|
|
Patch1: ethtool-LRO_support.patch
|
2009-12-04 11:27:18 +00:00
|
|
|
#PATCH-FIX-UPSTREAM Some NICs report speeds other than 10, 100, 1000, 10000 to user land. At least display them properly (FATE#305494)
|
|
|
|
Patch2: ethtool-cmd-speed-display-all.patch
|
|
|
|
#PATCH-FIX-UPSTREAM fix parse of 10Gbe option (bnc#557016)
|
|
|
|
Patch3: ethtool-speed-parse.patch
|
2007-01-15 23:11:48 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Ethtool is a small utility for examining and tuning ethernet-based
|
|
|
|
network interfaces. See the man page for more details.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
David Miller <davem@redhat.com>
|
|
|
|
Jakub Jelinek <jj@ultra.linux.cz>
|
|
|
|
Jeff Garzik <jgarzik@mandrakesoft.com>
|
|
|
|
Tim Hockin <thockin@sun.com>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2008-11-04 16:34:03 +00:00
|
|
|
%patch0 -p1
|
|
|
|
%patch1
|
2009-12-04 11:27:18 +00:00
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
2007-01-15 23:11:48 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%{suse_update_config -f}
|
2007-12-19 14:46:00 +00:00
|
|
|
autoreconf -fi
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -W -Wall -Wstrict-prototypes -Wformat-security -Wpointer-arith"
|
|
|
|
%configure --sbindir=/sbin
|
2010-01-11 15:51:18 +00:00
|
|
|
make %{?_smp_mflags}
|
2007-01-15 23:11:48 +00:00
|
|
|
|
|
|
|
%install
|
2007-12-19 14:46:00 +00:00
|
|
|
%makeinstall
|
2007-01-15 23:11:48 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2007-12-19 14:46:00 +00:00
|
|
|
/sbin/ethtool
|
2007-01-15 23:11:48 +00:00
|
|
|
%{_mandir}/man8/ethtool.8*
|
2007-12-19 14:46:00 +00:00
|
|
|
%doc AUTHORS COPYING NEWS README ChangeLog
|
2007-01-15 23:11:48 +00:00
|
|
|
|
2007-04-12 15:18:37 +00:00
|
|
|
%changelog
|