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