54 lines
1.3 KiB
RPMSpec
54 lines
1.3 KiB
RPMSpec
%{!?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
|
|
Release: 3%{?dist}
|
|
Url: http://rpy.sourceforge.net
|
|
Source0: http://dl.sf.net/%{name}/%{name}-%{version}.tar.gz
|
|
License: GPL
|
|
Group: Development/Libraries
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRequires: R, python-numeric, python-devel
|
|
Requires: R, python-numeric
|
|
|
|
%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
|
|
|
|
|
|
%build
|
|
env CFLAGS="$RPM_OPT_FLAGS" python setup.py build
|
|
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
python setup.py install -O1 --skip-build --root=$RPM_BUILD_ROOT
|
|
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc COPYING NEWS README examples/ doc/
|
|
%{python_sitearch}/*
|
|
|
|
|
|
%changelog
|
|
* Tue Oct 11 2005 Jose' Matos <jamatos@fc.up.pt> - 0.4.6-3
|
|
- Another try to deal with make tag.
|
|
|
|
* Mon Oct 10 2005 Jose' Matos <jamatos@fc.up.pt> - 0.4.6-2
|
|
- Rebuild for R-2.2.0
|
|
|
|
* Thu Sep 15 2005 Jose Matos <jamatos@fc.up.pt> - 0.4.6-1
|
|
- Initial package for Fedora Extras
|