summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2025-08-25 16:01:09 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2025-08-25 16:01:09 +0000
commit404841ef0758b78d9114c1ca71f2356a1a196235 (patch)
treea86d08fe1917be5ca18e166a3e4e5426622facc6
parent7f775f217220b53816295222889c7737bc2d03cd (diff)
automatic import of R-CRAN-snapKrigf43
-rw-r--r--.gitignore1
-rw-r--r--R-CRAN-snapKrig.spec66
-rw-r--r--sources1
3 files changed, 68 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..78bcce5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/snapKrig_0.0.2.tar.gz
diff --git a/R-CRAN-snapKrig.spec b/R-CRAN-snapKrig.spec
new file mode 100644
index 0000000..fa1990e
--- /dev/null
+++ b/R-CRAN-snapKrig.spec
@@ -0,0 +1,66 @@
+%global __brp_check_rpaths %{nil}
+%global __requires_exclude ^libmpi
+%global packname snapKrig
+%global packver 0.0.2
+%global rlibdir /usr/local/lib/R/library
+
+Name: R-CRAN-%{packname}
+Version: 0.0.2
+Release: 1%{?dist}%{?buildtag}
+Summary: Fast Kriging and Geostatistics on Grids with Kronecker Covariance
+
+License: MIT + file LICENSE
+URL: https://cran.r-project.org/package=%{packname}
+Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz
+
+
+BuildRequires: R-devel
+Requires: R-core
+BuildArch: noarch
+BuildRequires: R-graphics
+BuildRequires: R-grDevices
+BuildRequires: R-methods
+BuildRequires: R-stats
+BuildRequires: R-utils
+Requires: R-graphics
+Requires: R-grDevices
+Requires: R-methods
+Requires: R-stats
+Requires: R-utils
+
+%description
+Geostatistical modeling and kriging with gridded data using spatially
+separable covariance functions (Kronecker covariances). Kronecker products
+in these models provide shortcuts for solving large matrix problems in
+likelihood and conditional mean, making 'snapKrig' computationally
+efficient with large grids. The package supplies its own S3 grid object
+class, and a host of methods including plot, print, Ops, square bracket
+replace/assign, and more. Our computational methods are described in Koch,
+Lele, Lewis (2020) <doi:10.7939/r3-g6qb-bq70>.
+
+%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..d7d5031
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+a96eff9633e132d8d247d866557ca840 snapKrig_0.0.2.tar.gz