14
0
Files
python-pyroute2/python-pyroute2.spec
Dirk Mueller 2c0b2d0d3b - update to 0.7.3:
* nlsocket: CompileContext support
  * nlsocket: support for per request parsers (see IPRoute.get_default_routes())
  * generic: added support for dumping policies <#981>
  * ndb: changed API for reports
  * conntrack: fix TCP states <#991>
  * ipmock: new component (IPMock) for mock tests
  * thermal: update
  * ci: nlm_generator = True -- force using generators in the CI
  * iproute: fix neighbours dump <#962>
  * iproute: fix rule add <#964>
  * setup: fix build-backend <#961>
  * packaging: back to single package layout <#935>
  * packaging: static version <#939>
  * ci: use nox, finish migration from nose
  * netlink: universal nlmsg.get()

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyroute2?expand=0&rev=58
2022-10-01 13:48:55 +00:00

93 lines
3.5 KiB
RPMSpec

#
# spec file for package python-pyroute2
#
# Copyright (c) 2022 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pyroute2
Version: 0.7.3
Release: 0
Summary: Python Netlink library
License: Apache-2.0 OR GPL-2.0-or-later
URL: https://github.com/svinota/pyroute2
Source: https://files.pythonhosted.org/packages/source/p/pyroute2/pyroute2-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch
Provides: python-pyroute2.core = %{version}
Obsoletes: python-pyroute2.core < %{version}
Provides: python-pyroute2.ethtool = %{version}
Obsoletes: python-pyroute2.ethtool < %{version}
Provides: python-pyroute2.ipdb = %{version}
Obsoletes: python-pyroute2.ipdb < %{version}
Provides: python-pyroute2.ipset = %{version}
Obsoletes: python-pyroute2.ipset < %{version}
Provides: python-pyroute2.ndb = %{version}
Obsoletes: python-pyroute2.ndb < %{version}
Provides: python-pyroute2.nftables = %{version}
Obsoletes: python-pyroute2.nftables < %{version}
Provides: python-pyroute2.nslink = %{version}
Obsoletes: python-pyroute2.nslink < %{version}
%python_subpackages
%description
Pyroute2 is a pure Python netlink library. It requires only Python stdlib, no
3rd party libraries. The library was started as an RTNL protocol
implementation, so the name is pyroute2, but now it supports many netlink
protocols. Some supported netlink families and protocols:
* rtnl, network settings --- addresses, routes, traffic controls
* nfnetlink --- netfilter API: ipset, nftables, ...
* ipq --- simplest userspace packet filtering, iptables QUEUE target
* devlink --- manage and monitor devlink-enabled hardware
* generic --- generic netlink families
* nl80211 --- wireless functions API (basic support)
* taskstats --- extended process statistics
* acpi_events --- ACPI events monitoring
* thermal_events --- thermal events monitoring
* VFS_DQUOT --- disk quota events monitoring
%prep
%setup -q -n pyroute2-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/pyroute2-cli
%python_clone -a %{buildroot}%{_bindir}/pyroute2-dhcp-client
%python_clone -a %{buildroot}%{_bindir}/pyroute2-test-platform
%python_clone -a %{buildroot}%{_bindir}/ss2
%files %{python_files}
%doc README.rst CHANGELOG.rst
%license LICENSE LICENSE.Apache-2.0 LICENSE.GPL-2.0-or-later
%python_alternative %{_bindir}/pyroute2-cli
%python_alternative %{_bindir}/pyroute2-dhcp-client
%python_alternative %{_bindir}/pyroute2-test-platform
%python_alternative %{_bindir}/ss2
%{python_sitelib}/*
%changelog