From 7bcff329caee295ac6259e3223cb18620913a935 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1aki=20=C3=9Acar?= Date: Sun, 4 Sep 2022 14:10:30 +0200 Subject: [PATCH] Switch bootstrap -> suggests to avoid checking those, package R-ggbeeswarm|ggridges not available --- R-bench.spec | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/R-bench.spec b/R-bench.spec index b285dfb..7d3309c 100644 --- a/R-bench.spec +++ b/R-bench.spec @@ -4,8 +4,7 @@ %global __suggests_exclude ^R\\((ggbeeswarm|ggplot2|ggridges)\\) -# When we are bootstrapping, we drop some dependencies, and/or build time tests. -%bcond_with bootstrap +%bcond_with suggests Name: R-%{packname} Version: %{packver} @@ -36,7 +35,7 @@ BuildRequires: R-utils BuildRequires: R-mockery BuildRequires: R-parallel BuildRequires: R-testthat -%if %{without bootstrap} +%if %{with suggests} BuildRequires: R-dplyr BuildRequires: R-forcats BuildRequires: R-ggbeeswarm @@ -71,7 +70,7 @@ rm -f %{buildroot}%{rlibdir}/R.css %check -%if %{without bootstrap} +%if %{with suggests} %{_bindir}/R CMD check %{packname} %else _R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname}