File ethtool.spec of Package ethtool

# spec file for package ethtool
# Copyright (c) 2021 SUSE LLC
# 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

Name:           ethtool
Version:        5.12
Release:        0
Summary:        Utility for examining and tuning Ethernet-based network interfaces
License:        GPL-2.0-only
Group:          Productivity/Networking/Diagnostic

#Git-Clone:	git://
Source3:        %{name}.keyring
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  pkgconfig
BuildRequires:  xz
BuildRequires:  pkgconfig(libmnl)

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

%setup -q

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

make install DESTDIR="%buildroot"

%dir %{_datadir}/bash-completion
%dir %{_datadir}/bash-completion/completions
%if (0%{?suse_version} >= 1500) || (0%{?sle_version} >= 120300)
%license COPYING

openSUSE Build Service is sponsored by