%global __brp_check_rpaths %{nil} %global __requires_exclude ^libmpi %global packname WaverideR %global packver 0.3.2 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 0.3.2 Release: 1%{?dist}%{?buildtag} Summary: Extracting Signals from Wavelet Spectra License: GPL (>= 2) URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 3.5.0 Requires: R-core >= 3.5.0 BuildArch: noarch BuildRequires: R-CRAN-DecomposeR BuildRequires: R-CRAN-DescTools BuildRequires: R-CRAN-Hmisc BuildRequires: R-CRAN-Matrix BuildRequires: R-utils BuildRequires: R-CRAN-colorednoise BuildRequires: R-CRAN-doSNOW BuildRequires: R-CRAN-fANCOVA BuildRequires: R-CRAN-foreach BuildRequires: R-stats BuildRequires: R-tcltk BuildRequires: R-CRAN-matrixStats BuildRequires: R-CRAN-reshape2 BuildRequires: R-CRAN-truncnorm BuildRequires: R-grDevices BuildRequires: R-graphics BuildRequires: R-parallel BuildRequires: R-CRAN-astrochron BuildRequires: R-CRAN-biwavelet BuildRequires: R-CRAN-WaveletComp BuildRequires: R-CRAN-RColorBrewer BuildRequires: R-CRAN-colorRamps BuildRequires: R-CRAN-viridis BuildRequires: R-CRAN-magick BuildRequires: R-CRAN-rlist Requires: R-CRAN-DecomposeR Requires: R-CRAN-DescTools Requires: R-CRAN-Hmisc Requires: R-CRAN-Matrix Requires: R-utils Requires: R-CRAN-colorednoise Requires: R-CRAN-doSNOW Requires: R-CRAN-fANCOVA Requires: R-CRAN-foreach Requires: R-stats Requires: R-tcltk Requires: R-CRAN-matrixStats Requires: R-CRAN-reshape2 Requires: R-CRAN-truncnorm Requires: R-grDevices Requires: R-graphics Requires: R-parallel Requires: R-CRAN-astrochron Requires: R-CRAN-biwavelet Requires: R-CRAN-WaveletComp Requires: R-CRAN-RColorBrewer Requires: R-CRAN-colorRamps Requires: R-CRAN-viridis Requires: R-CRAN-magick Requires: R-CRAN-rlist %description The continuous wavelet transform enables the observation of transient/non-stationary cyclicity in time-series. The goal of cyclostratigraphic studies is to define frequency/period in the depth/time domain. By conducting the continuous wavelet transform on cyclostratigraphic data series one can observe and extract cyclic signals/signatures from signals. These results can then be visualized and interpreted enabling one to identify/interpret cyclicity in the geological record, which can be used to construct astrochronological age-models and identify and interpret cyclicity in past and present climate systems. The 'WaverideR' R package builds upon existing literature and existing codebase. The list of articles which are relevant can be grouped in four subjects; cyclostratigraphic data analysis,example data sets,the (continuous) wavelet transform and astronomical solutions. References for the cyclostratigraphic data analysis articles are: Stephen Meyers (2019) . Mingsong Li, Linda Hinnov, Lee Kump (2019) Stephen Meyers (2012) Mingsong Li, Lee R. Kump, Linda A. Hinnov, Michael E. Mann (2018) . Wouters, S., Crucifix, M., Sinnesael, M., Da Silva, A.C., Zeeden, C., Zivanovic, M., Boulvain, F., Devleeschouwer, X. (2022) . Wouters, S., Da Silva, A.-C., Boulvain, F., and Devleeschouwer, X. (2021) . Huang, Norden E., Zhaohua Wu, Steven R. Long, Kenneth C. Arnold, Xianyao Chen, and Karin Blank (2009) . Cleveland, W. S. (1979) Hurvich, C.M., Simonoff, J.S., and Tsai, C.L. (1998) , Golub, G., Heath, M. and Wahba, G. (1979) . References for the example data articles are: Damien Pas, Linda Hinnov, James E. (Jed) Day, Kenneth Kodama, Matthias Sinnesael, Wei Liu (2018) . Steinhilber, Friedhelm, Abreu, Jacksiel, Beer, Juerg , Brunner, Irene, Christl, Marcus, Fischer, Hubertus, HeikkilA, U., Kubik, Peter, Mann, Mathias, Mccracken, K. , Miller, Heinrich, Miyahara, Hiroko, Oerter, Hans , Wilhelms, Frank. (2012 . Christian Zeeden, Frederik Hilgen, Thomas Westerhold, Lucas Lourens, Ursula Röhl, Torsten Bickert (2013) . References for the (continuous) wavelet transform articles are: Morlet, Jean, Georges Arens, Eliane Fourgeau, and Dominique Glard (1982a) . J. Morlet, G. Arens, E. Fourgeau, D. Giard (1982b) . Torrence, C., and G. P. Compo (1998), Gouhier TC, Grinsted A, Simko V (2021) . Angi Roesch and Harald Schmidbauer (2018) . Russell, Brian, and Jiajun Han (2016). Gabor, Dennis (1946) . J. Laskar, P. Robutel, F. Joutel, M. Gastineau, A.C.M. Correia, and B. Levrard, B. (2004) . Laskar, J., Fienga, A., Gastineau, M., Manche, H. (2011a) . References for the astronomical solutions articles are: Laskar, J., Gastineau, M., Delisle, J.-B., Farres, A., Fienga, A. (2011b . J. Laskar (2019) . Zeebe, Richard E (2017) . Zeebe, R. E. and Lourens, L. J. (2019) . Richard E. Zeebe Lucas J. Lourens (2022) . %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}