summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2025-08-25 15:24:32 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2025-08-25 15:24:32 +0000
commit4cc4bc119846cbe4b26ab10912c088bc69b876af (patch)
treef948ba25ab165e64259e22e6f9bfda7480afc40d
parent818ec2d79d011c48b3403992aec6fb5739245078 (diff)
automatic import of R-CRAN-monotonef43
-rw-r--r--.gitignore1
-rw-r--r--R-CRAN-monotone.spec50
-rw-r--r--sources1
3 files changed, 52 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..165fb64 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/monotone_0.1.2.tar.gz
diff --git a/R-CRAN-monotone.spec b/R-CRAN-monotone.spec
new file mode 100644
index 0000000..abf51ed
--- /dev/null
+++ b/R-CRAN-monotone.spec
@@ -0,0 +1,50 @@
+%global __brp_check_rpaths %{nil}
+%global packname monotone
+%global packver 0.1.2
+%global rlibdir /usr/local/lib/R/library
+
+Name: R-CRAN-%{packname}
+Version: 0.1.2
+Release: 1%{?dist}%{?buildtag}
+Summary: Performs Monotone Regression
+
+License: GPL-3
+URL: https://cran.r-project.org/package=%{packname}
+Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz
+
+
+BuildRequires: R-devel
+Requires: R-core
+
+%description
+The monotone package contains a fast up-and-down-blocks implementation for
+the pool-adjacent-violators algorithm for simple linear ordered monotone
+regression, including two spin-off functions for unimodal and bivariate
+monotone regression (see <doi:10.18637/jss.v102.c01>).
+
+%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..da03f00
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+5b9ed2a51df81b107bde640c36957814 monotone_0.1.2.tar.gz