diff --git a/pyroute2-0.6.6.tar.gz b/pyroute2-0.6.6.tar.gz deleted file mode 100644 index f40a0fe5b74fe6a807f516f3288cf5a467f1a36a..0000000000000000000000000000000000000000 Binary files a/pyroute2-0.6.6.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/pyroute2.core-0.6.6.tar.gz b/pyroute2.core-0.6.6.tar.gz deleted file mode 100644 index b205c958491d7e3ba47ff1c019865ac84a42e3cb..0000000000000000000000000000000000000000 Binary files a/pyroute2.core-0.6.6.tar.gz and /dev/null differ diff --git a/pyroute2.ethtool-0.6.6.tar.gz b/pyroute2.ethtool-0.6.6.tar.gz deleted file mode 100644 index e664587e46132e71f2ced8d6ebc0fba71faba55a..0000000000000000000000000000000000000000 Binary files a/pyroute2.ethtool-0.6.6.tar.gz and /dev/null differ diff --git a/pyroute2.ipdb-0.6.6.tar.gz b/pyroute2.ipdb-0.6.6.tar.gz deleted file mode 100644 index 5152c8b6c5803e272072d6baa7501946efe36177..0000000000000000000000000000000000000000 Binary files a/pyroute2.ipdb-0.6.6.tar.gz and /dev/null differ diff --git a/pyroute2.ipset-0.6.6.tar.gz b/pyroute2.ipset-0.6.6.tar.gz deleted file mode 100644 index bd4666abd72d1920e903047cbbcefe7162d06d95..0000000000000000000000000000000000000000 Binary files a/pyroute2.ipset-0.6.6.tar.gz and /dev/null differ diff --git a/pyroute2.ndb-0.6.6.tar.gz b/pyroute2.ndb-0.6.6.tar.gz deleted file mode 100644 index 8916b350589d180509d0dc46cb62a673524d6b9d..0000000000000000000000000000000000000000 Binary files a/pyroute2.ndb-0.6.6.tar.gz and /dev/null differ diff --git a/pyroute2.nftables-0.6.6.tar.gz b/pyroute2.nftables-0.6.6.tar.gz deleted file mode 100644 index 713d0870287b30f92512b7b80af4662ea19250b8..0000000000000000000000000000000000000000 Binary files a/pyroute2.nftables-0.6.6.tar.gz and /dev/null differ diff --git a/pyroute2.nslink-0.6.6.tar.gz b/pyroute2.nslink-0.6.6.tar.gz deleted file mode 100644 index 90f763e4cdc02d248dbe97da395a01fb6dd95a93..0000000000000000000000000000000000000000 Binary files a/pyroute2.nslink-0.6.6.tar.gz and /dev/null differ diff --git a/python-pyroute2.spec b/python-pyroute2.spec index d69d35383a6cb807e369e1428d32d55176e90b47..56528c4fd8540b5314a0b638bf7b80ce0bc1aef8 100644 --- a/python-pyroute2.spec +++ b/python-pyroute2.spec @@ -1,18 +1,11 @@ -Name: python-pyroute2 -Version: 0.6.6 -Release: 1 -Summary: Python Netlink library -License: GPL-2.0-or-later OR Apache-2.0 -URL: https://github.com/svinota/pyroute2 -Source0: https://files.pythonhosted.org/packages/6a/65/d2475a01926dbbf55746ec208c37d557b4dcb848635eb4d59b198910b856/pyroute2-0.6.6.tar.gz -Source1: https://files.pythonhosted.org/packages/1b/1b/09de58c2d0261e47d46d3a830ea64e1da3f64174454d42cecaad12cbc63e/pyroute2.core-0.6.6.tar.gz -Source2: https://files.pythonhosted.org/packages/d5/bb/2b141093afe9d17b4ff5cffe922625eeace8fb44703e167e340b3c4152e8/pyroute2.nslink-0.6.6.tar.gz -Source3: https://files.pythonhosted.org/packages/65/57/74800f222762259e5bdb33f838347bcb00f01b42f61fba16b41a901d4f95/pyroute2.nftables-0.6.6.tar.gz -Source4: https://files.pythonhosted.org/packages/0f/0f/a2b8cc62d49427a0ea1f5bee50425625388c305d1ecb6c43a7dac706b2ea/pyroute2.ethtool-0.6.6.tar.gz -Source5: https://files.pythonhosted.org/packages/8a/59/ff562d69359bd99efd6f3660a74f189111eda2dd0a293069819e248789b9/pyroute2.ipset-0.6.6.tar.gz -Source6: https://files.pythonhosted.org/packages/aa/24/2155d9de17cb3043f9d33f2d7be54b0e906942f86232d1c3b9b625894ca5/pyroute2.ipdb-0.6.6.tar.gz -Source7: https://files.pythonhosted.org/packages/42/bd/81cdca446d36006b1e7ca99881eaf444a71e741a6063d7e124380ec561d0/pyroute2.ndb-0.6.6.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 @@ -22,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 @@ -33,77 +28,40 @@ 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-%{version} -cd .. -tar xzvf %SOURCE1 -tar xzvf %SOURCE2 -tar xzvf %SOURCE3 -tar xzvf %SOURCE4 -tar xzvf %SOURCE5 -tar xzvf %SOURCE6 -tar xzvf %SOURCE7 %build -%py3_build -cd ../pyroute2.core-%{version} -%py3_build -cd ../pyroute2.nslink-%{version} -%py3_build -cd ../pyroute2.nftables-%{version} -%py3_build -cd ../pyroute2.ethtool-%{version} -%py3_build -cd ../pyroute2.ipset-%{version} -%py3_build -cd ../pyroute2.ipdb-%{version} -%py3_build -cd ../pyroute2.ndb-%{version} -%py3_build +%pyproject_build %install -%py3_install +%pyproject_install install -d -m755 %{buildroot}/%{_pkgdocdir} -cd ../pyroute2.core-%{version} -%py3_install -cd ../pyroute2.nslink-%{version} -%py3_install -cd ../pyroute2.nftables-%{version} -%py3_install -cd ../pyroute2.ethtool-%{version} -%py3_install -cd ../pyroute2.ipset-%{version} -%py3_install -cd ../pyroute2.ipdb-%{version} -%py3_install -cd ../pyroute2.ndb-%{version} -%py3_install -cd ../pyroute2-%{version} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi 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 . @@ -112,15 +70,22 @@ 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 -* Mon Apr 24 2023 OpenStack_SIG - 0.6.6-1 -- Upgrade package python3-pyroute2 to version 0.6.6 +* 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 -* Thu May 6 2020 hexiaowen - 0.5.3-6 +* Tue May 12 2020 hexiaowen - 0.5.3-6 - init packaging