LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File ethtool.spec of Package ethtool (Project openSUSE:Leap:15.1:Update)

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

# ---------------------------------------------------------------------------
# Contents of this package is exported from git repository; please submit
# your changes via https://gitlab.suse.de/mkubecek/ethtool-source or
# gitlab@gitlab.suse.de:mkubecek/ethtool-source.git rather than to IBS.
# ---------------------------------------------------------------------------

Name:           ethtool
Version:        4.13
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/

#Git-Clone:	git://git.kernel.org/pub/scm/network/ethtool/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
Source3:        %{name}.keyring

Patch1:         ethtool-fix-MFLCN-register-dump-for-82599-and-newer.patch
Patch2:         ethtool-correct-display-of-VF-when-showing-vf-queue-.patch
Patch3:         ethtool-show-VF-and-queue-in-the-help-for-N.patch
Patch4:         ethtool-correct-VF-index-values-for-the-ring_cookie-.patch
Patch5:         ethtool-fix-stack-clash-in-do_get_phy_tunable-and-do.patch
Patch6:         Revert-ethtool-Add-DMA-Coalescing-support.patch
Patch7:         ethtool-copy.h-sync-with-net-next.patch
# SLE15-SP1
Patch51:        ethtool-copy.h-sync-with-net-next-2.patch
Patch52:        ethtool-add-support-for-extra-RSS-contexts-and-RSS-s.patch
Patch53:        ethtool.8-Document-RSS-context-control-and-RSS-filte.patch
Patch54:        ethtool-don-t-fall-back-to-grxfhindir-when-context-w.patch
Patch55:        ethtool-Support-for-FEC-encoding-control.patch
Patch56:        ethtool-support-combinations-of-FEC-modes.patch
Patch57:        ethtool-better-syntax-for-combinations-of-FEC-modes.patch

Ethtool is a small utility for examining and tuning ethernet-based
network interfaces.  See the man page for more details.

%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch51 -p1
%patch52 -p1
%patch53 -p1
%patch54 -p1
%patch55 -p1
%patch56 -p1
%patch57 -p1

export CFLAGS="%optflags -W -Wall -Wstrict-prototypes -Wformat-security -Wpointer-arith"
make %{?_smp_mflags}

make install DESTDIR="%buildroot"

%license COPYING