2005-09-15 16:17:23 +00:00
|
|
|
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
|
|
2008-02-04 12:40:34 +00:00
|
|
|
%define rver 2.6.1
|
2007-08-29 17:36:29 +00:00
|
|
|
Name: rpy
|
|
|
|
Summary: Python interface to the R language
|
2008-02-03 18:21:32 +00:00
|
|
|
Version: 1.0.1
|
2008-02-04 12:40:34 +00:00
|
|
|
Release: 2%{?dist}
|
2007-08-29 17:36:29 +00:00
|
|
|
Url: http://rpy.sourceforge.net
|
2008-02-03 18:21:32 +00:00
|
|
|
Source: http://downloads.sf.net/%{name}/%{name}-%{version}.tar.gz
|
2007-08-29 17:36:29 +00:00
|
|
|
License: GPLv2+
|
|
|
|
Group: Development/Libraries
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2008-02-04 12:40:34 +00:00
|
|
|
Patch0: rpy-1.0.1-FHSinclude.patch
|
2007-08-29 17:36:29 +00:00
|
|
|
|
2008-02-04 12:40:34 +00:00
|
|
|
BuildRequires: R-devel = %{rver}, numpy, python-devel, texinfo, tetex
|
2007-08-29 17:36:29 +00:00
|
|
|
|
|
|
|
Requires: numpy
|
2008-02-04 12:40:34 +00:00
|
|
|
Requires: R = %{rver}
|
2007-08-29 17:36:29 +00:00
|
|
|
|
2006-02-17 11:16:57 +00:00
|
|
|
Requires(post): /sbin/install-info
|
|
|
|
Requires(preun): /sbin/install-info
|
2005-09-15 16:17:23 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
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.
|
|
|
|
|
2008-02-03 18:21:32 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2008-02-04 12:40:34 +00:00
|
|
|
# The R headers are now in /usr/include/R (for F9+)
|
|
|
|
%patch0
|
2005-09-15 16:17:23 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
env CFLAGS="$RPM_OPT_FLAGS" python setup.py build
|
2006-02-17 11:16:57 +00:00
|
|
|
cd doc
|
2007-08-29 17:36:29 +00:00
|
|
|
makeinfo --html rpy.texi
|
|
|
|
makeinfo --html rpy.texi
|
2006-02-17 11:16:57 +00:00
|
|
|
mv rpy manual
|
|
|
|
make pdf
|
|
|
|
make info
|
2005-09-15 16:17:23 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
python setup.py install -O1 --skip-build --root=$RPM_BUILD_ROOT
|
2006-02-17 11:16:57 +00:00
|
|
|
cd doc
|
|
|
|
install -d $RPM_BUILD_ROOT/%{_infodir}
|
|
|
|
install rpy.info $RPM_BUILD_ROOT/%{_infodir}
|
2005-09-15 16:17:23 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2006-02-17 11:16:57 +00:00
|
|
|
%post
|
|
|
|
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
|
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ $1 = 0 ]; then
|
|
|
|
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
|
|
|
|
fi
|
|
|
|
|
2005-09-15 16:17:23 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2007-08-29 17:36:29 +00:00
|
|
|
%doc NEWS README examples/
|
|
|
|
%doc doc/rpy.pdf doc/manual/
|
2006-02-17 11:16:57 +00:00
|
|
|
%{_infodir}/rpy.info*
|
2005-09-15 16:17:23 +00:00
|
|
|
%{python_sitearch}/*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2008-02-04 12:40:34 +00:00
|
|
|
* Mon Feb 4 2008 José Matos <jamatos[AT]fc.up.pt> - 1.0.1-2
|
|
|
|
- Sometimes _patch_'s guesses are not good enough. Redo patch to setup.py.
|
|
|
|
|
2008-02-03 18:21:32 +00:00
|
|
|
* Sun Feb 3 2008 José Matos <jamatos[AT]fc.up.pt> - 1.0.1-1
|
|
|
|
- New upstream release.
|
|
|
|
|
2008-01-08 00:47:30 +00:00
|
|
|
* Mon Jan 7 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0-0.7.RC3
|
|
|
|
- find the moved R headers in their new home (/usr/include/R)
|
|
|
|
|
2008-01-08 00:19:56 +00:00
|
|
|
* Mon Jan 7 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 1.0-0.6.RC3
|
|
|
|
- BuildRequires: R-devel rather than just R
|
|
|
|
|
2007-11-27 01:17:44 +00:00
|
|
|
* Mon Nov 26 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0-0.5.RC3
|
|
|
|
- really rebuild against R 2.6.1
|
|
|
|
- versioned buildrequires for R
|
|
|
|
|
2007-11-26 22:28:34 +00:00
|
|
|
* Mon Nov 26 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0-0.4.RC3
|
|
|
|
- rebuild against R 2.6.1
|
|
|
|
|
2007-10-08 15:11:43 +00:00
|
|
|
* Mon Oct 8 2007 José Matos <jamatos[AT]fc.up.pt> - 1.0-0.3.RC3
|
|
|
|
- Rebuild for R 2.6.0 (really).
|
|
|
|
|
2007-10-05 07:10:15 +00:00
|
|
|
* Fri Oct 5 2007 José Matos <jamatos[AT]fc.up.pt> - 1.0-0.2.RC3
|
|
|
|
- Rebuild for R version 2.6.
|
|
|
|
|
2007-08-29 17:36:29 +00:00
|
|
|
* Wed Aug 29 2007 José Matos <jamatos[AT]fc.up.pt> - 1.0-0.1.RC3
|
|
|
|
- New upstream version.
|
|
|
|
- Change from python-numeric to numpy package.
|
|
|
|
|
2007-08-28 21:43:15 +00:00
|
|
|
* Tue Aug 28 2007 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-18
|
|
|
|
- License fix, rebuild for devel (F8).
|
|
|
|
|
2007-07-06 19:18:44 +00:00
|
|
|
* Fri Jul 6 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 0.4.6-17
|
|
|
|
- Rebuild to link with R 2.5.1
|
|
|
|
|
2007-04-26 10:09:54 +00:00
|
|
|
* Thu Apr 26 2007 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-16
|
|
|
|
- Rebuild to link with R 2.5.0
|
|
|
|
|
2006-12-21 19:16:06 +00:00
|
|
|
* Thu Dec 21 2006 Tom "spot" Callaway <tcallawa@redhat.com> - 0.4.6-15
|
|
|
|
- Rebuild for new R-version.
|
|
|
|
|
2006-12-12 00:34:42 +00:00
|
|
|
* Tue Dec 12 2006 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-14
|
|
|
|
- Rebuild for python 2.5.
|
|
|
|
|
2006-10-17 14:44:29 +00:00
|
|
|
* Tue Oct 17 2006 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-13
|
|
|
|
- Rebuild for new R-version.
|
|
|
|
|
2006-09-14 12:49:48 +00:00
|
|
|
* Thu Sep 14 2006 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-12
|
|
|
|
- Rebuild for FC6.
|
|
|
|
|
|
|
|
* Sun Jun 4 2006 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-11
|
2006-06-04 21:38:32 +00:00
|
|
|
- Rebuild for R-2.3.1
|
|
|
|
|
2006-09-14 12:49:48 +00:00
|
|
|
* Wed Apr 26 2006 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-10
|
2006-04-26 14:44:19 +00:00
|
|
|
- BuildRequires tetex for "make pdf" (pdftex).
|
|
|
|
|
2006-09-14 12:49:48 +00:00
|
|
|
* Wed Apr 26 2006 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-9
|
2006-04-26 11:47:36 +00:00
|
|
|
- Fix detection of R version.
|
|
|
|
|
2006-09-14 12:49:48 +00:00
|
|
|
* Wed Apr 26 2006 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-8
|
2006-04-26 10:55:02 +00:00
|
|
|
- Rebuild for R-2.3.0
|
|
|
|
|
2006-09-14 12:49:48 +00:00
|
|
|
* Fri Feb 17 2006 Alex Lancaster <alexl[AT]users.sourceforge.net> - 0.4.6-7
|
2006-02-17 11:16:57 +00:00
|
|
|
- Build info docs (bz#169002).
|
|
|
|
- Build pdf and html documentation, clean doc directory. (jamatos)
|
|
|
|
|
2006-09-14 12:49:48 +00:00
|
|
|
* Thu Feb 16 2006 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-6
|
2006-02-17 00:06:57 +00:00
|
|
|
- Use a fixed value for R version.
|
|
|
|
|
2006-09-14 12:49:48 +00:00
|
|
|
* Thu Feb 16 2006 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-5
|
2006-02-16 11:50:28 +00:00
|
|
|
- Set explicit dependency on exact version of R used to build the package. (bz#177078)
|
|
|
|
|
2006-09-14 12:49:48 +00:00
|
|
|
* Tue Jan 3 2006 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-4
|
2006-01-03 23:32:47 +00:00
|
|
|
- Update for R-2.2.1
|
|
|
|
|
2006-09-14 12:49:48 +00:00
|
|
|
* Tue Oct 11 2005 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-3
|
2005-10-11 07:41:26 +00:00
|
|
|
- Another try to deal with make tag.
|
|
|
|
|
2006-09-14 12:49:48 +00:00
|
|
|
* Mon Oct 10 2005 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-2
|
2005-10-10 18:12:52 +00:00
|
|
|
- Rebuild for R-2.2.0
|
|
|
|
|
2006-09-14 12:49:48 +00:00
|
|
|
* Thu Sep 15 2005 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-1
|
2005-09-15 16:17:23 +00:00
|
|
|
- Initial package for Fedora Extras
|