File ethtool.spec of Package ethtool

#
# spec file for package ethtool (Version 6)
#
# Copyright (c) 2010 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/
#

# norootforbuild


Name:           ethtool
License:        GPLv2+
Group:          Productivity/Networking/Diagnostic
AutoReqProv:    on
Summary:        Examine and Tune Ethernet-Based Network Interfaces
Version:        6
Release:        80
Url:            http://git.kernel.org/?p=network/ethtool/ethtool.git
Source:         %{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Patch0:         ethtool-cmd-speed-use-full-variable.patch
Patch1:         ethtool-LRO_support.patch
#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

%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
%patch0 -p1
%patch1
%patch2 -p1
%patch3 -p1

%build
%{suse_update_config -f}
autoreconf -fi
export CFLAGS="$RPM_OPT_FLAGS -W -Wall -Wstrict-prototypes -Wformat-security -Wpointer-arith"
%configure --sbindir=/sbin
make %{?_smp_mflags}

%install
%makeinstall

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
/sbin/ethtool
%{_mandir}/man8/ethtool.8*
%doc AUTHORS COPYING NEWS README ChangeLog

%changelog
openSUSE Build Service is sponsored by