diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-10 19:41:24 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 19:41:24 +0000 |
| commit | 03814ce43d8faee56359ee5d5ad73007f4b46bed (patch) | |
| tree | 88a69b67c54e56f52b9b9bd3043cc425882186d6 | |
| parent | db757e74f66b97a0d357e04744a1ab02d15ecbf4 (diff) | |
automatic import of python-pyroute2-nslink
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-pyroute2-nslink.spec | 75 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 77 insertions, 0 deletions
@@ -0,0 +1 @@ +/pyroute2.nslink-0.6.13.tar.gz diff --git a/python-pyroute2-nslink.spec b/python-pyroute2-nslink.spec new file mode 100644 index 0000000..7203611 --- /dev/null +++ b/python-pyroute2-nslink.spec @@ -0,0 +1,75 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pyroute2.nslink +Version: 0.6.13 +Release: 1 +Summary: Python Netlink library: NetNS, NSPopen and remote modules +License: dual license GPLv2+ and Apache v2 +URL: https://github.com/svinota/pyroute2 +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/7b/ed/4078f4f25d0908106540d75ff053a1dc6f39161cda69d556e109bdb1bfc6/pyroute2.nslink-0.6.13.tar.gz +BuildArch: noarch + + +%description +PyRoute2 is a pure Python **netlink** library. +This module provides NetNS, NSPopen and RemoteSocket classes. + +%package -n python3-pyroute2.nslink +Summary: Python Netlink library: NetNS, NSPopen and remote modules +Provides: python-pyroute2.nslink +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pyroute2.nslink +PyRoute2 is a pure Python **netlink** library. +This module provides NetNS, NSPopen and RemoteSocket classes. + +%package help +Summary: Development documents and examples for pyroute2.nslink +Provides: python3-pyroute2.nslink-doc +%description help +PyRoute2 is a pure Python **netlink** library. +This module provides NetNS, NSPopen and RemoteSocket classes. + +%prep +%autosetup -n pyroute2.nslink-0.6.13 + +%build +%py3_build + +%install +%py3_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 +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 +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.nslink -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.6.13-1 +- Package Spec generated @@ -0,0 +1 @@ +6016e3a0381e31cfeffd1e4e6f10843b pyroute2.nslink-0.6.13.tar.gz |
