%global __brp_check_rpaths %{nil} %global packname highmean %global packver 3.0 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 3.0 Release: 2%{?dist}%{?buildtag} Summary: Two-Sample Tests for High-Dimensional Mean Vectors License: GPL (>= 2) URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 1.9.0 Requires: R-core >= 1.9.0 BuildArch: noarch BuildRequires: R-CRAN-mvtnorm >= 1.0.0 BuildRequires: R-MASS BuildRequires: R-CRAN-mnormt Requires: R-CRAN-mvtnorm >= 1.0.0 Requires: R-MASS Requires: R-CRAN-mnormt %description Provides various tests for comparing high-dimensional mean vectors in two sample populations. %prep %setup -q -c -n %{packname} find -type f -executable -exec grep -Iq . {} \; -exec sed -i -e '$a\' {} \; [ -d %{packname}/src ] && find %{packname}/src -type f -exec \ sed -i 's@/usr/bin/strip@/usr/bin/true@g' {} \; || true %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}