summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2021-11-30 01:15:36 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2021-11-30 01:15:36 +0000
commit1dc35380ca425ea2755a1b8f512885b55a047672 (patch)
treec2c32011e0f3b3253991eb98391ec63d5a2dca19
parent47911d4c68bff2c86c1901c9075910d5a92bc7e5 (diff)
automatic import of R-CRAN-Copula.Markovf34
-rw-r--r--.gitignore2
-rw-r--r--R-CRAN-Copula.Markov.spec40
-rw-r--r--sources2
3 files changed, 23 insertions, 21 deletions
diff --git a/.gitignore b/.gitignore
index 2748ddf..2b110f4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-/Copula.Markov_2.8.tar.gz
+/Copula.Markov_2.9.tar.gz
diff --git a/R-CRAN-Copula.Markov.spec b/R-CRAN-Copula.Markov.spec
index 4aba2b0..b6f95d9 100644
--- a/R-CRAN-Copula.Markov.spec
+++ b/R-CRAN-Copula.Markov.spec
@@ -1,11 +1,12 @@
+%global __brp_check_rpaths %{nil}
%global packname Copula.Markov
-%global packver 2.8
+%global packver 2.9
%global rlibdir /usr/local/lib/R/library
Name: R-CRAN-%{packname}
-Version: 2.8
-Release: 3%{?dist}%{?buildtag}
-Summary: Copula-Based Estimation and Statistical Process Control forSerially Correlated Time Series
+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}
@@ -20,16 +21,24 @@ BuildArch: noarch
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 (2019 Commun
-Stat-Simul) <DOI:10.1080/03610918.2019.1602647>, Lin et al. (2019 Comm
-Stat-Simul) <DOI:10.1080/03610918.2019.1652318>, Sun et al. (2020 to
-appear in JSS Series in Statistics, Springer), and Huang, Chen and Emura
-(2019-, in revision).
+<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
@@ -37,17 +46,10 @@ find -type f -executable -exec grep -Iq . {} \; -exec sed -i -e '$a\' {} \;
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
-%dir %{rlibdir}/%{packname}
-%doc %{rlibdir}/%{packname}/html
-%{rlibdir}/%{packname}/Meta
-%{rlibdir}/%{packname}/help
-%{rlibdir}/%{packname}/data
-%{rlibdir}/%{packname}/DESCRIPTION
-%{rlibdir}/%{packname}/NAMESPACE
-%{rlibdir}/%{packname}/R
-%{rlibdir}/%{packname}/INDEX
+%{rlibdir}/%{packname}
diff --git a/sources b/sources
index 9ed91ff..99570e5 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-4f8802031f674e052073944c6f29e9e6 Copula.Markov_2.8.tar.gz
+a1887269f423da56d690f55952bc2b2a Copula.Markov_2.9.tar.gz