summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2025-04-21 03:58:44 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2025-04-21 03:58:44 +0000
commitbd61b05991e2c52212cfabe5ddba69f9940181d9 (patch)
tree9fb89cf044fe91d8415594def6e0bd8c1ca587c8
parent18505bc62e411d2d09d7a7c6d13d2e0a661b2db6 (diff)
automatic import of R-CRAN-calmr
-rw-r--r--.gitignore1
-rw-r--r--R-CRAN-calmr.spec78
-rw-r--r--sources1
3 files changed, 80 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..64efc3e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/calmr_0.6.1.tar.gz
diff --git a/R-CRAN-calmr.spec b/R-CRAN-calmr.spec
new file mode 100644
index 0000000..b54616c
--- /dev/null
+++ b/R-CRAN-calmr.spec
@@ -0,0 +1,78 @@
+%global __brp_check_rpaths %{nil}
+%global __requires_exclude ^libmpi
+%global packname calmr
+%global packver 0.6.1
+%global rlibdir /usr/local/lib/R/library
+
+Name: R-CRAN-%{packname}
+Version: 0.6.1
+Release: 1%{?dist}%{?buildtag}
+Summary: Canonical Associative Learning Models and their Representations
+
+License: GPL (>= 3)
+URL: https://cran.r-project.org/package=%{packname}
+Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz
+
+
+BuildRequires: R-devel >= 3.5
+Requires: R-core >= 3.5
+BuildArch: noarch
+BuildRequires: R-CRAN-data.table
+BuildRequires: R-CRAN-future
+BuildRequires: R-CRAN-future.apply
+BuildRequires: R-CRAN-GA
+BuildRequires: R-CRAN-ggnetwork
+BuildRequires: R-CRAN-ggplot2
+BuildRequires: R-grid
+BuildRequires: R-methods
+BuildRequires: R-CRAN-network
+BuildRequires: R-CRAN-patchwork
+BuildRequires: R-CRAN-progressr
+BuildRequires: R-CRAN-rlang
+BuildRequires: R-stats
+Requires: R-CRAN-data.table
+Requires: R-CRAN-future
+Requires: R-CRAN-future.apply
+Requires: R-CRAN-GA
+Requires: R-CRAN-ggnetwork
+Requires: R-CRAN-ggplot2
+Requires: R-grid
+Requires: R-methods
+Requires: R-CRAN-network
+Requires: R-CRAN-patchwork
+Requires: R-CRAN-progressr
+Requires: R-CRAN-rlang
+Requires: R-stats
+
+%description
+Implementations of canonical associative learning models, with tools to
+run experiment simulations, estimate model parameters, and compare model
+representations. Experiments and results are represented using S4 classes
+and methods.
+
+%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..257a8bb
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+1057d4bd912c4d8db4c6b8a49646d082 calmr_0.6.1.tar.gz