%global __brp_check_rpaths %{nil} %global packname SIS %global packver 0.8-8 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 0.8.8 Release: 3%{?dist}%{?buildtag} Summary: Sure Independence Screening License: GPL-2 URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 3.2.4 Requires: R-core >= 3.2.4 BuildArch: noarch BuildRequires: R-CRAN-glmnet BuildRequires: R-CRAN-ncvreg BuildRequires: R-survival Requires: R-CRAN-glmnet Requires: R-CRAN-ncvreg Requires: R-survival %description Variable selection techniques are essential tools for model selection and estimation in high-dimensional statistical models. Through this publicly available package, we provide a unified environment to carry out variable selection using iterative sure independence screening (SIS) (Fan and Lv (2008)) and all of its variants in generalized linear models (Fan and Song (2009)) and the Cox proportional hazards model (Fan, Feng and Wu (2010)). %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 %files %{rlibdir}/%{packname}