%global __brp_check_rpaths %{nil} %global packname ggdmc %global packver 0.2.6.0 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 0.2.6.0 Release: 3%{?dist}%{?buildtag} Summary: Cognitive Models License: GPL-2 URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 3.3.0 Requires: R-core >= 3.3.0 BuildRequires: R-CRAN-data.table >= 1.10.4 BuildRequires: R-CRAN-RcppArmadillo >= 0.7.100.3.0 BuildRequires: R-CRAN-Rcpp >= 0.12.10 BuildRequires: R-CRAN-coda BuildRequires: R-stats BuildRequires: R-utils BuildRequires: R-CRAN-ggplot2 BuildRequires: R-CRAN-matrixStats Requires: R-CRAN-data.table >= 1.10.4 Requires: R-CRAN-Rcpp >= 0.12.10 Requires: R-CRAN-coda Requires: R-stats Requires: R-utils Requires: R-CRAN-ggplot2 Requires: R-CRAN-matrixStats %description Hierarchical Bayesian models. The package provides tools to fit two response time models, using the population-based Markov Chain Monte Carlo. %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}