Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37813729
en ru br
Репозитории ALT

Группа :: Development/Python3
Пакет: python3-module-ethtool

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%def_enable snapshot

%define modname ethtool
%def_with man
#test_show_ring_eth (tests.test_scripts.ScriptsTests) ... FAIL
%def_disable check

Name: python3-module-%modname
Version: 0.15
Release: alt1

Summary: Ethernet settings python bindings
Group: Development/Python3
License: GPL-2.0-only
Url: https://pypi.python.org/pypi/%modname/

%if_disabled snapshot
Source: https://pypi.io/packages/source/e/%modname/%modname-%version.tar.gz
%else
Vcs: https://github.com/fedora-python/python-ethtool
Source: python-%modname-%version.tar
%endif

BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel python3-module-setuptools libnl-devel
%{?_with_man:BuildRequires: asciidoc-a2x >= 8.6.8}
%{?_enable_check:BuildRequires: python3-module-tox}

%description
Python 3 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 %{?_enable_snapshot:python-}%modname-%version

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

%install
%python3_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

%check
#PYTHONPATH=%buildroot%python3_sitelibdir py.test3
tox.py3 -e py%(echo %__python3_version | tr -d .) --sitepackages -o -v

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

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin