diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-20 07:46:12 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-20 07:46:12 +0000 |
commit | f45d4ef7a017fbe016161e36fe71526c68b531a7 (patch) | |
tree | c0b530819086c857280fca4824619a10038327db | |
parent | 08b474bd2156a9396cb07503dea216d285ad7252 (diff) |
automatic import of python-fake-switchesopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-fake-switches.spec | 120 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 122 insertions, 0 deletions
@@ -0,0 +1 @@ +/fake-switches-1.5.0.tar.gz diff --git a/python-fake-switches.spec b/python-fake-switches.spec new file mode 100644 index 0000000..0beb303 --- /dev/null +++ b/python-fake-switches.spec @@ -0,0 +1,120 @@ +%global _empty_manifest_terminate_build 0 +Name: python-fake-switches +Version: 1.5.0 +Release: 1 +Summary: A pluggable switch/router command-line simulator +License: Apache Software License +URL: https://github.com/internap/fake-switches +Source0: https://mirrors.aliyun.com/pypi/web/packages/71/82/d9f83f9e0880f05d9d60863241efb094eb921b0280cd7afd78c63fa864c9/fake-switches-1.5.0.tar.gz +BuildArch: noarch + +Requires: python3-tftpy +Requires: python3-netaddr +Requires: python3-Twisted[conch] +Requires: python3-lxml +Requires: python3-cryptography +Requires: python3-cryptography + +%description + +Fake-switches is a pluggable switch/router command-line simulator. It is meant +to help running integrated tests against network equipment without the burden +of having devices in a lab. This helps testing the communication with the +equipment along with all of its layers for more robust high level tests. Since +it is meant to be used by other systems and not humans, error handling on +incomplete commands and fail-proofing has been mostly left out and only +relevant errors are shown. +The library can easily be extended to react to some changes in the fake switch +configuration and control an actual set of tools to have an environment +behaving like a real one driven by a switch. For example, you could hook +yourself to the VLAN creation and use vconfig to create an actual vlan on a +machine for some network testing. +This library is NOT supported by any vendor, it was built by +reverse-engineering network equipment. + +%package -n python3-fake-switches +Summary: A pluggable switch/router command-line simulator +Provides: python-fake-switches +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-fake-switches + +Fake-switches is a pluggable switch/router command-line simulator. It is meant +to help running integrated tests against network equipment without the burden +of having devices in a lab. This helps testing the communication with the +equipment along with all of its layers for more robust high level tests. Since +it is meant to be used by other systems and not humans, error handling on +incomplete commands and fail-proofing has been mostly left out and only +relevant errors are shown. +The library can easily be extended to react to some changes in the fake switch +configuration and control an actual set of tools to have an environment +behaving like a real one driven by a switch. For example, you could hook +yourself to the VLAN creation and use vconfig to create an actual vlan on a +machine for some network testing. +This library is NOT supported by any vendor, it was built by +reverse-engineering network equipment. + +%package help +Summary: Development documents and examples for fake-switches +Provides: python3-fake-switches-doc +%description help + +Fake-switches is a pluggable switch/router command-line simulator. It is meant +to help running integrated tests against network equipment without the burden +of having devices in a lab. This helps testing the communication with the +equipment along with all of its layers for more robust high level tests. Since +it is meant to be used by other systems and not humans, error handling on +incomplete commands and fail-proofing has been mostly left out and only +relevant errors are shown. +The library can easily be extended to react to some changes in the fake switch +configuration and control an actual set of tools to have an environment +behaving like a real one driven by a switch. For example, you could hook +yourself to the VLAN creation and use vconfig to create an actual vlan on a +machine for some network testing. +This library is NOT supported by any vendor, it was built by +reverse-engineering network equipment. + +%prep +%autosetup -n fake-switches-1.5.0 + +%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-fake-switches -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 1.5.0-1 +- Package Spec generated @@ -0,0 +1 @@ +08d7b57f11ee5d687f0c7b95bc3f5435 fake-switches-1.5.0.tar.gz |