diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2025-08-25 16:34:38 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2025-08-25 16:34:38 +0000 |
commit | e0283ad62a98f9c06b21a538bc741895d17b1961 (patch) | |
tree | 54d1d26be3fee2c668bd2905f66af6fb27f9c00a | |
parent | db2784e2a76229074805826a4cb2eefa6c6a643b (diff) |
automatic import of R-CRAN-CPCATf43
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | R-CRAN-CPCAT.spec | 59 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 61 insertions, 0 deletions
@@ -0,0 +1 @@ +/CPCAT_1.0.0.tar.gz diff --git a/R-CRAN-CPCAT.spec b/R-CRAN-CPCAT.spec new file mode 100644 index 0000000..f3a7379 --- /dev/null +++ b/R-CRAN-CPCAT.spec @@ -0,0 +1,59 @@ +%global __brp_check_rpaths %{nil} +%global __requires_exclude ^libmpi +%global packname CPCAT +%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: The Closure Principle Computational Approach Test + +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 +BuildArch: noarch +BuildRequires: R-stats +Requires: R-stats + +%description +P-values and no/lowest observed (adverse) effect concentration values +derived from the closure principle computational approach test (Lehmann, +R. et al. (2015) <doi:10.1007/s00477-015-1079-4>) are provided. The +package contains functions to generate intersection hypotheses according +to the closure principle (Bretz, F., Hothorn, T., Westfall, P. (2010) +<doi:10.1201/9781420010909>), an implementation of the computational +approach test (Ching-Hui, C., Nabendu, P., Jyh-Jiuan, L. (2010) +<doi:10.1080/03610918.2010.508860>) and the combination of both, that is, +the closure principle computational approach test. + +%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} @@ -0,0 +1 @@ +63e1e34c64645c184d687bc4fe49cd0c CPCAT_1.0.0.tar.gz |