%global __brp_check_rpaths %{nil} %global packname recorder %global packver 0.8.2 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 0.8.2 Release: 3%{?dist}%{?buildtag} Summary: Toolkit to Validate New Data for a Predictive Model License: MIT + file LICENSE URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 3.4.0 Requires: R-core >= 3.4.0 BuildArch: noarch BuildRequires: R-CRAN-data.table BuildRequires: R-CRAN-crayon Requires: R-CRAN-data.table Requires: R-CRAN-crayon %description A lightweight toolkit to validate new observations when computing their predictions with a predictive model. The validation process consists of two steps: (1) record relevant statistics and meta data of the variables in the original training data for the predictive model and (2) use these data to run a set of basic validation tests on the new set of observations. %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}