summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2022-09-20 02:27:37 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2022-09-20 02:27:37 +0000
commit96ff3f51a7f2da95d6d78a02969d7603501d984a (patch)
tree026da54191fe51c0ac5ea5b763d2b4b51bde22cb
parent0511760a9298351bf82b8a7aceae565416dcac6d (diff)
automatic import of R-CRAN-vasicekregf37
-rw-r--r--.gitignore1
-rw-r--r--R-CRAN-vasicekreg.spec61
-rw-r--r--sources1
3 files changed, 63 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..4a8e767 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/vasicekreg_1.0.1.tar.gz
diff --git a/R-CRAN-vasicekreg.spec b/R-CRAN-vasicekreg.spec
new file mode 100644
index 0000000..e395386
--- /dev/null
+++ b/R-CRAN-vasicekreg.spec
@@ -0,0 +1,61 @@
+%global __brp_check_rpaths %{nil}
+%global packname vasicekreg
+%global packver 1.0.1
+%global rlibdir /usr/local/lib/R/library
+
+Name: R-CRAN-%{packname}
+Version: 1.0.1
+Release: 1%{?dist}%{?buildtag}
+Summary: Regression Modeling Using Vasicek Distribution
+
+License: MIT + file LICENSE
+URL: https://cran.r-project.org/package=%{packname}
+Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz
+
+
+BuildRequires: R-devel >= 3.6
+Requires: R-core >= 3.6
+BuildRequires: R-CRAN-Rcpp
+BuildRequires: R-stats
+BuildRequires: R-CRAN-gamlss
+BuildRequires: R-CRAN-gamlss.dist
+BuildRequires: R-CRAN-mvtnorm
+Requires: R-CRAN-Rcpp
+Requires: R-stats
+Requires: R-CRAN-gamlss
+Requires: R-CRAN-gamlss.dist
+Requires: R-CRAN-mvtnorm
+
+%description
+Vasicek density, cumulative distribution, quantile functions and random
+deviate generation of Vasicek distribution. In addition, there are two
+functions for fitting the Generalized Additive Models for Location Scale
+and Shape introduced by Rigby and Stasinopoulos (2005,
+<doi:10.1111/j.1467-9876.2005.00510.x>). Some functions are written in C++
+using 'Rcpp', developed by Eddelbuettel and Francois (2011,
+<doi:10.18637/jss.v040.i08>).
+
+%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
+# 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..602ac1f
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+aafc582eeb75b9b815a138b50019f651 vasicekreg_1.0.1.tar.gz