%global packname randomForest %global rlibdir %{_libdir}/R/library Name: R-%{packname} Version: 4.6.12 Release: 1%{?dist} Summary: Breiman and Cutler's random forests for classification and regression Group: Sciences/Mathematics License: GPL (>= 2) URL: http://cran.r-project.org/web/packages/%{packname}/index.html Source0: http://cran.r-project.org/src/contrib/%{packname}_4.6-12.tar.gz Requires: R-stats Requires: R-RColorBrewer R-MASS BuildRequires: R-devel libRmath-devel texlive-collection-latex R-stats BuildRequires: R-RColorBrewer R-MASS %description Classification and regression based on a forest of trees using random %prep %setup -q -c -n %{packname} %build %install mkdir -p %{buildroot}%{rlibdir} %{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname} test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so) rm -f %{buildroot}%{rlibdir}/R.css %check %{_bindir}/R CMD check %{packname} %files %dir %{rlibdir}/%{packname} %doc %{rlibdir}/%{packname}/html %doc %{rlibdir}/%{packname}/CITATION %doc %{rlibdir}/%{packname}/DESCRIPTION %doc %{rlibdir}/%{packname}/NEWS %{rlibdir}/%{packname}/INDEX %{rlibdir}/%{packname}/NAMESPACE %{rlibdir}/%{packname}/Meta %{rlibdir}/%{packname}/R %{rlibdir}/%{packname}/data %{rlibdir}/%{packname}/help %{rlibdir}/%{packname}/libs %changelog * Thu Feb 16 2012 Paulo Andrade 4.6_6-1 + Revision: 775399 - Import R-randomForest - Import R-randomForest