2007-01-16 00:11:48 +01:00
|
|
|
#
|
2011-03-17 11:03:22 +01:00
|
|
|
# spec file for package ethtool
|
2007-01-16 00:11:48 +01:00
|
|
|
#
|
2020-05-12 23:45:45 +02:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2007-01-16 00:11:48 +01:00
|
|
|
#
|
2008-09-13 00:59:40 +02: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.
|
|
|
|
|
2019-05-18 12:34:50 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:11:48 +01:00
|
|
|
#
|
|
|
|
|
2012-02-27 11:06:53 +01:00
|
|
|
|
2007-01-16 00:11:48 +01:00
|
|
|
Name: ethtool
|
2020-10-15 21:01:29 +02:00
|
|
|
Version: 5.9
|
2011-12-02 20:07:06 +01:00
|
|
|
Release: 0
|
2018-09-10 14:53:32 +02:00
|
|
|
Summary: Utility for examining and tuning Ethernet-based network interfaces
|
2018-04-03 16:49:47 +02:00
|
|
|
License: GPL-2.0-only
|
2011-12-13 12:14:42 +01:00
|
|
|
Group: Productivity/Networking/Diagnostic
|
2020-05-12 23:45:45 +02:00
|
|
|
URL: https://www.kernel.org/pub/software/network/ethtool/
|
2012-06-16 21:11:01 +02:00
|
|
|
|
2014-11-18 10:46:19 +01:00
|
|
|
#Git-Clone: git://git.kernel.org/pub/scm/network/ethtool/ethtool
|
2020-05-12 23:45:45 +02:00
|
|
|
Source: https://www.kernel.org/pub/software/network/ethtool/%{name}-%{version}.tar.xz
|
|
|
|
Source2: https://www.kernel.org/pub/software/network/ethtool/%{name}-%{version}.tar.sign
|
2017-03-30 08:07:44 +02:00
|
|
|
Source3: %{name}.keyring
|
2007-01-16 00:11:48 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2020-05-12 23:45:45 +02:00
|
|
|
BuildRequires: pkgconfig
|
2012-06-16 21:11:01 +02:00
|
|
|
BuildRequires: xz
|
2020-05-12 23:45:45 +02:00
|
|
|
BuildRequires: pkgconfig(libmnl)
|
|
|
|
|
2007-01-16 00:11:48 +01:00
|
|
|
%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
|
2020-10-15 21:01:29 +02:00
|
|
|
export CFLAGS="%optflags -Wall -Wextra -Wstrict-prototypes -Wformat-security -Wpointer-arith"
|
2012-02-08 17:33:54 +01:00
|
|
|
%configure
|
2010-01-11 16:51:18 +01:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:11:48 +01:00
|
|
|
|
|
|
|
%install
|
2013-07-04 10:59:19 +02:00
|
|
|
make install DESTDIR="%buildroot"
|
2007-01-16 00:11:48 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2016-03-15 11:01:12 +01:00
|
|
|
%{_sbindir}/ethtool
|
2019-05-18 12:34:50 +02:00
|
|
|
%dir %{_datadir}/bash-completion
|
|
|
|
%dir %{_datadir}/bash-completion/completions
|
|
|
|
%{_datadir}/bash-completion/completions/ethtool
|
2016-03-15 11:01:12 +01:00
|
|
|
%{_mandir}/man8/ethtool.8*
|
2018-04-10 09:17:11 +02:00
|
|
|
%if (0%{?suse_version} >= 1500) || (0%{?sle_version} >= 120300)
|
2018-04-03 16:49:47 +02:00
|
|
|
%license COPYING
|
2018-04-10 09:17:11 +02:00
|
|
|
%else
|
|
|
|
%doc COPYING
|
|
|
|
%endif
|
2018-04-03 16:49:47 +02:00
|
|
|
%doc AUTHORS NEWS
|
2007-01-16 00:11:48 +01:00
|
|
|
|
2007-04-12 17:18:37 +02:00
|
|
|
%changelog
|