%global __brp_check_rpaths %{nil} %global packname SYNCSA %global packver 1.3.4 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 1.3.4 Release: 3%{?dist}%{?buildtag} Summary: Analysis of Functional and Phylogenetic Patterns inMetacommunities License: GPL-2 URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel Requires: R-core BuildArch: noarch BuildRequires: R-CRAN-vegan BuildRequires: R-CRAN-FD BuildRequires: R-CRAN-permute BuildRequires: R-CRAN-RcppArmadillo BuildRequires: R-utils BuildRequires: R-stats BuildRequires: R-graphics BuildRequires: R-parallel Requires: R-CRAN-vegan Requires: R-CRAN-FD Requires: R-CRAN-permute Requires: R-CRAN-RcppArmadillo Requires: R-utils Requires: R-stats Requires: R-graphics Requires: R-parallel %description Analysis of metacommunities based on functional traits and phylogeny of the community components. The functions that are offered here implement for the R environment methods that have been available in the SYNCSA application written in C++ (by Valerio Pillar, available at ). %prep %setup -q -c -n %{packname} %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}