summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-20 07:46:12 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-20 07:46:12 +0000
commitf45d4ef7a017fbe016161e36fe71526c68b531a7 (patch)
treec0b530819086c857280fca4824619a10038327db
parent08b474bd2156a9396cb07503dea216d285ad7252 (diff)
automatic import of python-fake-switchesopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-fake-switches.spec120
-rw-r--r--sources1
3 files changed, 122 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..5fee12e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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
+![Commandline Demo](demo-cli.gif)
+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
+![Commandline Demo](demo-cli.gif)
+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
+![Commandline Demo](demo-cli.gif)
+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
diff --git a/sources b/sources
new file mode 100644
index 0000000..1470f3a
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+08d7b57f11ee5d687f0c7b95bc3f5435 fake-switches-1.5.0.tar.gz