%global __brp_check_rpaths %{nil} %global packname EDMeasure %global packver 1.2.0 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 1.2.0 Release: 3%{?dist}%{?buildtag} Summary: Energy-Based Dependence Measures License: GPL (>= 2) URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 3.4.0 Requires: R-core >= 3.4.0 BuildRequires: R-CRAN-dHSIC >= 2.0 BuildRequires: R-CRAN-energy >= 1.7.0 BuildRequires: R-CRAN-rBayesianOptimization >= 1.1.0 Requires: R-CRAN-dHSIC >= 2.0 Requires: R-CRAN-energy >= 1.7.0 Requires: R-CRAN-rBayesianOptimization >= 1.1.0 %description Implementations of (1) mutual dependence measures and mutual independence tests in Jin, Z., and Matteson, D. S. (2017) ; (2) independent component analysis methods based on mutual dependence measures in Jin, Z., and Matteson, D. S. (2017) and Pfister, N., et al. (2018) ; (3) conditional mean dependence measures and conditional mean independence tests in Shao, X., and Zhang, J. (2014) , Park, T., et al. (2015) , and Lee, C. E., and Shao, X. (2017) . %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}