diff --git a/pyroute2-0.5.14.tar.gz b/pyroute2-0.5.14.tar.gz deleted file mode 100644 index 41e45dc..0000000 Binary files a/pyroute2-0.5.14.tar.gz and /dev/null differ diff --git a/pyroute2-0.7.3.tar.gz b/pyroute2-0.7.3.tar.gz new file mode 100644 index 0000000..c48e595 Binary files /dev/null and b/pyroute2-0.7.3.tar.gz differ diff --git a/python-pyroute2.spec b/python-pyroute2.spec index 225dec9..8614aeb 100644 --- a/python-pyroute2.spec +++ b/python-pyroute2.spec @@ -1,13 +1,14 @@ +%global _empty_manifest_terminate_build 0 Name: python-pyroute2 -Version: 0.5.14 +Version: 0.7.3 Release: 1 Summary: Python Netlink library -License: dual license GPLv2+ and Apache v2 +License: GPLv2+ and Apache-2.0 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/9c/e6/8d163b1aea84223696fef8f8c55566adf166b79d614d602469d64af00226/pyroute2-0.7.3.tar.gz +Source1: setup.py 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 @@ -16,7 +17,7 @@ protocols. %package -n python3-pyroute2 Summary: Python Netlink library -Provides: python-pyroute2 +Provides: python-pyroute2 = %{version}-%{release} BuildRequires: python3-devel BuildRequires: python3-setuptools %description -n python3-pyroute2 @@ -32,7 +33,8 @@ Provides: python3-pyroute2-doc Development documents and examples for pyroute2. %prep -%autosetup -n pyroute2-0.5.14 +%autosetup -n pyroute2-%{version} +cp %{SOURCE1} ./ %build %py3_build @@ -68,10 +70,13 @@ mv %{buildroot}/doclist.lst . %files -n python3-pyroute2 -f filelist.lst %dir %{python3_sitelib}/* -%files help +%files help -f doclist.lst %{_docdir}/* %changelog +* Mon Dec 05 2022 liqiuyu - 0.7.3-1 +- Update package to version 0.7.3 + * Fri Oct 23 2020 wutao - 0.5.14-1 - upgrade and disable python2 build diff --git a/python-pyroute2.yaml b/python-pyroute2.yaml index 660fcb0..8ea074c 100644 --- a/python-pyroute2.yaml +++ b/python-pyroute2.yaml @@ -1,4 +1,4 @@ version_control: pypi src_repo: pyroute2 tag_prefix: "^" -seperator: "." +separator: "." diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..bac24a4 --- /dev/null +++ b/setup.py @@ -0,0 +1,6 @@ +#!/usr/bin/env python + +import setuptools + +if __name__ == "__main__": + setuptools.setup()