diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2021-11-30 01:15:36 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2021-11-30 01:15:36 +0000 |
commit | 54b132c8c91ad2fd9d7b05af2cf5bfca6164c91e (patch) | |
tree | c2c32011e0f3b3253991eb98391ec63d5a2dca19 | |
parent | 8418c3ba10a4c16a0d08f25d37013d760db91aa0 (diff) |
automatic import of R-CRAN-Copula.Markovf33
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | R-CRAN-Copula.Markov.spec | 55 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 57 insertions, 0 deletions
@@ -0,0 +1 @@ +/Copula.Markov_2.9.tar.gz diff --git a/R-CRAN-Copula.Markov.spec b/R-CRAN-Copula.Markov.spec new file mode 100644 index 0000000..b6f95d9 --- /dev/null +++ b/R-CRAN-Copula.Markov.spec @@ -0,0 +1,55 @@ +%global __brp_check_rpaths %{nil} +%global packname Copula.Markov +%global packver 2.9 +%global rlibdir /usr/local/lib/R/library + +Name: R-CRAN-%{packname} +Version: 2.9 +Release: 1%{?dist}%{?buildtag} +Summary: Copula-Based Estimation and Statistical Process Control for Serially Correlated Time Series + +License: GPL-2 +URL: https://cran.r-project.org/package=%{packname} +Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz + + +BuildRequires: R-devel +Requires: R-core +BuildArch: noarch + +%description +Estimation and statistical process control are performed under +copula-based time-series models. Available are statistical methods in Long +and Emura (2014 JCSA), Emura et al. (2017 Commun Stat-Simul) +<DOI:10.1080/03610918.2015.1073303>, Huang and Emura (2021 Commun +Stat-Simul) <DOI:10.1080/03610918.2019.1602647>, Lin et al. (2021 Comm +Stat-Simul) <DOI:10.1080/03610918.2019.1652318>, Sun et al. (2020 JSS +Series in Statistics)<DOI:10.1007/978-981-15-4998-4>, and Huang and Emura +(2021, in revision). + +%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} @@ -0,0 +1 @@ +a1887269f423da56d690f55952bc2b2a Copula.Markov_2.9.tar.gz |