edae85a
%global modname rpyc
edae85a
%global with_python3 1
Erez Shinan 3c6e993
Erez Shinan 3c6e993
Name:           python-%{modname}
edae85a
Version:        3.3.0
779b1d8
Release:        10%{?dist}
Erez Shinan 3c6e993
Summary:        A Transparent, Symmetrical Python Library for Distributed-Computing
Erez Shinan 3c6e993
URL:            http://rpyc.wikidot.com/
Erez Shinan 3c6e993
License:        MIT
Erez Shinan 3c6e993
Group:          Development/Libraries
0ecb80c
Source0:        http://pypi.python.org/packages/source/r/rpyc/rpyc-%{version}.tar.gz
Erez Shinan 3c6e993
BuildArch:      noarch
edae85a
BuildRequires:  python2-devel
edae85a
BuildRequires:  python-setuptools
edae85a
%if 0%{?with_python3}
edae85a
BuildRequires:  python3-devel
edae85a
BuildRequires:  python3-setuptools
edae85a
%endif
Erez Shinan 3c6e993
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
%package -n python2-%{modname}
7070a36
Summary: %summary
7070a36
Requires:       python-plumbum
7070a36
%{?python_provide:%python_provide python2-%{modname}}
7070a36
7070a36
%description -n python2-%{modname} %_description
7070a36
edae85a
%if 0%{?with_python3}
edae85a
%package -n python3-%{modname}
edae85a
Summary:        A Transparent, Symmetrical Python Library for Distributed-Computing
edae85a
Requires:       python3-plumbum
edae85a
edae85a
%description -n python3-%{modname}
edae85a
RPyC, or Remote Python Call, is a transparent and symmetrical python library
edae85a
for remote procedure calls, clustering and distributed-computing.
edae85a
RPyC makes use of object-proxies, a technique that employs python's dynamic
edae85a
nature, to overcome the physical boundaries between processes and computers,
edae85a
so that remote objects can be manipulated as if they were local.
edae85a
This package contains Python 3 build of rpyc.
edae85a
%endif
edae85a
Erez Shinan 3c6e993
%prep
Erez Shinan 3c6e993
%setup -q -n %{modname}-%{version}
Erez Shinan 3c6e993
edae85a
%if 0%{?with_python3}
edae85a
rm -rf %{py3dir}
edae85a
cp -a . %{py3dir}
edae85a
%endif # with_python3
edae85a
Erez Shinan 3c6e993
%build
Erez Shinan 3c6e993
%{__python} setup.py build
Erez Shinan 3c6e993
edae85a
%if 0%{with_python3}
edae85a
pushd %{py3dir}
edae85a
%{__python3} setup.py build
edae85a
popd
edae85a
%endif
edae85a
Erez Shinan 3c6e993
%install
edae85a
%if 0%{?with_python3}
edae85a
pushd %{py3dir}
edae85a
%{__python3} setup.py install --skip-build --root %{buildroot}
edae85a
popd
edae85a
for f in `find %{buildroot}%{_bindir} -type f`; do
edae85a
  mv $f %{buildroot}%{_bindir}/python3-`basename $f`
edae85a
done
edae85a
%endif # with_python3
edae85a
Erez Shinan 3c6e993
%{__python} setup.py install -O1 --skip-build --root="%{buildroot}" --prefix="%{_prefix}"
0ecb80c
# 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
7070a36
%files -n python2-%{modname}
0ecb80c
%{_bindir}/rpyc_*
edae85a
%{python2_sitelib}/*
edae85a
edae85a
%if 0%{?with_python3}
edae85a
%files -n python3-%{modname}
edae85a
%{_bindir}/python3-rpyc_*
edae85a
%{python3_sitelib}/*
edae85a
%endif
Erez Shinan 3c6e993
Erez Shinan 3c6e993
%changelog
779b1d8
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-10
779b1d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
779b1d8
7070a36
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.3.0-9
7070a36
- Python 2 binary package renamed to python2-rpyc
7070a36
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
7070a36
c4cfa5c
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-8
c4cfa5c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c4cfa5c
3883337
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-7
3883337
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3883337
fed2140
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 3.3.0-6
fed2140
- Rebuild for Python 3.6
fed2140
e2249ff
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.0-5
e2249ff
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
e2249ff
c281fc5
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-4
c281fc5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c281fc5
2092dd1
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.0-3
2092dd1
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
2092dd1
bc07234
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.0-2
bc07234
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
bc07234
edae85a
* Fri Nov 14 2014 Slavek Kabrda <bkabrda@redhat.com> - 3.3.0-1
edae85a
- Update to 3.3.0
edae85a
156017d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.2-4
156017d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
156017d
8e75ed3
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.2-3
8e75ed3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
8e75ed3
383262f
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.2-2
383262f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
383262f
0ecb80c
* Mon Nov 05 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 3.2.2-1
0ecb80c
- Update to 3.2.2.
0ecb80c
- Specfile cleanup.
0ecb80c
a394f97
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.7-3
a394f97
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a394f97
22ff8c6
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.7-2
22ff8c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
22ff8c6
Erez Shinan 3c6e993
* Sun Feb 20 2011 - Erez Shinan <erez27@gmail.com> - 3.0.7-1
Erez Shinan 3c6e993
- Initial release