Switch bootstrap -> suggests to avoid checking those, package R-thematic not available

This commit is contained in:
Iñaki Úcar 2022-09-04 13:41:23 +02:00
parent 699a9a7840
commit b9f6e74430

View File

@ -1,4 +1,5 @@
%bcond_with bootstrap
# R-thematic not available
%bcond_with suggests
%global packname bslib
%global packver 0.4.0
@ -39,7 +40,7 @@ BuildRequires: R-rlang
BuildRequires: R-cachem
BuildRequires: R-memoise
# Suggests
%if %{without bootstrap}
%if %{with suggests}
BuildRequires: R-shiny >= 1.6.0
BuildRequires: R-rmarkdown >= 2.7
BuildRequires: R-thematic
@ -77,7 +78,7 @@ install -p %{packname}/LICENSE.note %{buildroot}%{rlibdir}/%{packname}/
%check
%if %{without bootstrap}
%if %{with suggests}
%{_bindir}/R CMD check %{packname}
%else
_R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname} --no-examples --no-vignettes --no-tests