%global __brp_check_rpaths %{nil} %global packname NormPsy %global packver 1.0.8 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 1.0.8 Release: 3%{?dist}%{?buildtag} Summary: Normalisation of Psychometric Tests License: GPL URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 2.14.0 Requires: R-core >= 2.14.0 BuildRequires: R-CRAN-lcmm >= 1.7.1 BuildRequires: R-utils Requires: R-CRAN-lcmm >= 1.7.1 Requires: R-utils %description Functions for normalizing psychometric test scores. The normalization aims at correcting the metrological properties of the psychometric tests such as the ceiling and floor effects and the curvilinearity (unequal interval scaling). Functions to compute and plot predictions in the natural scale of the psychometric test from the estimates of a linear mixed model estimated on the normalized scores are also provided. See Philipps et al (2014) for details. %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}