Summary(pl.UTF-8): Narzędzie do kontrolowania kart ethernet
Summary(pt_BR.UTF-8): Ferramenta de configuração para placas ethernet PCI
Name: ethtool
-Version: 6
+Version: 5.6
Release: 1
-License: GPL
+Epoch: 1
+License: GPL v2
Group: Networking/Admin
-Source0: http://dl.sourceforge.net/gkernel/%{name}-%{version}.tar.gz
-# Source0-md5: 3b721ec27f17ebf320ba8c505cf66d9c
-URL: http://sourceforge.net/projects/gkernel/
-BuildRequires: autoconf
+Source0: https://www.kernel.org/pub/software/network/ethtool/%{name}-%{version}.tar.xz
+# Source0-md5: 254aacdfd08cee3790d4b6f254997947
+Patch0: %{name}-format.patch
+URL: https://www.kernel.org/pub/software/network/ethtool/
+BuildRequires: autoconf >= 2.52
BuildRequires: automake
+BuildRequires: libmnl-devel
+BuildRequires: pkgconfig
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define _sbindir /sbin
+
%description
ethtool is a small utility for examining and tuning your
ethernet-based network interface.
ethernet, como velocidade, porta, negociação automática e localização
PCI.
+%package -n bash-completion-%{name}
+Summary: Bash completion for ethtool command
+Summary(pl.UTF-8): Bashowe dopełnianie parametrów polecenia ethtool
+Group: Applications/Shells
+Requires: %{name} = %{epoch}:%{version}-%{release}
+Requires: bash-completion >= 2.0
+
+%description -n bash-completion-%{name}
+Bash completion for ethtool command.
+
+%description -n bash-completion-%{name} -l pl.UTF-8
+Bashowe dopełnianie parametrów polecenia ethtool.
+
%prep
%setup -q
+%patch0 -p1
%build
%{__aclocal}
%files
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS
-%attr(755,root,root) %{_sbindir}/*
-%{_mandir}/man?/*
+%doc AUTHORS ChangeLog LICENSE NEWS README
+%attr(755,root,root) %{_sbindir}/ethtool
+%{_mandir}/man8/ethtool.8*
+
+%files -n bash-completion-%{name}
+%defattr(644,root,root,755)
+%{bash_compdir}/%{name}