Accepting request 612031 from devel:languages:python:misc
Distributed object middleware for Python OBS-URL: https://build.opensuse.org/request/show/612031 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pyro4?expand=0&rev=1
This commit is contained in:
99
python-Pyro4.spec
Normal file
99
python-Pyro4.spec
Normal file
@@ -0,0 +1,99 @@
|
||||
#
|
||||
# spec file for package python-Pyro4
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# 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.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-Pyro4
|
||||
Version: 4.72
|
||||
Release: 0
|
||||
License: MIT
|
||||
Summary: Distributed object middleware for Python (RPC)
|
||||
Url: https://github.com/irmen/Pyro4
|
||||
Group: Development/Languages/Python
|
||||
Source: https://files.pythonhosted.org/packages/source/P/Pyro4/Pyro4-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module cloudpickle >= 0.4.0}
|
||||
BuildRequires: %{python_module dill >= 0.2.6}
|
||||
BuildRequires: %{python_module msgpack-python >= 0.4.6}
|
||||
BuildRequires: %{python_module serpent >= 1.24}
|
||||
BuildRequires: ca-certificates
|
||||
BuildRequires: python-selectors34
|
||||
# /SECTION
|
||||
Requires: python-serpent >= 1.24
|
||||
Recommends: ca-certificates
|
||||
Recommends: python-cloudpickle >= 0.4.0
|
||||
Recommends: python-dill >= 0.2.6
|
||||
Recommends: python-msgpack-python >= 0.4.6
|
||||
%ifpython2
|
||||
Requires: python-selectors34
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Pyro means PYthon Remote Objects.
|
||||
|
||||
It is a library that enables you to build applications in which
|
||||
objects can talk to eachother over the network, with minimal programming effort.
|
||||
You can just use normal Python method calls, with almost every possible parameter
|
||||
and return value type, and Pyro takes care of locating the right object on the right
|
||||
computer to execute the method. It is designed to be very easy to use, and to
|
||||
generally stay out of your way. But it also provides a set of powerful features that
|
||||
enables you to build distributed applications rapidly and effortlessly.
|
||||
Pyro is a pure Python library and runs on many different platforms and Python versions.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n Pyro4-%{version}
|
||||
sed -i 's/\r$//' LICENSE
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%python_clone -a %{buildroot}%{_bindir}/pyro4-check-config
|
||||
%python_clone -a %{buildroot}%{_bindir}/pyro4-flameserver
|
||||
%python_clone -a %{buildroot}%{_bindir}/pyro4-httpgateway
|
||||
%python_clone -a %{buildroot}%{_bindir}/pyro4-ns
|
||||
%python_clone -a %{buildroot}%{_bindir}/pyro4-nsc
|
||||
%python_clone -a %{buildroot}%{_bindir}/pyro4-test-echoserver
|
||||
|
||||
%post
|
||||
%{python_install_alternative pyro4-check-config pyro4-flameserver pyro4-httpgateway pyro4-ns pyro4-nsc pyro4-test-echoserver}
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative pyro4-check-config
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%python_alternative %{_bindir}/pyro4-check-config
|
||||
%python_alternative %{_bindir}/pyro4-flameserver
|
||||
%python_alternative %{_bindir}/pyro4-httpgateway
|
||||
%python_alternative %{_bindir}/pyro4-ns
|
||||
%python_alternative %{_bindir}/pyro4-nsc
|
||||
%python_alternative %{_bindir}/pyro4-test-echoserver
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user