%global __brp_check_rpaths %{nil} %global packname zeitgebr %global packver 0.3.5 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 0.3.5 Release: 3%{?dist}%{?buildtag} Summary: Analysis of Circadian Behaviours License: GPL-3 URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 3.00 Requires: R-core >= 3.00 BuildArch: noarch BuildRequires: R-CRAN-behavr BuildRequires: R-CRAN-data.table BuildRequires: R-CRAN-lomb BuildRequires: R-CRAN-pracma BuildRequires: R-CRAN-WaveletComp Requires: R-CRAN-behavr Requires: R-CRAN-data.table Requires: R-CRAN-lomb Requires: R-CRAN-pracma Requires: R-CRAN-WaveletComp %description Use behavioural variables to compute period, rhythmicity and other circadian parameters. Methods include computation of chi square periodograms (Sokolove and Bushell (1978) ), Lomb-Scargle periodograms (Lomb (1976) , Scargle (1982) , Ruf (1999) ), and autocorrelation-based periodograms. %prep %setup -q -c -n %{packname} find -type f -executable -exec grep -Iq . {} \; -exec sed -i -e '$a\' {} \; %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 %files %{rlibdir}/%{packname}