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.5.2.tar.gz b/pyroute2-0.5.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..aded361010aa928c908892ec6a055306eb561cdb Binary files /dev/null and b/pyroute2-0.5.2.tar.gz differ diff --git a/python-pyroute2.spec b/python-pyroute2.spec index 45697fd400b7e6478102a70f2647ad8b0f459cb9..4d6ec5beaa21b302a711fee1f2efc72cf77c96b1 100644 --- a/python-pyroute2.spec +++ b/python-pyroute2.spec @@ -1,44 +1,41 @@ +%global _empty_manifest_terminate_build 0 Name: python-pyroute2 -Version: 0.5.14 -Release: 1 +Version: 0.5.2 +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/18/64/33858f79b0f2b44a0af7bb42eda3d477253de5311dae1eb12b966085909f/pyroute2-0.5.2.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 -implementation, so the name is **pyroute2**, but now it supports many netlink -protocols. +Pyroute2 is a pure Python netlink library. + -%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 -implementation, so the name is **pyroute2**, but now it supports many netlink -protocols. +Provides: python2-pyroute2 +BuildRequires: python2-devel +BuildRequires: python2-setuptools +BuildRequires: python2-pip +%description -n python2-pyroute2 +Pyroute2 is a pure Python netlink library. + %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 is a pure Python netlink library. + %prep -%autosetup -n pyroute2-0.5.14 +%autosetup -n pyroute2-0.5.2 %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 +62,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 +%dir %{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 +* Mon May 10 2021 openstack-sig +- Fix provides +* Thu Apr 29 2021 openstack-sig +- Package Spec generated diff --git a/python-pyroute2.yaml b/python-pyroute2.yaml deleted file mode 100644 index 660fcb07cee4de1f3538f04271fb34f641135c87..0000000000000000000000000000000000000000 --- a/python-pyroute2.yaml +++ /dev/null @@ -1,4 +0,0 @@ -version_control: pypi -src_repo: pyroute2 -tag_prefix: "^" -seperator: "."