Compare commits
10 Commits
40784e7757
...
11d0a2846d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
11d0a2846d | ||
|
|
0098f12721 | ||
|
|
5ae328dc4b | ||
|
|
800adec776 | ||
|
|
b82a48004b | ||
|
|
10d415d7fa | ||
|
|
7a637f0ea9 | ||
|
|
2585e7bbf9 | ||
|
|
e7174488c7 | ||
|
|
5017722c3c |
23
0001-add-system-call-of-setns-at-sw_64.patch
Normal file
23
0001-add-system-call-of-setns-at-sw_64.patch
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
From 7032edd940adb65b3c61f8dc97759d77847b509e Mon Sep 17 00:00:00 2001
|
||||||
|
From: zhangxianting <zhangxianting@uniontech.com>
|
||||||
|
Date: Thu, 19 Oct 2023 16:03:10 +0800
|
||||||
|
Subject: [PATCH] add system call of setns at sw_64
|
||||||
|
|
||||||
|
---
|
||||||
|
pyroute2/netns/__init__.py | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/pyroute2/netns/__init__.py b/pyroute2/netns/__init__.py
|
||||||
|
index da48e34..ffae53b 100644
|
||||||
|
--- a/pyroute2/netns/__init__.py
|
||||||
|
+++ b/pyroute2/netns/__init__.py
|
||||||
|
@@ -108,6 +108,7 @@ __NR = {
|
||||||
|
'aarc': {'32bit': 375, '64bit': 268}, # FIXME: EABI vs. OABI?
|
||||||
|
'ppc6': {'64bit': 350},
|
||||||
|
's390': {'64bit': 339},
|
||||||
|
+ 'sw_6': {'64bit': 501},
|
||||||
|
}
|
||||||
|
__NR_setns = __NR.get(config.machine[:4], {}).get(config.arch, 308)
|
||||||
|
|
||||||
|
--
|
||||||
|
2.31.1
|
||||||
Binary file not shown.
BIN
pyroute2-0.7.9.tar.gz
Normal file
BIN
pyroute2-0.7.9.tar.gz
Normal file
Binary file not shown.
@ -1,12 +1,14 @@
|
|||||||
|
%global _empty_manifest_terminate_build 0
|
||||||
|
%global srcname pyroute2
|
||||||
Name: python-pyroute2
|
Name: python-pyroute2
|
||||||
Version: 0.5.14
|
Version: 0.7.9
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Python Netlink library
|
Summary: Python Netlink library
|
||||||
License: dual license GPLv2+ and Apache v2
|
License: GPL-2.0-or-later and Apache-2.0
|
||||||
URL: https://github.com/svinota/pyroute2
|
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/f9/f4/5aa161de059353367a3505a8647f475d11f5ce2af4d2375651a2166a1ef3/pyroute2-0.7.9.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
Patch1: 0001-add-system-call-of-setns-at-sw_64.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Pyroute2 is a pure Python **netlink** library. The core requires only Python
|
Pyroute2 is a pure Python **netlink** library. The core requires only Python
|
||||||
@ -16,9 +18,12 @@ protocols.
|
|||||||
|
|
||||||
%package -n python3-pyroute2
|
%package -n python3-pyroute2
|
||||||
Summary: Python Netlink library
|
Summary: Python Netlink library
|
||||||
Provides: python-pyroute2
|
Provides: python-pyroute2 = %{version}-%{release}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-pip
|
||||||
|
BuildRequires: python3-wheel
|
||||||
|
Requires: python3-psutil
|
||||||
%description -n python3-pyroute2
|
%description -n python3-pyroute2
|
||||||
Pyroute2 for python3 is a pure Python **netlink** library. The core requires only
|
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
|
Python stdlib, no 3rd party libraries. The library was started as an RTNL protocol
|
||||||
@ -32,46 +37,49 @@ Provides: python3-pyroute2-doc
|
|||||||
Development documents and examples for pyroute2.
|
Development documents and examples for pyroute2.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n pyroute2-0.5.14
|
%autosetup -n pyroute2-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%pyproject_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%pyproject_install
|
||||||
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||||
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
||||||
if [ -d docs ]; then cp -arf docs %{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 example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
||||||
if [ -d examples ]; then cp -arf examples %{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
|
|
||||||
fi
|
|
||||||
if [ -d usr/lib64 ]; then
|
|
||||||
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
|
|
||||||
fi
|
|
||||||
if [ -d usr/sbin ]; then
|
|
||||||
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
|
|
||||||
fi
|
|
||||||
popd
|
|
||||||
mv %{buildroot}/filelist.lst .
|
|
||||||
mv %{buildroot}/doclist.lst .
|
|
||||||
|
|
||||||
%files -n python3-pyroute2 -f filelist.lst
|
%files -n python3-pyroute2
|
||||||
%dir %{python3_sitelib}/*
|
%license LICENSE*
|
||||||
|
%doc README*
|
||||||
|
%{_bindir}/ss2
|
||||||
|
%{_bindir}/%{srcname}-cli
|
||||||
|
%{_bindir}/%{srcname}-dhcp-client
|
||||||
|
%{_bindir}/%{srcname}-test-platform
|
||||||
|
%{python3_sitelib}/pr2modules
|
||||||
|
%{python3_sitelib}/pyroute2
|
||||||
|
%{python3_sitelib}/pyroute2*.dist-info/
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
%{_docdir}/*
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Oct 19 2023 zhangxianting <zhangxianting@uniontech.com> - 0.7.9-2
|
||||||
|
- Add system call of setns at sw_64
|
||||||
|
|
||||||
|
* Mon Jul 17 2023 Dongxing Wang <dxwangk@isoftstone.com> - 0.7.9-1
|
||||||
|
- Update package to version 0.7.9
|
||||||
|
|
||||||
|
* Fri May 05 2023 wangkai <13474090681@163.com> - 0.7.3-3
|
||||||
|
- Compling package with pyproject
|
||||||
|
|
||||||
|
* Fri Dec 09 2022 liukuo <liukuo@kylinos.cn> - 0.7.3-2
|
||||||
|
- License compliance rectification
|
||||||
|
|
||||||
|
* Mon Dec 05 2022 liqiuyu <liqiuyu@kylinos.cn> - 0.7.3-1
|
||||||
|
- Update package to version 0.7.3
|
||||||
|
|
||||||
* Fri Oct 23 2020 wutao <wutao61@huawei.com> - 0.5.14-1
|
* Fri Oct 23 2020 wutao <wutao61@huawei.com> - 0.5.14-1
|
||||||
- upgrade and disable python2 build
|
- upgrade and disable python2 build
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
version_control: pypi
|
version_control: pypi
|
||||||
src_repo: pyroute2
|
src_repo: pyroute2
|
||||||
tag_prefix: "^"
|
tag_prefix: "^"
|
||||||
seperator: "."
|
separator: "."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user