edae85a
%global modname rpyc
Erez Shinan 3c6e993
Erez Shinan 3c6e993
Name:           python-%{modname}
ee14cd6
Version:        5.1.0
ee14cd6
Release:        %autorelease
97e1363
Summary:        Transparent, Symmetrical Python Library for Distributed-Computing
74b7c85
Erez Shinan 3c6e993
License:        MIT
d413e1f
URL:            http://rpyc.wikidot.com/
d413e1f
Source0:        https://github.com/tomerfiliba/rpyc/archive/%{version}/%{modname}-%{version}.tar.gz
Erez Shinan 3c6e993
BuildArch:      noarch
74b7c85
7070a36
%global _description\
7070a36
RPyC, or Remote Python Call, is a transparent and symmetrical python library\
7070a36
for remote procedure calls, clustering and distributed-computing.\
7070a36
RPyC makes use of object-proxies, a technique that employs python's dynamic\
7070a36
nature, to overcome the physical boundaries between processes and computers,\
Erez Shinan 3c6e993
so that remote objects can be manipulated as if they were local.
Erez Shinan 3c6e993
7070a36
%description %_description
7070a36
7070a36
edae85a
%package -n python3-%{modname}
97e1363
Summary:        %{summary}
d413e1f
d413e1f
BuildRequires:  python3-devel
d413e1f
BuildRequires:  python3-setuptools
040a3df
Obsoletes:      python2-%{modname} < 4.0.1-4
d413e1f
%{?python_provide:%python_provide python3-%{modname}}
040a3df
040a3df
%description -n python3-%{modname} %_description
edae85a
Erez Shinan 3c6e993
%prep
Erez Shinan 3c6e993
%setup -q -n %{modname}-%{version}
Erez Shinan 3c6e993
Erez Shinan 3c6e993
%build
040a3df
%py3_build
Erez Shinan 3c6e993
Erez Shinan 3c6e993
%install
040a3df
%py3_install
d413e1f
# The binaries should not have .py extension
0ecb80c
mv %{buildroot}%{_bindir}/rpyc_classic.py %{buildroot}%{_bindir}/rpyc_classic
0ecb80c
mv %{buildroot}%{_bindir}/rpyc_registry.py %{buildroot}%{_bindir}/rpyc_registry
Erez Shinan 3c6e993
edae85a
%files -n python3-%{modname}
040a3df
%{_bindir}/rpyc_*
040a3df
%{python3_sitelib}/rpyc*
040a3df
Erez Shinan 3c6e993
%changelog
ee14cd6
%autochangelog
a5e28fc