diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2024-04-28 03:54:01 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2024-04-28 03:54:01 +0000 |
commit | 6f9eaeff116bd3ac165e5d8b30c89dbfe4e8b692 (patch) | |
tree | 55ea30a67e9b0873d33b6800a7d6573f1394694d | |
parent | 930adc52069cd3e183995829ff6c180b91870167 (diff) |
automatic import of R-CRAN-CPEf40
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | R-CRAN-CPE.spec | 57 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 59 insertions, 0 deletions
@@ -0,0 +1 @@ +/CPE_1.6.3.tar.gz diff --git a/R-CRAN-CPE.spec b/R-CRAN-CPE.spec new file mode 100644 index 0000000..80b44cc --- /dev/null +++ b/R-CRAN-CPE.spec @@ -0,0 +1,57 @@ +%global __brp_check_rpaths %{nil} +%global __requires_exclude ^libmpi +%global packname CPE +%global packver 1.6.3 +%global rlibdir /usr/local/lib/R/library + +Name: R-CRAN-%{packname} +Version: 1.6.3 +Release: 1%{?dist}%{?buildtag} +Summary: Concordance Probability Estimates in Survival Analysis + +License: GPL (>= 2) +URL: https://cran.r-project.org/package=%{packname} +Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz + + +BuildRequires: R-devel >= 4.1.0 +Requires: R-core >= 4.1.0 +BuildRequires: R-CRAN-survival +BuildRequires: R-CRAN-rms +Requires: R-CRAN-survival +Requires: R-CRAN-rms + +%description +Concordance probability estimate (CPE) is a commonly used performance +measure in survival analysis that evaluates the predictive accuracy of a +survival model. It measures how well a model can distinguish between +pairs of individuals with different survival times. Specifically, it +calculate the proportion of all pairs of individuals whose predicted +survival times are correctly ordered. + +%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 @@ +b7cb50baea175b4aaf590933325b8848 CPE_1.6.3.tar.gz |