diff --git a/0001-add-setup.py.patch b/0001-add-setup.py.patch new file mode 100644 index 0000000000000000000000000000000000000000..6448905347599e938981ab10dd28b5a95a73ddd9 --- /dev/null +++ b/0001-add-setup.py.patch @@ -0,0 +1,40 @@ +--- c/setup.py 1970-01-01 08:00:00.000000000 +0800 ++++ a/setup.py 2022-11-07 10:41:29.549179254 +0800 +@@ -0,0 +1,37 @@ ++#!/usr/bin/env python ++ ++from setuptools import setup ++ ++if __name__ == "__main__": ++ setup( ++ name = 'pyroute2', ++ version ='0.7.3', ++ description = 'Python Netlink library', ++ author = 'Peter Saveliev', ++ author_email = 'peter@svinota.eu', ++ url = 'https://github.com/svinota/pyroute2', ++ license = 'GPL-2.0-or-later OR Apache-2.0', ++ classifiers = [ ++ 'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)' + ++ 'License :: OSI Approved :: Apache Software License', ++ 'Programming Language :: Python', ++ 'Topic :: Software Development :: Libraries :: Python Modules', ++ 'Topic :: System :: Systems Administration', ++ 'Operating System :: POSIX :: Linux', ++ 'Intended Audience :: Developers', ++ 'Intended Audience :: System Administrators', ++ 'Intended Audience :: Telecommunications Industry', ++ 'Programming Language :: Python :: 3', ++ 'Programming Language :: Python :: 3.6', ++ 'Programming Language :: Python :: 3.7', ++ 'Programming Language :: Python :: 3.8', ++ 'Programming Language :: Python :: 3.9', ++ 'Programming Language :: Python :: 3.10', ++ 'Programming Language :: Python :: 3.11', ++ 'Development Status :: 4 - Beta' ], ++ install_requires = [ ++ 'win_inet_pton ; platform_system == "Windows"', ++ 'importlib-metadata ; python_version < "3.8"' ], ++ packages_dir = 'pyroute2', ++ ) ++ 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.7.3.tar.gz b/pyroute2-0.7.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..c48e59508ad2ea3d9226124e2411bf780a14fd89 Binary files /dev/null and b/pyroute2-0.7.3.tar.gz differ diff --git a/python-pyroute2.spec b/python-pyroute2.spec index 225dec95948b9aedf216d1aa8fe9036e89808e34..9de6b71815e25bcfc524ec15a52a915c9c00fe8e 100644 --- a/python-pyroute2.spec +++ b/python-pyroute2.spec @@ -1,10 +1,14 @@ +%global _empty_manifest_terminate_build 0 +%undefine __brp_mangle_shebangs + 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: GPL-2.0-or-later OR 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 +Patch0: 0001-add-setup.py.patch BuildArch: noarch @@ -16,23 +20,29 @@ 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 -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 +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. %package help Summary: Development documents and examples for pyroute2 Provides: python3-pyroute2-doc + %description help -Development documents and examples for pyroute2. +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. %prep -%autosetup -n pyroute2-0.5.14 +%autosetup -n pyroute2-%{version} +%patch0 %build %py3_build @@ -68,12 +78,16 @@ mv %{buildroot}/doclist.lst . %files -n python3-pyroute2 -f filelist.lst %dir %{python3_sitelib}/* -%files help +%files help -f doclist.lst %{_docdir}/* %changelog +* Mon Nov 07 2022 wangjunqi - 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 * Tue May 12 2020 hexiaowen - 0.5.3-6 - init packaging +