%global __brp_check_rpaths %{nil} %global packname SSP %global packver 1.0.1 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 1.0.1 Release: 3%{?dist}%{?buildtag} Summary: Simulated Sampling Procedure for Community Ecology 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-vegan BuildRequires: R-stats BuildRequires: R-CRAN-sampling BuildRequires: R-CRAN-ggplot2 Requires: R-CRAN-vegan Requires: R-stats Requires: R-CRAN-sampling Requires: R-CRAN-ggplot2 %description Simulation-based sampling protocol (SSP) is an R package design to estimate sampling effort in studies of ecological communities based on the definition of pseudo-multivariate standard error (MultSE) (Anderson & Santana-Garcon, 2015) and simulation of ecological data. The theoretical background is described in Guerra-Castro et al. (2020) . %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}