diff --git a/pyroute2-0.4.21.tar.gz b/pyroute2-0.4.21.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..507fadbfcde6720c8ea24b618859440137cb0c4c Binary files /dev/null and b/pyroute2-0.4.21.tar.gz differ 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/python-pyroute2.spec b/python-pyroute2.spec index 45697fd400b7e6478102a70f2647ad8b0f459cb9..d96d9194a23e3a923642b6e781af922b4e7a0ff0 100644 --- a/python-pyroute2.spec +++ b/python-pyroute2.spec @@ -1,44 +1,58 @@ +%global _empty_manifest_terminate_build 0 Name: python-pyroute2 -Version: 0.5.14 -Release: 1 +Version: 0.4.21 +Release: 2 Summary: Python Netlink library -License: dual license GPLv2+ and Apache v2 +License: GPL-2.0 and Apache v2 URL: https://github.com/svinota/pyroute2 -Source0: https://files.pythonhosted.org/packages/0b/71/2920f854ef3cbb8472aa70539cf63fcc214e5c1b40f21c7cdb4910a6f5e9/pyroute2-0.5.14.tar.gz +Source0: https://files.pythonhosted.org/packages/41/c5/2a42f2e0eab9178260f18e32549ad4634e61b4c1305b5654a55933b05a71/pyroute2-0.4.21.tar.gz BuildArch: noarch - - %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 +pyroute2 +======== + +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. +protocols. Some supported netlink families and protocols: -%package -n python3-pyroute2 + +%package -n python2-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 +Provides: python2-pyroute2 +BuildRequires: python2-devel +BuildRequires: python2-setuptools +%description -n python2-pyroute2 +pyroute2 +======== + +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. +protocols. Some supported netlink families and protocols: + %package help Summary: Development documents and examples for pyroute2 -Provides: python3-pyroute2-doc +Provides: python2-pyroute2-doc %description help -Development documents and examples for pyroute2. +pyroute2 +======== + +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: + %prep -%autosetup -n pyroute2-0.5.14 +%autosetup -n pyroute2-0.4.21 %build -%py3_build +%py2_build %install -%py3_install +%py2_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 @@ -65,15 +79,14 @@ popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . -%files -n python3-pyroute2 -f filelist.lst -%dir %{python3_sitelib}/* +%files -n python2-pyroute2 -f filelist.lst +%{python2_sitelib}/* -%files help +%files help -f doclist.lst %{_docdir}/* %changelog -* Fri Oct 23 2020 wutao - 0.5.14-1 -- upgrade and disable python2 build - -* Thu May 6 2020 hexiaowen - 0.5.3-6 -- init packaging +* Wen May 26 2021 openstack-sig +- Fix Provides +* Sat May 15 2021 openstack-sig +- Package Spec generated