%global __brp_check_rpaths %{nil} %global __requires_exclude ^libmpi %global packname deseats %global packver 1.1.3 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 1.1.3 Release: 1%{?dist}%{?buildtag} Summary: Data-Driven Locally Weighted Regression for Trend and Seasonality in TS License: GPL-3 URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 2.10 Requires: R-core >= 2.10 BuildRequires: R-CRAN-Rcpp >= 1.0.6 BuildRequires: R-methods BuildRequires: R-CRAN-ggplot2 BuildRequires: R-stats BuildRequires: R-graphics BuildRequires: R-CRAN-animation BuildRequires: R-utils BuildRequires: R-CRAN-shiny BuildRequires: R-tools BuildRequires: R-CRAN-zoo BuildRequires: R-CRAN-future BuildRequires: R-CRAN-furrr BuildRequires: R-CRAN-future.apply BuildRequires: R-CRAN-progressr BuildRequires: R-CRAN-purrr BuildRequires: R-CRAN-rlang BuildRequires: R-CRAN-tidyr BuildRequires: R-CRAN-RcppArmadillo Requires: R-CRAN-Rcpp >= 1.0.6 Requires: R-methods Requires: R-CRAN-ggplot2 Requires: R-stats Requires: R-graphics Requires: R-CRAN-animation Requires: R-utils Requires: R-CRAN-shiny Requires: R-tools Requires: R-CRAN-zoo Requires: R-CRAN-future Requires: R-CRAN-furrr Requires: R-CRAN-future.apply Requires: R-CRAN-progressr Requires: R-CRAN-purrr Requires: R-CRAN-rlang Requires: R-CRAN-tidyr %description Various methods for the identification of trend and seasonal components in time series (TS) are provided. Among them is a data-driven locally weighted regression approach with automatically selected bandwidth for equidistant short-memory time series. The approach is a combination / extension of the algorithms by Feng (2013) and Feng, Y., Gries, T., and Fritz, M. (2020) and a brief description of this new method is provided in the package documentation and in more detail in Schulz (2026) . Furthermore, the package allows its users to apply the base model of the Berlin procedure, version 4.1, as described in Speth (2004) . Permission to include this procedure was kindly provided by the Federal Statistical Office of Germany. %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}