summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2023-02-24 02:08:41 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2023-02-24 02:08:41 +0000
commit19fac49e14e79497557499e9d05a88571ed1cd39 (patch)
tree187d4d8383ae5594205c6858ad195f0791d35d01
parent3270490ce23f10690be82ea6346145811b74a6d7 (diff)
automatic import of python3-asyncsshopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-asyncssh.spec119
-rw-r--r--sources1
3 files changed, 121 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..91fa46a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/asyncssh-2.13.1.tar.gz
diff --git a/python-asyncssh.spec b/python-asyncssh.spec
new file mode 100644
index 0000000..f078089
--- /dev/null
+++ b/python-asyncssh.spec
@@ -0,0 +1,119 @@
+%global _empty_manifest_terminate_build 0
+Name: python-asyncssh
+Version: 2.13.1
+Release: 1
+Summary: AsyncSSH: Asynchronous SSHv2 client and server library
+License: Eclipse Public License v2.0
+URL: http://asyncssh.timeheart.net
+Source0: https://files.pythonhosted.org/packages/dc/86/ebdf32baf71ac57d3ee135c0844eda7cce744746bcc9c6399c978e356a2b/asyncssh-2.13.1.tar.gz
+BuildArch: noarch
+
+Requires: python3-cryptography
+Requires: python3-typing-extensions
+Requires: python3-bcrypt
+Requires: python3-fido2
+Requires: python3-gssapi
+Requires: python3-libnacl
+Requires: python3-pkcs11
+Requires: python3-pyOpenSSL
+Requires: python3-pywin32
+
+%description
+AsyncSSH is a Python package which provides an asynchronous client and
+server implementation of the SSHv2 protocol on top of the Python 3.6+
+asyncio framework.
+ import asyncio, asyncssh, sys
+ async def run_client():
+ async with asyncssh.connect('localhost') as conn:
+ result = await conn.run('echo "Hello!"', check=True)
+ print(result.stdout, end='')
+ try:
+ asyncio.get_event_loop().run_until_complete(run_client())
+ except (OSError, asyncssh.Error) as exc:
+ sys.exit('SSH connection failed: ' + str(exc))
+Check out the `examples`__ to get started!
+__ http://asyncssh.readthedocs.io/en/stable/#client-examples
+
+%package -n python3-asyncssh
+Summary: AsyncSSH: Asynchronous SSHv2 client and server library
+Provides: python-asyncssh
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+%description -n python3-asyncssh
+AsyncSSH is a Python package which provides an asynchronous client and
+server implementation of the SSHv2 protocol on top of the Python 3.6+
+asyncio framework.
+ import asyncio, asyncssh, sys
+ async def run_client():
+ async with asyncssh.connect('localhost') as conn:
+ result = await conn.run('echo "Hello!"', check=True)
+ print(result.stdout, end='')
+ try:
+ asyncio.get_event_loop().run_until_complete(run_client())
+ except (OSError, asyncssh.Error) as exc:
+ sys.exit('SSH connection failed: ' + str(exc))
+Check out the `examples`__ to get started!
+__ http://asyncssh.readthedocs.io/en/stable/#client-examples
+
+%package help
+Summary: Development documents and examples for asyncssh
+Provides: python3-asyncssh-doc
+%description help
+AsyncSSH is a Python package which provides an asynchronous client and
+server implementation of the SSHv2 protocol on top of the Python 3.6+
+asyncio framework.
+ import asyncio, asyncssh, sys
+ async def run_client():
+ async with asyncssh.connect('localhost') as conn:
+ result = await conn.run('echo "Hello!"', check=True)
+ print(result.stdout, end='')
+ try:
+ asyncio.get_event_loop().run_until_complete(run_client())
+ except (OSError, asyncssh.Error) as exc:
+ sys.exit('SSH connection failed: ' + str(exc))
+Check out the `examples`__ to get started!
+__ http://asyncssh.readthedocs.io/en/stable/#client-examples
+
+%prep
+%autosetup -n asyncssh-2.13.1
+
+%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-asyncssh -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri Feb 24 2023 Python_Bot <Python_Bot@openeuler.org> - 2.13.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..07c9b42
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+cf723bbfef9a29016df981910552f5b9 asyncssh-2.13.1.tar.gz