[rpy] update to 2.5.1
José Abílio Oliveira Matos
jamatos at fedoraproject.org
Fri Nov 14 16:11:48 UTC 2014
commit c51321c957a5ba92e71409a3bbd3d240eec43a12
Author: José Matos <jamatos at fedoraproject.org>
Date: Fri Nov 14 16:11:40 2014 +0000
update to 2.5.1
- add python3 subpackage
.gitignore | 1 +
rpy.spec | 44 +++++++++++++++++++++++++++++++++++---------
sources | 2 +-
3 files changed, 37 insertions(+), 10 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 562cee0..3ac344a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
clog
/rpy2-2.4.3.tar.gz
/rpy2-2.4.4.tar.gz
+/rpy2-2.5.1.tar.gz
diff --git a/rpy.spec b/rpy.spec
index 6db779d..4a39ee9 100644
--- a/rpy.spec
+++ b/rpy.spec
@@ -4,20 +4,18 @@
Name: rpy
Summary: Python interface to the R language
-Version: 2.4.4
+Version: 2.5.1
Release: 1%{?dist}
-Url: http://rpy.sourceforge.net
+Url: https://bitbucket.org/lgautier/rpy2
Source: http://pypi.python.org/packages/source/r/%{name}2/%{name}2-%{version}.tar.gz
License: GPLv2+
Group: Development/Libraries
-BuildRequires: R-devel = %{rver}, numpy, python2-devel
+BuildRequires: R-devel = %{rver}, numpy, python2-devel, python3-devel
+BuildRequires: python-setuptools, python3-setuptools
BuildRequires: readline-devel
Requires: numpy
Requires: R-core = %{rver}
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
-
Provides: python-rpy = %{version}-%{release}
%description
@@ -26,21 +24,49 @@ programming language. It can manage all kinds of R objects and can
execute arbitrary R functions. All the errors from the R language are
converted to Python exceptions.
+%package -n python3-rpy
+Summary: Python interface to the R language
+
+%description -n python3-rpy
+RPy provides a robust Python interface to the R
+programming language. It can manage all kinds of R objects and can
+execute arbitrary R functions. All the errors from the R language are
+converted to Python exceptions.
+
%prep
%setup -q -n %{name}2-%{version}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
+
%build
-env CFLAGS="$RPM_OPT_FLAGS" python setup.py build
+env CFLAGS="$RPM_OPT_FLAGS" %{__python2} setup.py build
+pushd %{py3dir}
+env CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
+popd
%install
-python setup.py install -O1 --skip-build --root=%{buildroot}
+pushd %{py3dir}
+%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
+popd
+%{__python2} setup.py install -O1 --skip-build --root=%{buildroot}
%files
-%doc AUTHORS NEWS README PKG-INFO
+%doc AUTHORS NEWS PKG-INFO
%{python_sitearch}/rpy2/
%{python_sitearch}/rpy2-%{version}*.egg-info
+%files -n python3-rpy
+%doc AUTHORS NEWS PKG-INFO
+%{python3_sitearch}/rpy2/
+%{python3_sitearch}/rpy2-%{version}*.egg-info
+
%changelog
+* Fri Nov 14 2014 José Matos <jamatos at fedoraproject.org> - 2.5.1-1
+- update to 2.5.1
+- add python3 subpackage
+
* Sat Nov 1 2014 Tom Callaway <spot at fedoraproject.org> - 2.4.4-1
- update to 2.4.4
- R 3.1.2
diff --git a/sources b/sources
index 73ea441..e9c014f 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-58fd357ba922839b65fd67766319b806 rpy2-2.4.4.tar.gz
+d1f77b439093655faf473105b17ba9d2 rpy2-2.5.1.tar.gz
More information about the scm-commits
mailing list