%global __brp_check_rpaths %{nil} %global packname esc %global packver 0.5.1 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 0.5.1 Release: 3%{?dist}%{?buildtag} Summary: Effect Size Computation for Meta Analysis License: GPL-3 URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 3.2 Requires: R-core >= 3.2 BuildArch: noarch BuildRequires: R-stats BuildRequires: R-utils Requires: R-stats Requires: R-utils %description Implementation of the web-based 'Practical Meta-Analysis Effect Size Calculator' from David B. Wilson () in R. Based on the input, the effect size can be returned as standardized mean difference, Cohen's f, Hedges' g, Pearson's r or Fisher's transformation z, odds ratio or log odds, or eta squared effect size. %prep %setup -q -c -n %{packname} find -type f -executable -exec grep -Iq . {} \; -exec sed -i -e '$a\' {} \; %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}