%global __brp_check_rpaths %{nil} %global packname flying %global packver 0.1.3 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 0.1.3 Release: 3%{?dist}%{?buildtag} Summary: Simulation of Bird Flight Range License: Apache License 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.2 BuildRequires: R-utils BuildRequires: R-CRAN-knitr BuildRequires: R-CRAN-kableExtra BuildRequires: R-CRAN-rmarkdown Requires: R-CRAN-Rcpp >= 1.0.2 Requires: R-utils Requires: R-CRAN-knitr Requires: R-CRAN-kableExtra Requires: R-CRAN-rmarkdown %description Functions for range estimation in birds based on Pennycuick (2008) and Pennycuick (1975), 'Flight' program which compliments Pennycuick (2008) requires manual entry of birds which can be tedious when there are thousands of birds to estimate. Implemented are two ODE methods discussed in Pennycuick (1975) and time-marching computation method "constant muscle mass" as in Pennycuick (1998). See Pennycuick (1975, ISBN:978-0-12-249405-5), Pennycuick (1998) , and Pennycuick (2008, ISBN:9780080557816). %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}