diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-11 12:36:43 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 12:36:43 +0000 |
commit | 40a47236768bde38081c59b830f99b496f75f064 (patch) | |
tree | 3c56c86cb57143e0c4ee9c039d16bff034ffa713 | |
parent | a2a49c59d230ef00fcba6e07475836ca641e3b0f (diff) |
automatic import of python-aiohttp-json-rpc
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-aiohttp-json-rpc.spec | 100 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 102 insertions, 0 deletions
@@ -0,0 +1 @@ +/aiohttp-json-rpc-0.13.3.tar.gz diff --git a/python-aiohttp-json-rpc.spec b/python-aiohttp-json-rpc.spec new file mode 100644 index 0000000..aca6c1e --- /dev/null +++ b/python-aiohttp-json-rpc.spec @@ -0,0 +1,100 @@ +%global _empty_manifest_terminate_build 0 +Name: python-aiohttp-json-rpc +Version: 0.13.3 +Release: 1 +Summary: Implementation JSON-RPC 2.0 server and client using aiohttp on top of websockets transport +License: Apache 2.0 +URL: https://github.com/pengutronix/aiohttp-json-rpc/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/53/98/11d7a28734cbea1dd5ceb3e6603402169541a4f1a429b810988680975293/aiohttp-json-rpc-0.13.3.tar.gz +BuildArch: noarch + +Requires: python3-aiohttp + +%description +Implements `JSON-RPC 2.0 Specification <http://www.jsonrpc.org/specification>`_ using `aiohttp <http://aiohttp.readthedocs.org/en/stable/>`_ ++---------------+---------------+ +| Protocol | Support | ++===============+===============+ +| Websocket | since v0.1 | ++---------------+---------------+ +| POST | TODO | ++---------------+---------------+ +| GET | TODO | ++---------------+---------------+ + +%package -n python3-aiohttp-json-rpc +Summary: Implementation JSON-RPC 2.0 server and client using aiohttp on top of websockets transport +Provides: python-aiohttp-json-rpc +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-aiohttp-json-rpc +Implements `JSON-RPC 2.0 Specification <http://www.jsonrpc.org/specification>`_ using `aiohttp <http://aiohttp.readthedocs.org/en/stable/>`_ ++---------------+---------------+ +| Protocol | Support | ++===============+===============+ +| Websocket | since v0.1 | ++---------------+---------------+ +| POST | TODO | ++---------------+---------------+ +| GET | TODO | ++---------------+---------------+ + +%package help +Summary: Development documents and examples for aiohttp-json-rpc +Provides: python3-aiohttp-json-rpc-doc +%description help +Implements `JSON-RPC 2.0 Specification <http://www.jsonrpc.org/specification>`_ using `aiohttp <http://aiohttp.readthedocs.org/en/stable/>`_ ++---------------+---------------+ +| Protocol | Support | ++===============+===============+ +| Websocket | since v0.1 | ++---------------+---------------+ +| POST | TODO | ++---------------+---------------+ +| GET | TODO | ++---------------+---------------+ + +%prep +%autosetup -n aiohttp-json-rpc-0.13.3 + +%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-aiohttp-json-rpc -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.13.3-1 +- Package Spec generated @@ -0,0 +1 @@ +bc3224e4dfcc1928c470ef4fb87a923c aiohttp-json-rpc-0.13.3.tar.gz |