135 lines
3.8 KiB
RPMSpec
135 lines
3.8 KiB
RPMSpec
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
|
%define prev RC3
|
|
%define pred .%{prev}
|
|
%define pre -%{prev}
|
|
|
|
Name: rpy
|
|
Summary: Python interface to the R language
|
|
Version: 1.0
|
|
Release: 0.3%{?pred}%{?dist}
|
|
Url: http://rpy.sourceforge.net
|
|
Source: http://dl.sf.net/%{name}/%{name}-%{version}%{?pre}.tar.gz
|
|
License: GPLv2+
|
|
Group: Development/Libraries
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRequires: R, numpy, python-devel, texinfo, tetex
|
|
|
|
Requires: numpy
|
|
Requires: R = 2.6.0
|
|
|
|
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 -n %{name}-%{version}%{?pre}
|
|
|
|
%build
|
|
env CFLAGS="$RPM_OPT_FLAGS" python setup.py build
|
|
cd doc
|
|
makeinfo --html rpy.texi
|
|
makeinfo --html rpy.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 NEWS README examples/
|
|
%doc doc/rpy.pdf doc/manual/
|
|
%{_infodir}/rpy.info*
|
|
%{python_sitearch}/*
|
|
|
|
|
|
%changelog
|
|
* Mon Oct 8 2007 José Matos <jamatos[AT]fc.up.pt> - 1.0-0.3.RC3
|
|
- Rebuild for R 2.6.0 (really).
|
|
|
|
* Fri Oct 5 2007 José Matos <jamatos[AT]fc.up.pt> - 1.0-0.2.RC3
|
|
- Rebuild for R version 2.6.
|
|
|
|
* 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.
|
|
|
|
* Tue Aug 28 2007 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-18
|
|
- License fix, rebuild for devel (F8).
|
|
|
|
* Fri Jul 6 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 0.4.6-17
|
|
- Rebuild to link with R 2.5.1
|
|
|
|
* Thu Apr 26 2007 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-16
|
|
- Rebuild to link with R 2.5.0
|
|
|
|
* Thu Dec 21 2006 Tom "spot" Callaway <tcallawa@redhat.com> - 0.4.6-15
|
|
- Rebuild for new R-version.
|
|
|
|
* Tue Dec 12 2006 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-14
|
|
- Rebuild for python 2.5.
|
|
|
|
* Tue Oct 17 2006 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-13
|
|
- Rebuild for new R-version.
|
|
|
|
* 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
|
|
- Rebuild for R-2.3.1
|
|
|
|
* Wed Apr 26 2006 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-10
|
|
- BuildRequires tetex for "make pdf" (pdftex).
|
|
|
|
* Wed Apr 26 2006 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-9
|
|
- Fix detection of R version.
|
|
|
|
* Wed Apr 26 2006 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-8
|
|
- Rebuild for R-2.3.0
|
|
|
|
* 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)
|
|
|
|
* Thu Feb 16 2006 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-6
|
|
- Use a fixed value for R version.
|
|
|
|
* 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)
|
|
|
|
* Tue Jan 3 2006 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-4
|
|
- Update for R-2.2.1
|
|
|
|
* Tue Oct 11 2005 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-3
|
|
- Another try to deal with make tag.
|
|
|
|
* Mon Oct 10 2005 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-2
|
|
- Rebuild for R-2.2.0
|
|
|
|
* Thu Sep 15 2005 José Matos <jamatos[AT]fc.up.pt> - 0.4.6-1
|
|
- Initial package for Fedora Extras
|