summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2024-04-27 22:18:08 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2024-04-27 22:18:08 +0000
commit0a3f1d3a006e8bbc7a7ae47d751cc496f8faaee4 (patch)
tree700260b15f1f7cf3d12cb449f2d128b544635d61
parent099267c2ca968d62dcbf788e20bc9d4326924100 (diff)
automatic import of R-CRAN-hBayesDM
-rw-r--r--.gitignore1
-rw-r--r--R-CRAN-hBayesDM.spec72
-rw-r--r--sources1
3 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..11d0177 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/hBayesDM_1.2.1.tar.gz
diff --git a/R-CRAN-hBayesDM.spec b/R-CRAN-hBayesDM.spec
new file mode 100644
index 0000000..fe8c98b
--- /dev/null
+++ b/R-CRAN-hBayesDM.spec
@@ -0,0 +1,72 @@
+%global __brp_check_rpaths %{nil}
+%global __requires_exclude ^libmpi
+%global packname hBayesDM
+%global packver 1.2.1
+%global rlibdir /usr/local/lib/R/library
+
+Name: R-CRAN-%{packname}
+Version: 1.2.1
+Release: 1%{?dist}%{?buildtag}
+Summary: Hierarchical Bayesian Modeling of Decision-Making Tasks
+
+License: GPL-3
+URL: https://cran.r-project.org/package=%{packname}
+Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz
+
+
+BuildRequires: R-devel >= 3.4.0
+Requires: R-core >= 3.4.0
+BuildRequires: R-CRAN-rstan >= 2.18.1
+BuildRequires: R-CRAN-StanHeaders >= 2.18.0
+BuildRequires: R-CRAN-loo >= 2.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-grid
+BuildRequires: R-parallel
+BuildRequires: R-CRAN-ggplot2
+BuildRequires: R-CRAN-data.table
+BuildRequires: R-CRAN-rstantools
+Requires: R-CRAN-rstan >= 2.18.1
+Requires: R-CRAN-loo >= 2.0
+Requires: R-CRAN-Rcpp >= 0.12.0
+Requires: R-methods
+Requires: R-grid
+Requires: R-parallel
+Requires: R-CRAN-ggplot2
+Requires: R-CRAN-data.table
+Requires: R-CRAN-rstantools
+
+%description
+Fit an array of decision-making tasks with computational models in a
+hierarchical Bayesian framework. Can perform hierarchical Bayesian
+analysis of various computational models with a single line of coding (Ahn
+et al., 2017) <doi:10.1162/CPSY_a_00002>.
+
+%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}
diff --git a/sources b/sources
new file mode 100644
index 0000000..178566a
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+0b9753bca11f8a3875c82ca1af476d34 hBayesDM_1.2.1.tar.gz