rpy/rpy.spec

106 lines
2.9 KiB
RPMSpec
Raw Normal View History

%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Name: rpy
Summary: Python interface to the R language
Version: 0.4.6
2006-09-14 12:49:48 +00:00
Release: 12%{?dist}
Url: http://rpy.sourceforge.net
Source0: http://dl.sf.net/%{name}/%{name}-%{version}.tar.gz
Patch1: rpy-install-info.patch
2006-04-26 11:47:36 +00:00
Patch2: rpy-rversion.patch
License: GPL
Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: R, python-numeric, python-devel, texinfo, tetex
Requires: python-numeric
2006-06-04 21:38:32 +00:00
Requires: R = 2.3.1
Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info
%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.
%prep
%setup
%patch1 -p1 -b .install-info
2006-04-26 11:47:36 +00:00
%patch2 -p1
%build
env CFLAGS="$RPM_OPT_FLAGS" python setup.py build
cd doc
makeinfo --html manual.texi
makeinfo --html manual.texi
mv rpy manual
make pdf
make info
%install
rm -rf $RPM_BUILD_ROOT
python setup.py install -O1 --skip-build --root=$RPM_BUILD_ROOT
cd doc
install -d $RPM_BUILD_ROOT/%{_infodir}
install rpy.info $RPM_BUILD_ROOT/%{_infodir}
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
%preun
if [ $1 = 0 ]; then
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
fi
%files
%defattr(-,root,root)
%doc COPYING NEWS README examples/
%doc doc/manual.pdf doc/manual/
%{_infodir}/rpy.info*
%{python_sitearch}/*
%changelog
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
- 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
- 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
- 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
- Initial package for Fedora Extras