%global __brp_check_rpaths %{nil} %global __requires_exclude ^libmpi %global packname HDNRA %global packver 2.1.0 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 2.1.0 Release: 1%{?dist}%{?buildtag} Summary: High-Dimensional Location Testing with Normal-Reference Approaches License: GPL (>= 3) URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 4.0.0 Requires: R-core >= 4.0.0 BuildRequires: R-CRAN-expm BuildRequires: R-CRAN-Rcpp BuildRequires: R-CRAN-Rdpack BuildRequires: R-CRAN-readr BuildRequires: R-stats BuildRequires: R-utils BuildRequires: R-CRAN-RcppArmadillo Requires: R-CRAN-expm Requires: R-CRAN-Rcpp Requires: R-CRAN-Rdpack Requires: R-CRAN-readr Requires: R-stats Requires: R-utils %description Provides inverse-free high-dimensional location tests for two-sample and general linear hypothesis testing (GLHT) problems under equal or unequal covariance structures. The package implements classical normal-approximation procedures, scale-invariant procedures, normal-reference procedures based on covariance-matched Gaussian companions, and F-type normal-reference calibrations for heteroscedastic Behrens-Fisher and GLHT settings. Implemented two-sample normal-approximation and scale-invariant procedures include Bai and Saranadasa (1996) , Chen and Qin (2010) , Srivastava and Du (2008) , and Srivastava et al. (2013) . Implemented two-sample normal-reference procedures include Zhang, Guo, Zhou and Cheng (2020) , Zhang, Zhou, Guo and Zhu (2021) , Zhang, Zhu and Zhang (2020) , Zhang, Zhu and Zhang (2023) , Zhang and Zhu (2022) , Zhang and Zhu (2022) , and Zhu, Wang and Zhang (2023) . Implemented GLHT normal-approximation procedures include Fujikoshi et al. (2004) , Srivastava and Fujikoshi (2006) , Yamada and Srivastava (2012) , Schott (2007) , and Zhou, Guo and Zhang (2017) . Implemented GLHT normal-reference procedures include Zhang, Guo and Zhou (2017) , Zhang, Zhou and Guo (2022) , Zhu, Zhang and Zhang (2022) , Zhu and Zhang (2022) , Zhang and Zhu (2022) , and Cao et al. (2024) . The package also includes the random-integration normal-approximation GLHT procedure of Li et al. (2025) . A package-level overview is given in Wang, Zhu and Zhang (2026) . %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}