Sophie

Sophie

distrib > Mandriva > 9.0 > i586 > media > contrib-src > by-pkgid > 50d018c10ecaebef982f06c39d1b3aa5 > files > 2

R-recommended-1.5.1-2mdk.src.rpm

%define ver	1.5.1
%define rel	2mdk

Summary: Recommended packages for R
Name: R-recommended
Version: %{ver}
Release: %{rel}
Source0: ftp://cran.r-project.org/pub/R/src/base/R-%{ver}-recommended.tar.bz2
License: GPL
Group: Sciences/Mathematics
URL: http://www.r-project.org
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: R-base
Requires: R-base >= %{ver}

%description
Packages for the R language recommended by the core team: 
boot, cluster, foreign, mgcv, KernSmooth, nlme, rpart, survival, VR.

%prep
%setup -q -n R-%{ver}-recommended

%install
%__rm -rf %{buildroot}
mkdir -p %{buildroot}/%{_libdir}/R/library
R CMD INSTALL *.tar.gz -l %{buildroot}/%{_libdir}/R/library

%files 
%defattr(-, root, root)
%{_libdir}/R/library

%clean
%__rm -rf %{buildroot}

%post 
%{_bindir}/R CMD perl %{_libdir}/R/share/perl/build-help.pl --htmllists
cat %{_libdir}/R/library/*/CONTENTS > %{_libdir}/R/doc/html/search/index.txt

%postun
%{_bindir}/R CMD perl %{_libdir}/R/share/perl/build-help.pl --htmllists
cat %{_libdir}/R/library/*/CONTENTS > %{_libdir}/R/doc/html/search/index.txt

%changelog
* Wed Jul 24 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.5.1-2mdk
- rebuild for new readline

* Thu Jul 04 2002 Giuseppe Ghibò <ghibo@mandrakesoft.com> 1.5.1-1mdk
- updated to release 1.5.1.

* Sat Feb 09 2002 Giuseppe Ghibò <ghibo@mandrakesoft.com> 1.4.1-2mdk
- rebuilt with latest R-base.

* Fri Feb 08 2002 Giuseppe Ghibò <ghibo@mandrakesoft.com> 1.4.1-1mdk
- initial release based on Michele Alzetta <mikalzet@libero.it>
  spec file.
- s/Copyright/License/.
- removed unused CFLAGS in %%build stage.