Change bootstrap condition to new style.

This commit is contained in:
Elliott Sales de Andrade 2020-03-15 00:33:44 -04:00
parent bef912e452
commit 8c5b153d6c
1 changed files with 3 additions and 5 deletions

View File

@ -3,9 +3,7 @@
%global rlibdir %{_libdir}/R/library
# When we are bootstrapping, we drop some dependencies, and/or build time tests.
%{?_with_bootstrap: %global bootstrap 1}
# Disable things for review.
%global bootstrap 1
%bcond_without bootstrap
Name: R-%{packname}
Version: 0.8.5
@ -91,7 +89,7 @@ BuildRequires: R-testthat
BuildRequires: R-withr
BuildRequires: R-purrr
BuildRequires: R-readr
%if ! 0%{?bootstrap}
%if %{without bootstrap}
BuildRequires: R-dbplyr
BuildRequires: R-dtplyr
BuildRequires: R-ggplot2
@ -134,7 +132,7 @@ rm -f %{buildroot}%{rlibdir}/R.css
%check
export LANG=C.UTF-8
%if ! 0%{?bootstrap}
%if %{without bootstrap}
%{_bindir}/R CMD check %{packname}
%else
_R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname}