diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-03-08 04:03:18 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-03-08 04:03:18 +0000 |
commit | 27e70d2ec6c50ff328df2448f3c768ad686d3ae6 (patch) | |
tree | 61afbb08043f633cebf6c953eda32e1657fb1469 | |
parent | c9871ba079adf9a22b9ec6080fd416da2169a0bf (diff) |
automatic import of python-asyncssh
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-asyncssh.spec | 120 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 122 insertions, 0 deletions
@@ -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..3849461 --- /dev/null +++ b/python-asyncssh.spec @@ -0,0 +1,120 @@ +%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://mirrors.nju.edu.cn/pypi/web/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 +BuildRequires: python3-pip +%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 +* Wed Mar 08 2023 Python_Bot <Python_Bot@openeuler.org> - 2.13.1-1 +- Package Spec generated @@ -0,0 +1 @@ +cf723bbfef9a29016df981910552f5b9 asyncssh-2.13.1.tar.gz |