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..56528c4fd8540b5314a0b638bf7b80ce0bc1aef8 100644 --- a/python-pyroute2.spec +++ b/python-pyroute2.spec @@ -1,11 +1,11 @@ -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 +Name: python-pyroute2 +Version: 0.7.3 +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/9c/e6/8d163b1aea84223696fef8f8c55566adf166b79d614d602469d64af00226/pyroute2-0.7.3.tar.gz +BuildArch: noarch %description @@ -15,10 +15,12 @@ implementation, so the name is **pyroute2**, but now it supports many netlink protocols. %package -n python3-pyroute2 -Summary: Python Netlink library -Provides: python-pyroute2 -BuildRequires: python3-devel -BuildRequires: python3-setuptools +Summary: Python Netlink library +Provides: python-pyroute2 +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel %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 @@ -26,19 +28,19 @@ 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 +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 +%autosetup -n pyroute2-%{version} %build -%py3_build +%pyproject_build %install -%py3_install +%pyproject_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 @@ -46,20 +48,20 @@ 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 + 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 + 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 + 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 + 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 + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . @@ -68,10 +70,20 @@ mv %{buildroot}/doclist.lst . %files -n python3-pyroute2 -f filelist.lst %dir %{python3_sitelib}/* +%exclude %{python3_sitelib}/pr2modules/__pycache__/*.pyc +%exclude %{python3_sitelib}/pyroute2/__pycache__/*.pyc +%exclude %{python3_sitelib}/pyroute2/*/__pycache__/*.pyc +%exclude %{python3_sitelib}/pyroute2/*/*/__pycache__/*.pyc +%exclude %{python3_sitelib}/pyroute2/*/*/*/__pycache__/*.pyc +%exclude %{python3_sitelib}/pyroute2/*/*/*/*/__pycache__/*.pyc + %files help %{_docdir}/* %changelog +* Tue Mar 26 2024 zhengting - 0.7.3-1 +- upgrade to 0.7.3 + * Fri Oct 23 2020 wutao - 0.5.14-1 - upgrade and disable python2 build