edae85
%global modname rpyc
edae85
%global with_python3 1
Erez Shinan 3c6e99
Erez Shinan 3c6e99
Name:           python-%{modname}
edae85
Version:        3.3.0
edae85
Release:        1%{?dist}
Erez Shinan 3c6e99
Summary:        A Transparent, Symmetrical Python Library for Distributed-Computing
Erez Shinan 3c6e99
URL:            http://rpyc.wikidot.com/
Erez Shinan 3c6e99
License:        MIT
Erez Shinan 3c6e99
Group:          Development/Libraries
0ecb80
Source0:        http://pypi.python.org/packages/source/r/rpyc/rpyc-%{version}.tar.gz
Erez Shinan 3c6e99
BuildArch:      noarch
edae85
BuildRequires:  python2-devel
edae85
BuildRequires:  python-setuptools
edae85
%if 0%{?with_python3}
edae85
BuildRequires:  python3-devel
edae85
BuildRequires:  python3-setuptools
edae85
%endif
edae85
Requires:       python-plumbum
Erez Shinan 3c6e99
Erez Shinan 3c6e99
%description
Erez Shinan 3c6e99
RPyC, or Remote Python Call, is a transparent and symmetrical python library
Erez Shinan 3c6e99
for remote procedure calls, clustering and distributed-computing.
Erez Shinan 3c6e99
RPyC makes use of object-proxies, a technique that employs python's dynamic
Erez Shinan 3c6e99
nature, to overcome the physical boundaries between processes and computers,
Erez Shinan 3c6e99
so that remote objects can be manipulated as if they were local.
Erez Shinan 3c6e99
edae85
%if 0%{?with_python3}
edae85
%package -n python3-%{modname}
edae85
Summary:        A Transparent, Symmetrical Python Library for Distributed-Computing
edae85
Requires:       python3-plumbum
edae85
edae85
%description -n python3-%{modname}
edae85
RPyC, or Remote Python Call, is a transparent and symmetrical python library
edae85
for remote procedure calls, clustering and distributed-computing.
edae85
RPyC makes use of object-proxies, a technique that employs python's dynamic
edae85
nature, to overcome the physical boundaries between processes and computers,
edae85
so that remote objects can be manipulated as if they were local.
edae85
This package contains Python 3 build of rpyc.
edae85
%endif
edae85
Erez Shinan 3c6e99
%prep
Erez Shinan 3c6e99
%setup -q -n %{modname}-%{version}
Erez Shinan 3c6e99
edae85
%if 0%{?with_python3}
edae85
rm -rf %{py3dir}
edae85
cp -a . %{py3dir}
edae85
%endif # with_python3
edae85
Erez Shinan 3c6e99
%build
Erez Shinan 3c6e99
%{__python} setup.py build
Erez Shinan 3c6e99
edae85
%if 0%{with_python3}
edae85
pushd %{py3dir}
edae85
%{__python3} setup.py build
edae85
popd
edae85
%endif
edae85
Erez Shinan 3c6e99
%install
edae85
%if 0%{?with_python3}
edae85
pushd %{py3dir}
edae85
%{__python3} setup.py install --skip-build --root %{buildroot}
edae85
popd
edae85
for f in `find %{buildroot}%{_bindir} -type f`; do
edae85
  mv $f %{buildroot}%{_bindir}/python3-`basename $f`
edae85
done
edae85
%endif # with_python3
edae85
Erez Shinan 3c6e99
%{__python} setup.py install -O1 --skip-build --root="%{buildroot}" --prefix="%{_prefix}"
0ecb80
# the binaries should not have .py extension
0ecb80
mv %{buildroot}%{_bindir}/rpyc_classic.py %{buildroot}%{_bindir}/rpyc_classic
0ecb80
mv %{buildroot}%{_bindir}/rpyc_registry.py %{buildroot}%{_bindir}/rpyc_registry
Erez Shinan 3c6e99
Erez Shinan 3c6e99
%files
0ecb80
%{_bindir}/rpyc_*
edae85
%{python2_sitelib}/*
edae85
edae85
%if 0%{?with_python3}
edae85
%files -n python3-%{modname}
edae85
%{_bindir}/python3-rpyc_*
edae85
%{python3_sitelib}/*
edae85
%endif
Erez Shinan 3c6e99
Erez Shinan 3c6e99
%changelog
edae85
* Fri Nov 14 2014 Slavek Kabrda <bkabrda@redhat.com> - 3.3.0-1
edae85
- Update to 3.3.0
edae85
156017
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.2-4
156017
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
156017
8e75ed
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.2-3
8e75ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
8e75ed
383262
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.2-2
383262
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
383262
0ecb80
* Mon Nov 05 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 3.2.2-1
0ecb80
- Update to 3.2.2.
0ecb80
- Specfile cleanup.
0ecb80
a394f9
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.7-3
a394f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a394f9
22ff8c
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.7-2
22ff8c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
22ff8c
Erez Shinan 3c6e99
* Sun Feb 20 2011 - Erez Shinan <erez27@gmail.com> - 3.0.7-1
Erez Shinan 3c6e99
- Initial release