%global __brp_check_rpaths %{nil} %global __requires_exclude ^libmpi %global packname BFpack %global packver 1.2.3 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 1.2.3 Release: 1%{?dist}%{?buildtag} Summary: Flexible Bayes Factor Testing of Scientific Expectations License: GPL (>= 3) URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 3.0.0 Requires: R-core >= 3.0.0 BuildRequires: R-CRAN-bain BuildRequires: R-stats BuildRequires: R-utils BuildRequires: R-CRAN-MASS BuildRequires: R-CRAN-mvtnorm BuildRequires: R-CRAN-pracma BuildRequires: R-CRAN-lme4 BuildRequires: R-CRAN-extraDistr BuildRequires: R-CRAN-ergm BuildRequires: R-CRAN-Bergm BuildRequires: R-CRAN-sandwich BuildRequires: R-CRAN-QRM Requires: R-CRAN-bain Requires: R-stats Requires: R-utils Requires: R-CRAN-MASS Requires: R-CRAN-mvtnorm Requires: R-CRAN-pracma Requires: R-CRAN-lme4 Requires: R-CRAN-extraDistr Requires: R-CRAN-ergm Requires: R-CRAN-Bergm Requires: R-CRAN-sandwich Requires: R-CRAN-QRM %description Implementation of default Bayes factors for testing statistical hypotheses under various statistical models. The package is intended for applied quantitative researchers in the social and behavioral sciences, medical research, and related fields. The Bayes factor tests can be executed for statistical models such as univariate and multivariate normal linear models, correlation analysis, generalized linear models, special cases of linear mixed models, survival models, relational event models. Parameters that can be tested are location parameters (e.g., group means, regression coefficients), variances (e.g., group variances), and measures of association (e.g,. polychoric/polyserial/biserial/tetrachoric/product moments correlations), among others. The statistical underpinnings are described in Mulder and Xin (2019) , Mulder and Gelissen (2019) , Mulder (2016) , Mulder and Fox (2019) , Mulder and Fox (2013) , Boeing-Messing, van Assen, Hofman, Hoijtink, and Mulder (2017) , Hoijtink, Mulder, van Lissa, and Gu, (2018) , Gu, Mulder, and Hoijtink, (2018) , Hoijtink, Gu, and Mulder, (2018) , and Hoijtink, Gu, Mulder, and Rosseel, (2018) . When using the packages, please refer to Mulder et al. (2021) . %prep %setup -q -c -n %{packname} # fix end of executable files find -type f -executable -exec grep -Iq . {} \; -exec sed -i -e '$a\' {} \; # prevent binary stripping [ -d %{packname}/src ] && find %{packname}/src -type f -exec \ sed -i 's@/usr/bin/strip@/usr/bin/true@g' {} \; || true [ -d %{packname}/src ] && find %{packname}/src/Make* -type f -exec \ sed -i 's@-g0@@g' {} \; || true # don't allow local prefix in executable scripts find -type f -executable -exec sed -Ei 's@#!( )*/usr/local/bin@#!/usr/bin@g' {} \; %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 # remove buildroot from installed files find %{buildroot}%{rlibdir} -type f -exec sed -i "s@%{buildroot}@@g" {} \; %files %{rlibdir}/%{packname}