d83427
%global srcname rpy
d83427
%global sum Python interface to the R language
1cb2c7
%global rver   3.3.2
9e437a
1304c8
Name:          rpy
91ef48
Version:       2.8.5
91ef48
Release:       1%{?dist}
d83427
Summary:       %{sum}
d83427
e90d4b
License:       GPLv2+
4aa459
Url:           https://pypi.python.org/pypi/rpy2
55efb6
Source:        https://files.pythonhosted.org/packages/source/r/%{srcname}2/%{srcname}2-%{version}.tar.gz
d83427
c51321
BuildRequires: R-devel = %{rver}, numpy, python2-devel, python3-devel
c51321
BuildRequires: python-setuptools, python3-setuptools
6355cb
BuildRequires: readline-devel
1304c8
d83427
Requires:      python-%{srcname} = %{version}-%{release}
a7b925
9e437a
%description
9e437a
RPy provides a robust Python interface to the R
9e437a
programming language.  It can manage all kinds of R objects and can
9e437a
execute arbitrary R functions. All the errors from the R language are
9e437a
converted to Python exceptions.
9e437a
c51321
d83427
%package -n python2-%{srcname}
d83427
Summary:       %{sum}
d83427
#Requires:      python2-numpy
d83427
Requires:      numpy
d83427
Requires:      R-core = %{rver}
d83427
%{?python_provide:%python_provide python2-%{srcname}}
d83427
d83427
%description -n python2-%{srcname}
c51321
RPy provides a robust Python interface to the R
c51321
programming language.  It can manage all kinds of R objects and can
c51321
execute arbitrary R functions. All the errors from the R language are
c51321
converted to Python exceptions.
c51321
9e437a
d83427
%package -n python3-%{srcname}
d83427
Summary:       %{sum}
d83427
Requires:      python3-numpy
d83427
Requires:      R-core = %{rver}
d83427
%{?python_provide:%python_provide python3-%{srcname}}
d83427
d83427
%description -n python3-%{srcname}
d83427
RPy provides a robust Python interface to the R
d83427
programming language.  It can manage all kinds of R objects and can
d83427
execute arbitrary R functions. All the errors from the R language are
d83427
converted to Python exceptions.
d83427
d83427
d83427
%prep
d83427
%setup -q -n %{srcname}2-%{version}
c51321
9e437a
%build
4cdc2b
# %%py2_build
4cdc2b
# %%py3_build
6e3707
91ef48
# Temporary workaround to fix a bug in R
91ef48
# see https://stat.ethz.ch/pipermail/r-devel/2016-December/073548.html
6e3707
CFLAGS="$RPM_OPT_FLAGS -DHAVE_UINTPTR_T=1" %{__python2} setup.py build
6e3707
CFLAGS="$RPM_OPT_FLAGS -DHAVE_UINTPTR_T=1" %{__python3} setup.py build
9e437a
9e437a
%install
d83427
%py2_install
d83427
%py3_install
9e437a
9e437a
%files
d83427
d83427
%files -n python2-%{srcname}
c51321
%doc AUTHORS NEWS PKG-INFO
d83427
%{python_sitearch}/
9e437a
d83427
%files -n python3-%{srcname}
c51321
%doc AUTHORS NEWS PKG-INFO
d83427
%{python3_sitearch}/
d83427
c51321
9e437a
%changelog
91ef48
* Fri Dec 30 2016 José Matos <jamatos@fedoraproject.org> - 2.8.5-1
91ef48
- update to 2.8.5
6e3707
- workaround to fix a bug in R (it fails for 32 bit archs)
91ef48
b123f3
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.8.3-2
b123f3
- Rebuild for Python 3.6
b123f3
1cb2c7
* Tue Nov  1 2016 Tom Callaway <spot@fedoraproject.org> - 2.8.3-1
1cb2c7
- update to 2.8.3
1cb2c7
- rebuild for R 3.3.2
1cb2c7
34a991
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.1-3
34a991
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
34a991
2b1b62
* Wed Jul  6 2016 Tom Callaway <spot@fedoraproject.org> - 2.8.1-2
2b1b62
- rebuild for R 3.3.1
2b1b62
55efb6
* Thu Jun 16 2016 José Abílio Matos <jamatos@fc.up.pt> - 2.8.1-1
55efb6
- update to 2.8.1
55efb6
- adapt the source url to a new scheme
55efb6
4aa459
* Tue May 10 2016 Tom Callaway <spot@fedoraproject.org> - 2.7.9-1
4aa459
- update to 2.7.9, R 3.3.0
4aa459
ea6908
* Fri Apr 15 2016 David Tardon <dtardon@redhat.com> - 2.7.8-3
ea6908
- rebuild for ICU 57.1
ea6908
fce258
* Fri Mar 18 2016 Tom Callaway <spot@fedoraproject.org> - 2.7.8-2
fce258
- rebuild for R 3.2.4
fce258
d83427
* Sun Feb 14 2016 José Matos <jamatos@fedoraproject.org> - 2.7.8-1
d83427
- update to 2.7.8
d83427
- modernize python2 and python3 preserving the upgrade path
d83427
ca692f
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.5-2
ca692f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
ca692f
4d9971
* Fri Dec 11 2015 Tom Callaway <spot@fedoraproject.org> - 2.7.5-1
4d9971
- update to 2.7.5
4d9971
e1efdb
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.2-3
e1efdb
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
e1efdb
14fb67
* Wed Oct 28 2015 David Tardon <dtardon@redhat.com> - 2.6.2-2
14fb67
- rebuild for ICU 56.1
14fb67
4c0886
* Fri Aug 14 2015 Tom Callaway <spot@fedoraproject.org> - 2.6.2-1
4c0886
- update to 2.6.2, R 3.2.2
4c0886
c50ebf
* Tue Jul 21 2015 José Matos <jamatos@fedoraproject.org> - 2.6.1-1
c50ebf
- Update to 2.6.1
c50ebf
0ecb2e
* Fri Jun 19 2015 Tom Callaway <spot@fedoraproject.org> - 2.6.0-1
0ecb2e
- 2.6.0, R 3.2.1
0ecb2e
014584
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.6-5
014584
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
014584
776ec4
* Thu Apr 30 2015 Tom Callaway <spot@fedoraproject.org> - 2.5.6-4
776ec4
- R 3.2.0
776ec4
Orion Poplawski 5ebf70
* Wed Apr 1 2015 Orion Poplawski <orion@cora.nwra.com> - 2.5.6-3
Orion Poplawski 5ebf70
- Fix URL
Orion Poplawski 5ebf70
eada24
* Tue Mar 10 2015 José Matos <jamatos@fedoraproject.org> - 2.5.6-2
eada24
- R 3.1.3
eada24
9aa30d
* Fri Feb 13 2015 José Matos <jamatos@fedoraproject.org> - 2.5.6-1
9aa30d
- update to 2.5.6
9aa30d
91c7e0
* Mon Jan 26 2015 David Tardon <dtardon@redhat.com> - 2.5.2-2
91c7e0
- rebuild for ICU 54.1
91c7e0
d49b4f
* Fri Nov 28 2014 José Matos <jamatos@fedoraproject.org> - 2.5.2-1
d49b4f
- update to 2.5.2
d49b4f
c51321
* Fri Nov 14 2014 José Matos <jamatos@fedoraproject.org> - 2.5.1-1
c51321
- update to 2.5.1
c51321
- add python3 subpackage
c51321
b2424c
* Sat Nov  1 2014 Tom Callaway <spot@fedoraproject.org> - 2.4.4-1
b2424c
- update to 2.4.4
b2424c
- R 3.1.2
b2424c
bd4f2c
* Wed Sep 24 2014 José Matos <jamatos@fedoraproject.org> - 2.4.3-1
bd4f2c
- update to 2.4.3
bd4f2c
c9ab76
* Tue Aug 26 2014 David Tardon <dtardon@redhat.com> - 2.4.2-3
c9ab76
- rebuild for ICU 53.1
c9ab76
ea5377
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.2-2
ea5377
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
ea5377
e90d4b
* Wed Jul 16 2014 Tom Callaway <spot@fedoraproject.org> - 2.4.2-1
e90d4b
- update to 2.4.2
e90d4b
- R 3.1.1
e90d4b
bcf821
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.10-2
bcf821
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
bcf821
169fe4
* Mon Apr 21 2014 Tom Callaway <spot@fedoraproject.org> - 2.3.10-1
169fe4
- update to 2.3.10
169fe4
- R 3.1.0
169fe4
989e81
* Sun Mar 23 2014 Tom Callaway <spot@fedoraproject.org> - 2.3.9-2
989e81
- rebuild for R 3.0.3
989e81
a7b925
* Fri Jan 31 2014 José Matos <jamatos@fedoraproject.org> - 2.3.9-1
a7b925
- update to 2.3.9
a7b925
- prepare the python3 support:
a7b925
-  add virtual provides for python-rpy
a7b925
-  change the build requirement from python-devel to python2-devel
a7b925
113383
* Tue Oct 15 2013 Tom Callaway <spot@fedoraproject.org> - 2.3.8-1
113383
- update to 2.3.8, rebuild for R 3.0.2
113383
4dea77
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.6-3
4dea77
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
4dea77
9fad94
* Fri May 17 2013 Tom Callaway <spot@fedoraproject.org> - 2.3.6-2
9fad94
- rebuild for R 3.0.1
9fad94
924ae0
* Mon May  6 2013 José Matos <jamatos@fedoraproject.org> - 2.3.6-1
924ae0
- update to 2.3.6
924ae0
9d5b4c
* Thu Apr 11 2013 Tom Callaway <spot@fedoraproject.org> - 2.3.5-1
9d5b4c
- update to 2.3.5, built against R 3.0.0
9d5b4c
74fa5b
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0-0.2.beta1
74fa5b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
74fa5b
d50f53
* Mon Oct 29 2012 Tom Callaway <spot@fedoraproject.org> - 2.3.0-0.1.beta1
d50f53
- update to 2.3.0beta1
d50f53
9d2c1a
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.6-2
9d2c1a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
9d2c1a
e90d4b
* Wed Jul  4 2012 Tom Callaway <spot@fedoraproject.org> - 2.2.6-1
93a041
- update to 2.2.6, R 2.15.1
93a041
b30ed7
* Sat Mar 31 2012 Tom Callaway <spot@fedoraproject.org> - 2.2.5-1
b30ed7
- update to 2.2.5, R 2.15.0
b30ed7
a6c619
* Fri Jan  6 2012 José Matos <jamatos@fedoraproject.org> - 2.2.4-2
a6c619
- rebuild for R 2.14.1
a6c619
79644d
* Wed Nov  9 2011 Tom Callaway <spot@fedoraproject.org> - 2.2.4-1
79644d
- update to 2.2.4
79644d
- rebuild for R 2.14.0
79644d
7bc0c7
* Fri Oct  7 2011 Tom Callaway <spot@fedoraproject.org> - 2.2.3-1
7bc0c7
- update to 2.2.3
7bc0c7
- rebuild for R 2.13.2
7bc0c7
6355cb
* Mon Jul 11 2011 Tom Callaway <spot@fedoraproject.org> - 2.2.1-2
6355cb
- add BuildRequires: readline-devel
6355cb
0c4281
* Mon Jul 11 2011 Tom Callaway <spot@fedoraproject.org> - 2.2.1-1
0c4281
- update to 2.2.1, note R at 2.13.1
0c4281
- spec file modernization
0c4281
Michel Alexandre Salim 363481
* Fri Apr 15 2011 Michel Salim <salimma@fedoraproject.org> - 2.1.9-4
Michel Alexandre Salim 363481
- Rebuild for R 2.13.0
Michel Alexandre Salim 363481
a658b0
* Sun Feb 27 2011 Tom Callaway <spot@fedoraproject.org> - 2.1.9-3
a658b0
- rebuild for R 2.12.2
a658b0
4b1ded
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.9-2
4b1ded
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
4b1ded
a1cf67
* Fri Dec 17 2010 Tom Callaway <spot@fedoraproject.org> - 2.1.9-1
a1cf67
- update to 2.1.9
a1cf67
f89c0f
* Wed Oct 20 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 2.1.7-1
f89c0f
- update to 2.1.7
f89c0f
d97299
* Mon Jul 26 2010 David Malcolm <dmalcolm@redhat.com> - 2.1.3-3
d97299
- generalize reference to 2.6 to 2.? in %%install
d97299
4066fc
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 2.1.3-2
4066fc
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
4066fc
3a1fdd
* Tue Jun  1 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 2.1.3-1
3a1fdd
- update to 2.1.3
3a1fdd
535469
* Fri Apr 23 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 2.1.0-1
535469
- update to 2.1.0
535469
d4b649
* Thu Apr  8 2010 José Matos <jamatos@fc.up.pt> - 2.0.8-2
d4b649
- Rebuild for new numpy.
d4b649
b32f59
* Mon Jan 25 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 2.0.8-1
b32f59
- update to 2.0.8
b32f59
ec3fa2
* Tue Dec 29 2009 Alex Lancaster <alexlan[at]fedoraproject org=""> - 2.0.6-7
ec3fa2
- Rebuild for new R (2.10.1)
ec3fa2
0f5e0e
* Thu Nov  5 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 2.0.6-7
0f5e0e
- rebuild for R 2.10.0
0f5e0e
baafd5
* Mon Sep 21 2009 José Matos <jamatos@fc.up.pt> - 2.0.6-6
baafd5
- require at runtime just R-core
baafd5
264d02
* Mon Aug 24 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 2.0.6-5
264d02
- rebuild for R 2.9.2
264d02
e2df96
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.6-4
e2df96
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
e2df96
f222c1
* Fri Jul 10 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 2.0.6-3
21a3b0
- images are only installed incorrectly on 64bit platforms that aren't ia64
21a3b0
9fcdc6
* Thu Jul  9 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 2.0.6-1
9fcdc6
- rebuild for R 2.9.1
9fcdc6
- update to rpy2 2.0.6
9fcdc6
bd7ca6
* Fri Apr 17 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 2.0.3-2
bd7ca6
- rebuild for R 2.9.0
bd7ca6
5f3b8f
* Fri Mar 20 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 2.0.3-1
5f3b8f
- update to rpy2 2.0.3
5f3b8f
ccd6c2
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-7
ccd6c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
ccd6c2
24c3af
* Mon Dec 22 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0.3-6
24c3af
- rebuild for R 2.8.1
24c3af
67f48a
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.0.3-5
67f48a
- Rebuild for Python 2.6
67f48a
bf50a8
* Sun Oct 26 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0.3-4
bf50a8
- rebuild against R-2.8.0
bf50a8
293681
* Fri Aug 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0.3-3
293681
- rebuild against R-2.7.2
293681
40baa8
* Tue Jul  8 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0.3-2
40baa8
- rebuild against R 2.7.1
40baa8
75810a
* Wed May 21 2008 José Matos <jamatos[at]fc.up.pt> - 1.0.3-1
75810a
- Update to 1.0.3
75810a
- Backport two patches from upstream (turn off debug and use the lapack version that R was compiled with)
75810a
a6f8ff
* Tue Apr 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0.2-1
a6f8ff
- update to 1.0.2
a6f8ff
- R 2.7.0
a6f8ff
a51fb6
* Wed Feb 13 2008 José Matos <jamatos[at]fc.up.pt> - 1.0.1-5
a51fb6
- BR texinfo -> texinfo-tex
a51fb6
b975b2
* Wed Feb 13 2008 José Matos <jamatos[at]fc.up.pt> - 1.0.1-4
b975b2
- Rebuild for gcc 4.3
b975b2
c4d2e1
* Fri Feb  8 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0.1-3
c4d2e1
- rebuild for R 2.6.2
c4d2e1
1730c1
* Mon Feb  4 2008 José Matos <jamatos[at]fc.up.pt> - 1.0.1-2
1730c1
- Sometimes _patch_'s guesses are not good enough. Redo patch to setup.py.
1730c1
2c17da
* Sun Feb  3 2008 José Matos <jamatos[at]fc.up.pt> - 1.0.1-1
2c17da
- New upstream release.
2c17da
116cd2
* Mon Jan  7 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0-0.7.RC3
116cd2
- find the moved R headers in their new home (/usr/include/R)
116cd2
18429a
* Mon Jan  7 2008 Alex Lancaster <alexlan[at]fedoraproject org=""> - 1.0-0.6.RC3
18429a
- BuildRequires: R-devel rather than just R
18429a
cf20ff
* Mon Nov 26 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0-0.5.RC3
cf20ff
- really rebuild against R 2.6.1
cf20ff
- versioned buildrequires for R
cf20ff
464732
* Mon Nov 26 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0-0.4.RC3
464732
- rebuild against R 2.6.1
464732
3a0578
* Mon Oct  8 2007 José Matos <jamatos[at]fc.up.pt> - 1.0-0.3.RC3
3a0578
- Rebuild for R 2.6.0 (really).
3a0578
8dbb07
* Fri Oct  5 2007 José Matos <jamatos[at]fc.up.pt> - 1.0-0.2.RC3
8dbb07
- Rebuild for R version 2.6.
8dbb07
1304c8
* Wed Aug 29 2007 José Matos <jamatos[at]fc.up.pt> - 1.0-0.1.RC3
1304c8
- New upstream version.
1304c8
- Change from python-numeric to numpy package.
1304c8
37576e
* Tue Aug 28 2007 José Matos <jamatos[at]fc.up.pt> - 0.4.6-18
37576e
- License fix, rebuild for devel (F8).
37576e
ee5b7b
* Fri Jul  6 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 0.4.6-17
ee5b7b
- Rebuild to link with R 2.5.1
ee5b7b
e65177
* Thu Apr 26 2007 José Matos <jamatos[at]fc.up.pt> - 0.4.6-16
e65177
- Rebuild to link with R 2.5.0
e65177
e68d4e
* Thu Dec 21 2006 Tom "spot" Callaway <tcallawa@redhat.com> - 0.4.6-15
e68d4e
- Rebuild for new R-version.
e68d4e
f046ae
* Tue Dec 12 2006 José Matos <jamatos[at]fc.up.pt> - 0.4.6-14
f046ae
- Rebuild for python 2.5.
f046ae
65c5be
* Tue Oct 17 2006 José Matos <jamatos[at]fc.up.pt> - 0.4.6-13
65c5be
- Rebuild for new R-version.
65c5be
e4a56f
* Thu Sep 14 2006 José Matos <jamatos[at]fc.up.pt> - 0.4.6-12
e4a56f
- Rebuild for FC6.
e4a56f
e4a56f
* Sun Jun  4 2006 José Matos <jamatos[at]fc.up.pt> - 0.4.6-11
eb52a3
- Rebuild for R-2.3.1
eb52a3
e4a56f
* Wed Apr 26 2006 José Matos <jamatos[at]fc.up.pt> - 0.4.6-10
30bba6
- BuildRequires tetex for "make pdf" (pdftex).
30bba6
e4a56f
* Wed Apr 26 2006 José Matos <jamatos[at]fc.up.pt> - 0.4.6-9
172da4
- Fix detection of R version.
172da4
e4a56f
* Wed Apr 26 2006 José Matos <jamatos[at]fc.up.pt> - 0.4.6-8
99a603
- Rebuild for R-2.3.0
99a603
e4a56f
* Fri Feb 17 2006 Alex Lancaster <alexl[at]users.sourceforge.net> - 0.4.6-7
d4ddba
- Build info docs (bz#169002).
d4ddba
- Build pdf and html documentation, clean doc directory. (jamatos)
d4ddba
e4a56f
* Thu Feb 16 2006 José Matos <jamatos[at]fc.up.pt> - 0.4.6-6
334f8e
- Use a fixed value for R version.
334f8e
e4a56f
* Thu Feb 16 2006 José Matos <jamatos[at]fc.up.pt> - 0.4.6-5
96255a
- Set explicit dependency on exact version of R used to build the package. (bz#177078)
96255a
e4a56f
* Tue Jan  3 2006 José Matos <jamatos[at]fc.up.pt> - 0.4.6-4
07ea34
- Update for R-2.2.1
07ea34
e4a56f
* Tue Oct 11 2005 José Matos <jamatos[at]fc.up.pt> - 0.4.6-3
e3aec8
- Another try to deal with make tag.
e3aec8
e4a56f
* Mon Oct 10 2005 José Matos <jamatos[at]fc.up.pt> - 0.4.6-2
de3ae1
- Rebuild for R-2.2.0
de3ae1
e4a56f
* Thu Sep 15 2005 José Matos <jamatos[at]fc.up.pt> - 0.4.6-1
9e437a
- Initial package for Fedora Extras