2018-05-03 06:52:36 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-tinyrpc
|
|
|
|
#
|
2019-03-04 12:46:05 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2018-05-03 06:52:36 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-12-04 14:09:54 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-05-03 06:52:36 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
Name: python-tinyrpc
|
2019-03-04 12:46:05 +00:00
|
|
|
Version: 0.9.4
|
2018-05-03 06:52:36 +00:00
|
|
|
Release: 0
|
2018-06-07 06:50:47 +00:00
|
|
|
Summary: A modular transport and protocol neutral RPC library
|
2018-05-03 06:52:36 +00:00
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/Python
|
2019-03-04 12:46:05 +00:00
|
|
|
URL: http://github.com/mbr/tinyrpc
|
2018-05-03 06:52:36 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/t/tinyrpc/tinyrpc-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module six}
|
|
|
|
BuildRequires: python-rpm-macros
|
2019-03-04 12:46:05 +00:00
|
|
|
Requires: python-six
|
2018-05-03 06:52:36 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2018-06-07 06:50:47 +00:00
|
|
|
There are a number of jsonrpc libraries already out there on PyPI,
|
|
|
|
most of them handling one specific use case (e.g. JSON via WSGI,
|
|
|
|
using Twisted, or TCP sockets).
|
|
|
|
|
|
|
|
None of the libraries, however, made it easy for the author of
|
|
|
|
TinyRPC to reuse the jsonrpc-parsing bits and substitute a different
|
|
|
|
transport (i.e. going from json via TCP to an implementation using
|
|
|
|
WebSockets or ZeroMQ).
|
2018-05-03 06:52:36 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n tinyrpc-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
2019-03-04 12:46:05 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2018-05-03 06:52:36 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|