diff --git a/pyroute2-0.5.14.tar.gz b/pyroute2-0.5.14.tar.gz deleted file mode 100644 index 41e45dc37151c1e6da059a928ef647194eaa9aac..0000000000000000000000000000000000000000 Binary files a/pyroute2-0.5.14.tar.gz and /dev/null differ diff --git a/pyroute2-0.6.6.tar.gz b/pyroute2-0.6.6.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..f40a0fe5b74fe6a807f516f3288cf5a467f1a36a Binary files /dev/null and b/pyroute2-0.6.6.tar.gz differ diff --git a/pyroute2.core-0.6.6.tar.gz b/pyroute2.core-0.6.6.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..b205c958491d7e3ba47ff1c019865ac84a42e3cb Binary files /dev/null and b/pyroute2.core-0.6.6.tar.gz differ diff --git a/pyroute2.ethtool-0.6.6.tar.gz b/pyroute2.ethtool-0.6.6.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..e664587e46132e71f2ced8d6ebc0fba71faba55a Binary files /dev/null and b/pyroute2.ethtool-0.6.6.tar.gz differ diff --git a/pyroute2.ipdb-0.6.6.tar.gz b/pyroute2.ipdb-0.6.6.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..5152c8b6c5803e272072d6baa7501946efe36177 Binary files /dev/null and b/pyroute2.ipdb-0.6.6.tar.gz differ diff --git a/pyroute2.ipset-0.6.6.tar.gz b/pyroute2.ipset-0.6.6.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..bd4666abd72d1920e903047cbbcefe7162d06d95 Binary files /dev/null and b/pyroute2.ipset-0.6.6.tar.gz differ diff --git a/pyroute2.ndb-0.6.6.tar.gz b/pyroute2.ndb-0.6.6.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..8916b350589d180509d0dc46cb62a673524d6b9d Binary files /dev/null and b/pyroute2.ndb-0.6.6.tar.gz differ diff --git a/pyroute2.nftables-0.6.6.tar.gz b/pyroute2.nftables-0.6.6.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..713d0870287b30f92512b7b80af4662ea19250b8 Binary files /dev/null and b/pyroute2.nftables-0.6.6.tar.gz differ diff --git a/pyroute2.nslink-0.6.6.tar.gz b/pyroute2.nslink-0.6.6.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..90f763e4cdc02d248dbe97da395a01fb6dd95a93 Binary files /dev/null and b/pyroute2.nslink-0.6.6.tar.gz differ diff --git a/python-pyroute2.spec b/python-pyroute2.spec index 225dec95948b9aedf216d1aa8fe9036e89808e34..25644ba1fb50afef2d65f4021a0ee387cf3a5ce0 100644 --- a/python-pyroute2.spec +++ b/python-pyroute2.spec @@ -1,77 +1,98 @@ -Name: python-pyroute2 -Version: 0.5.14 -Release: 1 -Summary: Python Netlink library -License: dual license GPLv2+ and Apache v2 -URL: https://github.com/svinota/pyroute2 -Source0: https://files.pythonhosted.org/packages/0b/71/2920f854ef3cbb8472aa70539cf63fcc214e5c1b40f21c7cdb4910a6f5e9/pyroute2-0.5.14.tar.gz -BuildArch: noarch +%global srcname pyroute2 +%{!?python3_pkgversion:%global python3_pkgversion 3} + +Name: python-%{srcname} +Version: 0.6.6 +Release: 1 +Summary: Pure Python netlink library +License: GPLv2+ +URL: https://github.com/svinota/%{srcname} +Source0: https://files.pythonhosted.org/packages/6a/65/d2475a01926dbbf55746ec208c37d557b4dcb848635eb4d59b198910b856/pyroute2-0.6.6.tar.gz +BuildArch: noarch + +Source1: pyroute2.core-0.6.6.tar.gz +Source2: pyroute2.ethtool-0.6.6.tar.gz +Source3: pyroute2.ipdb-0.6.6.tar.gz +Source4: pyroute2.ipset-0.6.6.tar.gz +Source5: pyroute2.ndb-0.6.6.tar.gz +Source6: pyroute2.nftables-0.6.6.tar.gz +Source7: pyroute2.nslink-0.6.6.tar.gz %description -Pyroute2 is a pure Python **netlink** library. The core 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. +PyRoute2 provides several levels of API to work with Netlink +protocols, such as Generic Netlink, RTNL, TaskStats, NFNetlink, +IPQ. + -%package -n python3-pyroute2 -Summary: Python Netlink library -Provides: python-pyroute2 -BuildRequires: python3-devel -BuildRequires: python3-setuptools -%description -n python3-pyroute2 -Pyroute2 for python3 is a pure Python **netlink** library. The core 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. +%package -n python%{python3_pkgversion}-%{srcname} +Summary: %{summary} +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools +%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} + +%description -n python%{python3_pkgversion}-%{srcname} +PyRoute2 provides several levels of API to work with Netlink +protocols, such as Generic Netlink, RTNL, TaskStats, NFNetlink, +IPQ. -%package help -Summary: Development documents and examples for pyroute2 -Provides: python3-pyroute2-doc -%description help -Development documents and examples for pyroute2. %prep -%autosetup -n pyroute2-0.5.14 +%setup -q -n %{srcname}-%{version} +cd .. +tar xzvf %SOURCE1 +tar xzvf %SOURCE2 +tar xzvf %SOURCE3 +tar xzvf %SOURCE4 +tar xzvf %SOURCE5 +tar xzvf %SOURCE6 +tar xzvf %SOURCE7 %build %py3_build +cd ../pyroute2.core-%{version} +%py3_build +cd ../pyroute2.nslink-%{version} +%py3_build +cd ../pyroute2.nftables-%{version} +%py3_build +cd ../pyroute2.ethtool-%{version} +%py3_build +cd ../pyroute2.ipset-%{version} +%py3_build +cd ../pyroute2.ipdb-%{version} +%py3_build +cd ../pyroute2.ndb-%{version} +%py3_build %install %py3_install -install -d -m755 %{buildroot}/%{_pkgdocdir} -if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi -if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi -if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi -if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi -pushd %{buildroot} -if [ -d usr/lib ]; then - find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/lib64 ]; then - find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/bin ]; then - find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/sbin ]; then - find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst -fi -touch doclist.lst -if [ -d usr/share/man ]; then - find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst -fi -popd -mv %{buildroot}/filelist.lst . -mv %{buildroot}/doclist.lst . - -%files -n python3-pyroute2 -f filelist.lst -%dir %{python3_sitelib}/* +cd ../pyroute2.core-%{version} +%py3_install +cd ../pyroute2.nslink-%{version} +%py3_install +cd ../pyroute2.nftables-%{version} +%py3_install +cd ../pyroute2.ethtool-%{version} +%py3_install +cd ../pyroute2.ipset-%{version} +%py3_install +cd ../pyroute2.ipdb-%{version} +%py3_install +cd ../pyroute2.ndb-%{version} +%py3_install -%files help -%{_docdir}/* +%files -n python%{python3_pkgversion}-%{srcname} +%{_bindir}/ss2 +%{_bindir}/%{srcname}-cli +%doc README* LICENSE.GPL.v2 LICENSE.Apache.v2 +%{python3_sitelib}/%{srcname}* +%{python3_sitelib}/pr2modules %changelog +* Fri Aug 05 2022 OpenStack_SIG - 0.6.6-1 +- upgrade the version to 0.6.6 + * Fri Oct 23 2020 wutao - 0.5.14-1 - upgrade and disable python2 build