%global __brp_check_rpaths %{nil} %global __requires_exclude ^libmpi %global packname HDNRA %global packver 1.0.0 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 1.0.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 >= 2.10 Requires: R-core >= 2.10 BuildRequires: R-CRAN-expm BuildRequires: R-CRAN-Rcpp BuildRequires: R-CRAN-Rdpack BuildRequires: R-CRAN-readr BuildRequires: R-stats BuildRequires: R-CRAN-RcppArmadillo Requires: R-CRAN-expm Requires: R-CRAN-Rcpp Requires: R-CRAN-Rdpack Requires: R-CRAN-readr Requires: R-stats %description We provide a collection of various classical tests and latest normal-reference tests for comparing high-dimensional mean vectors including two-sample and general linear hypothesis testing (GLHT) problem. Some existing tests for two-sample problem [see Bai, Zhidong, and Hewa Saranadasa.(1996) ; Chen, Song Xi, and Ying-Li Qin.(2010) ; Srivastava, Muni S., and Meng Du.(2008) ; Srivastava, Muni S., Shota Katayama, and Yutaka Kano.(2013)]. Normal-reference tests for two-sample problem [see Zhang, Jin-Ting, Jia Guo, Bu Zhou, and Ming-Yen Cheng.(2020) ; Zhang, Jin-Ting, Bu Zhou, Jia Guo, and Tianming Zhu.(2021) ; Zhang, Liang, Tianming Zhu, and Jin-Ting Zhang.(2020) ; Zhang, Liang, Tianming Zhu, and Jin-Ting Zhang.(2023) ; Zhang, Jin-Ting, and Tianming Zhu.(2022) ; Zhang, Jin-Ting, and Tianming Zhu.(2022) ; Zhu, Tianming, Pengfei Wang, and Jin-Ting Zhang.(2023) ]. Some existing tests for GLHT problem [see Fujikoshi, Yasunori, Tetsuto Himeno, and Hirofumi Wakaki.(2004) ; Srivastava, Muni S., and Yasunori Fujikoshi.(2006) ; Yamada, Takayuki, and Muni S. Srivastava.(2012) ; Schott, James R.(2007) ; Zhou, Bu, Jia Guo, and Jin-Ting Zhang.(2017) ]. Normal-reference tests for GLHT problem [see Zhang, Jin-Ting, Jia Guo, and Bu Zhou.(2017) ; Zhang, Jin-Ting, Bu Zhou, and Jia Guo.(2022) ; Zhu, Tianming, Liang Zhang, and Jin-Ting Zhang.(2022) ; Zhu, Tianming, and Jin-Ting Zhang.(2022) ; Zhang, Jin-Ting, and Tianming Zhu.(2022) ]. %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}