Sisyphus repositório
Última atualização: 13 outubro 2019 | SRPMs: 17513 | Visitas: 15259961
en ru br
ALT Linux repositórios
S:0.14-alt1

Group :: Desenvolvimento/Python
RPM: python-module-ethtool

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define modname ethtool
%def_with man
%def_disable python3

Name: python-module-%modname
Version: 0.14
Release: alt1

Summary: Ethernet settings python bindings
Group: Development/Python
License: GPLv2
Url: https://pypi.python.org/pypi/%modname/

Source: https://pypi.io/packages/source/e/%modname/%modname-%version.tar.gz

BuildRequires: python-devel python-module-setuptools libnl-devel
%{?_enable_python3:BuildRequires: rpm-build-python3 python3-devel python3-module-setuptools}
%{?_with_man:BuildRequires: asciidoc-a2x >= 8.6.8}

%description
Python bindings for the ethtool kernel interface, that allows querying
and changing of Ethernet card settings, such as speed, port,
auto-negotiation, and PCI locations.

%package -n python3-module-%modname
Summary: Ethernet settings python3 bindings
Group: Development/Python3

%description -n python3-module-%modname
Python3 bindings for the ethtool kernel interface, that allows querying
and changing of Ethernet card settings, such as speed, port,
auto-negotiation, and PCI locations.


%prep
%setup -n %modname-%version -a0
mv %modname-%version py3build

%build
%python_build
%if_with man
a2x -d manpage -f manpage man/pethtool.8.asciidoc
a2x -d manpage -f manpage man/pifconfig.8.asciidoc
%endif

%if_enabled python3
pushd py3build
%python3_build
popd
%endif

%install
%python_install --install-scripts=%_sbindir
%if_with man
mkdir -p %buildroot%_man8dir
install -m644 man/pethtool.8 %buildroot%_man8dir/pethtool.8
install -m644 man/pifconfig.8 %buildroot%_man8dir/pifconfig.8
%endif

%if_enabled python3
pushd py3build
%python3_install --install-scripts=%_sbindir
popd
%endif

%files
%_sbindir/pethtool
%_sbindir/pifconfig
%python_sitelibdir/ethtool.so
%python_sitelibdir/*.egg-info
%{?_with_man:%_man8dir/*}
%doc README.rst CHANGES.rst

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009