%global __brp_check_rpaths %{nil} %global packname NPCD %global packver 1.0-11 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 1.0.11 Release: 3%{?dist}%{?buildtag} Summary: Nonparametric Methods for Cognitive Diagnosis License: LGPL (>= 2.1) URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 2.14.2 Requires: R-core >= 2.14.2 BuildArch: noarch BuildRequires: R-CRAN-BB BuildRequires: R-CRAN-R.methodsS3 Requires: R-CRAN-BB Requires: R-CRAN-R.methodsS3 %description An array of nonparametric and parametric estimation methods for cognitive diagnostic models, including nonparametric classification of examinee attribute profiles, joint maximum likelihood estimation (JMLE) of examinee attribute profiles and item parameters, and nonparametric refinement of the Q-matrix, as well as conditional maximum likelihood estimation (CMLE) of examinee attribute profiles given item parameters and CMLE of item parameters given examinee attribute profiles. Currently the nonparametric methods in the package support both conjunctive and disjunctive models, and the parametric methods in the package support the DINA model, the DINO model, the NIDA model, the G-NIDA model, and the R-RUM model. %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}