%global __brp_check_rpaths %{nil} %global packname MLCIRTwithin %global packver 2.1.1 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 2.1.1 Release: 3%{?dist}%{?buildtag} Summary: Latent Class Item Response Theory (LC-IRT) Models underWithin-Item Multidimensionality License: GPL (>= 2) URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 2.0.0 Requires: R-core >= 2.0.0 BuildArch: noarch BuildRequires: R-MASS BuildRequires: R-CRAN-limSolve BuildRequires: R-CRAN-MultiLCIRT Requires: R-MASS Requires: R-CRAN-limSolve Requires: R-CRAN-MultiLCIRT %description Framework for the Item Response Theory analysis of dichotomous and ordinal polytomous outcomes under the assumption of within-item multidimensionality and discreteness of the latent traits. The fitting algorithms allow for missing responses and for different item parametrizations and are based on the Expectation-Maximization paradigm. Individual covariates affecting the class weights may be included in the new version together with possibility of constraints on all model parameters. %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}