Switch bootstrap -> suggests to avoid checking those, package R-ggbeeswarm|ggridges not available

This commit is contained in:
Iñaki Úcar 2022-09-04 14:10:30 +02:00
parent 92f9dde9f0
commit 7bcff329ca

View File

@ -4,8 +4,7 @@
%global __suggests_exclude ^R\\((ggbeeswarm|ggplot2|ggridges)\\) %global __suggests_exclude ^R\\((ggbeeswarm|ggplot2|ggridges)\\)
# When we are bootstrapping, we drop some dependencies, and/or build time tests. %bcond_with suggests
%bcond_with bootstrap
Name: R-%{packname} Name: R-%{packname}
Version: %{packver} Version: %{packver}
@ -36,7 +35,7 @@ BuildRequires: R-utils
BuildRequires: R-mockery BuildRequires: R-mockery
BuildRequires: R-parallel BuildRequires: R-parallel
BuildRequires: R-testthat BuildRequires: R-testthat
%if %{without bootstrap} %if %{with suggests}
BuildRequires: R-dplyr BuildRequires: R-dplyr
BuildRequires: R-forcats BuildRequires: R-forcats
BuildRequires: R-ggbeeswarm BuildRequires: R-ggbeeswarm
@ -71,7 +70,7 @@ rm -f %{buildroot}%{rlibdir}/R.css
%check %check
%if %{without bootstrap} %if %{with suggests}
%{_bindir}/R CMD check %{packname} %{_bindir}/R CMD check %{packname}
%else %else
_R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname} _R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname}