%define modulename ellipse %define realver 0.3-5 %define r_library %{_libdir}/R/library Summary: Functions for drawing ellipses for R Name: R-cran-%{modulename} Version: %(echo %realver|tr '-' '.') Release: %mkrel 1 License: GPLv2+ Group: Sciences/Mathematics Url: http://cran.r-project.org/web/packages/%{modulename}/index.html Source0: http://cran.r-project.org/src/contrib/%{modulename}_%{realver}.tar.gz BuildRequires: R-base Requires: R-base BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot %description Functions for drawing ellipses and ellipse-like confidence regions for R. %prep %setup -q -c %build R CMD build %{modulename} %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} mkdir -p %{buildroot}/%{r_library} # (tpg) install R CMD INSTALL %{modulename} --library=%{buildroot}/%{r_library} # (tpg) provided by R-base rm -rf %{buildroot}/%{r_library}/R.css %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files %defattr(-,root,root) %{r_library}/%{modulename} %changelog * Wed Jun 25 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 0.3.5-1mdv2009.0 + Revision: 228933 - import R-cran-ellipse