diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2024-04-27 23:36:09 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2024-04-27 23:36:09 +0000 |
commit | b6f99d86a5ad43a9ce5110d825917d88824431f4 (patch) | |
tree | 6087c8b3cada151b0a42966ce5bf85dbadd05042 | |
parent | 9e52ebae976bd13f686d2306846bb0b8fccf41b5 (diff) |
automatic import of R-CRAN-CARME
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | R-CRAN-CARME.spec | 74 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 76 insertions, 0 deletions
@@ -0,0 +1 @@ +/CARME_0.1.1.tar.gz diff --git a/R-CRAN-CARME.spec b/R-CRAN-CARME.spec new file mode 100644 index 0000000..c09aca9 --- /dev/null +++ b/R-CRAN-CARME.spec @@ -0,0 +1,74 @@ +%global __brp_check_rpaths %{nil} +%global __requires_exclude ^libmpi +%global packname CARME +%global packver 0.1.1 +%global rlibdir /usr/local/lib/R/library + +Name: R-CRAN-%{packname} +Version: 0.1.1 +Release: 1%{?dist}%{?buildtag} +Summary: CAR-MM Modelling in Stan + +License: GPL (>= 3) +URL: https://cran.r-project.org/package=%{packname} +Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz + + +BuildRequires: R-devel >= 3.5.0 +Requires: R-core >= 3.5.0 +BuildRequires: R-CRAN-RcppParallel >= 5.0.1 +BuildRequires: R-CRAN-rstan >= 2.18.1 +BuildRequires: R-CRAN-StanHeaders >= 2.18.0 +BuildRequires: R-CRAN-BH >= 1.66.0 +BuildRequires: R-CRAN-RcppEigen >= 0.3.3.3.0 +BuildRequires: R-CRAN-Rcpp >= 0.12.0 +BuildRequires: R-methods +BuildRequires: R-CRAN-MASS +BuildRequires: R-CRAN-expm +BuildRequires: R-stats +BuildRequires: R-CRAN-rstantools +BuildRequires: R-CRAN-rstantools +Requires: R-CRAN-rstan >= 2.18.1 +Requires: R-CRAN-Rcpp >= 0.12.0 +Requires: R-methods +Requires: R-CRAN-MASS +Requires: R-CRAN-expm +Requires: R-stats +Requires: R-CRAN-rstantools +Requires: R-CRAN-rstantools + +%description +'Stan' based functions to estimate CAR-MM models. These models allow to +estimate Generalised Linear Models with CAR (conditional autoregressive) +spatial random effects for spatially and temporally misaligned data, +provided a suitable Multiple Membership matrix. The main references are +Gramatica, Liverani and Congdon (2023) <doi:10.1214/23-BA1370>, Petrof, +Neyens, Nuyts, Nackaerts, Nemery and Faes (2020) <doi:10.1002/sim.8697> +and Gramatica, Congdon and Liverani <doi:10.1111/rssc.12480>. + +%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 @@ +8e22550cca4054d660f3ffaf781253d2 CARME_0.1.1.tar.gz |