9e437ac
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
9e437ac
a6f8ffc
%define rver   2.7.0
1304c86
Name:          rpy
1304c86
Summary:       Python interface to the R language
a6f8ffc
Version:       1.0.2
a6f8ffc
Release:       1%{?dist}
1304c86
Url:           http://rpy.sourceforge.net
2c17da2
Source:        http://downloads.sf.net/%{name}/%{name}-%{version}.tar.gz
1304c86
License:       GPLv2+
1304c86
Group:         Development/Libraries
1304c86
BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
1730c1d
Patch0:        rpy-1.0.1-FHSinclude.patch
1304c86
a51fb69
BuildRequires: R-devel = %{rver}, numpy, python-devel, texinfo-tex, tetex
1304c86
1304c86
Requires:      numpy
1730c1d
Requires:      R = %{rver}
1304c86
d4ddba0
Requires(post): /sbin/install-info
d4ddba0
Requires(preun): /sbin/install-info
9e437ac
9e437ac
%description
9e437ac
RPy provides a robust Python interface to the R
9e437ac
programming language.  It can manage all kinds of R objects and can
9e437ac
execute arbitrary R functions. All the errors from the R language are
9e437ac
converted to Python exceptions.
9e437ac
2c17da2
%prep
2c17da2
%setup -q
1730c1d
# The R headers are now in /usr/include/R (for F9+)
1730c1d
%patch0
9e437ac
9e437ac
%build
9e437ac
env CFLAGS="$RPM_OPT_FLAGS" python setup.py build
d4ddba0
cd doc
1304c86
makeinfo --html rpy.texi
1304c86
makeinfo --html rpy.texi
d4ddba0
mv rpy manual
d4ddba0
make pdf
d4ddba0
make info
9e437ac
9e437ac
%install
9e437ac
rm -rf $RPM_BUILD_ROOT
9e437ac
python setup.py install -O1 --skip-build --root=$RPM_BUILD_ROOT
d4ddba0
cd doc
d4ddba0
install -d $RPM_BUILD_ROOT/%{_infodir}
d4ddba0
install rpy.info $RPM_BUILD_ROOT/%{_infodir}
9e437ac
9e437ac
%clean
9e437ac
rm -rf $RPM_BUILD_ROOT
9e437ac
d4ddba0
%post
d4ddba0
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
d4ddba0
d4ddba0
%preun
d4ddba0
if [ $1 = 0 ]; then
d4ddba0
    /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
d4ddba0
fi
d4ddba0
9e437ac
9e437ac
%files
9e437ac
%defattr(-,root,root)
1304c86
%doc NEWS README examples/
1304c86
%doc doc/rpy.pdf doc/manual/
d4ddba0
%{_infodir}/rpy.info*
9e437ac
%{python_sitearch}/*
9e437ac
9e437ac
9e437ac
%changelog
a6f8ffc
* Tue Apr 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0.2-1
a6f8ffc
- update to 1.0.2
a6f8ffc
- R 2.7.0
a6f8ffc
a51fb69
* Wed Feb 13 2008 José Matos <jamatos[AT]fc.up.pt> - 1.0.1-5
a51fb69
- BR texinfo -> texinfo-tex
a51fb69
b975b2b
* Wed Feb 13 2008 José Matos <jamatos[AT]fc.up.pt> - 1.0.1-4
b975b2b
- Rebuild for gcc 4.3
b975b2b
c4d2e18
* Fri Feb  8 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0.1-3
c4d2e18
- rebuild for R 2.6.2
c4d2e18
1730c1d
* Mon Feb  4 2008 José Matos <jamatos[AT]fc.up.pt> - 1.0.1-2
1730c1d
- Sometimes _patch_'s guesses are not good enough. Redo patch to setup.py.
1730c1d
2c17da2
* Sun Feb  3 2008 José Matos <jamatos[AT]fc.up.pt> - 1.0.1-1
2c17da2
- New upstream release.
2c17da2
116cd24
* Mon Jan  7 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0-0.7.RC3
116cd24
- find the moved R headers in their new home (/usr/include/R)
116cd24
18429a2
* Mon Jan  7 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 1.0-0.6.RC3
18429a2
- BuildRequires: R-devel rather than just R
18429a2
cf20ff3
* Mon Nov 26 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0-0.5.RC3
cf20ff3
- really rebuild against R 2.6.1
cf20ff3
- versioned buildrequires for R
cf20ff3
4647322
* Mon Nov 26 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0-0.4.RC3
4647322
- rebuild against R 2.6.1
4647322
3a05784
* Mon Oct  8 2007 José Matos <jamatos[AT]fc.up.pt> - 1.0-0.3.RC3
3a05784
- Rebuild for R 2.6.0 (really).
3a05784
8dbb077
* Fri Oct  5 2007 José Matos <jamatos[AT]fc.up.pt> - 1.0-0.2.RC3
8dbb077
- Rebuild for R version 2.6.
8dbb077
1304c86
* Wed Aug 29 2007 José Matos <jamatos[AT]fc.up.pt> - 1.0-0.1.RC3
1304c86
- New upstream version.
1304c86
- Change from python-numeric to numpy package.
1304c86
37576ec
* Tue Aug 28 2007 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-18
37576ec
- License fix, rebuild for devel (F8).
37576ec
ee5b7b5
* Fri Jul  6 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 0.4.6-17
ee5b7b5
- Rebuild to link with R 2.5.1
ee5b7b5
e651777
* Thu Apr 26 2007 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-16
e651777
- Rebuild to link with R 2.5.0
e651777
e68d4ee
* Thu Dec 21 2006 Tom "spot" Callaway <tcallawa@redhat.com> - 0.4.6-15
e68d4ee
- Rebuild for new R-version.
e68d4ee
f046aec
* Tue Dec 12 2006 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-14
f046aec
- Rebuild for python 2.5.
f046aec
65c5bec
* Tue Oct 17 2006 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-13
65c5bec
- Rebuild for new R-version.
65c5bec
e4a56f1
* Thu Sep 14 2006 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-12
e4a56f1
- Rebuild for FC6.
e4a56f1
e4a56f1
* Sun Jun  4 2006 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-11
eb52a31
- Rebuild for R-2.3.1
eb52a31
e4a56f1
* Wed Apr 26 2006 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-10
30bba64
- BuildRequires tetex for "make pdf" (pdftex).
30bba64
e4a56f1
* Wed Apr 26 2006 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-9
172da46
- Fix detection of R version.
172da46
e4a56f1
* Wed Apr 26 2006 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-8
99a603a
- Rebuild for R-2.3.0
99a603a
e4a56f1
* Fri Feb 17 2006 Alex Lancaster <alexl[AT]users.sourceforge.net> - 0.4.6-7
d4ddba0
- Build info docs (bz#169002).
d4ddba0
- Build pdf and html documentation, clean doc directory. (jamatos)
d4ddba0
e4a56f1
* Thu Feb 16 2006 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-6
334f8ef
- Use a fixed value for R version.
334f8ef
e4a56f1
* Thu Feb 16 2006 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-5
96255a1
- Set explicit dependency on exact version of R used to build the package. (bz#177078)
96255a1
e4a56f1
* Tue Jan  3 2006 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-4
07ea341
- Update for R-2.2.1
07ea341
e4a56f1
* Tue Oct 11 2005 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-3
e3aec8b
- Another try to deal with make tag.
e3aec8b
e4a56f1
* Mon Oct 10 2005 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-2
de3ae14
- Rebuild for R-2.2.0
de3ae14
e4a56f1
* Thu Sep 15 2005 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-1
9e437ac
- Initial package for Fedora Extras