replace "with_suggests" by "bcond_with bootstrap" since that is really its purpose

This commit is contained in:
José Matos 2020-07-03 16:48:16 +01:00
parent 66766827ec
commit 0f3830eb34
1 changed files with 8 additions and 5 deletions

View File

@ -2,12 +2,12 @@
%global packver 1.4.1
%global rlibdir %{_libdir}/R/library
# Not all available yet.
%global with_suggests 0
# When we are bootstrapping, we drop some dependencies, and/or build time tests.
%bcond_with bootstrap
Name: R-%{packname}
Version: %{packver}
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Interpreted String Literals
License: MIT
@ -24,7 +24,7 @@ Source0: https://cran.r-project.org/src/contrib/%{packname}_%{packver}.
BuildRequires: R-devel
BuildRequires: tex(latex)
BuildRequires: R-methods
%if %{with_suggests}
%if %{without bootstrap}
BuildRequires: R-testthat
BuildRequires: R-magrittr
BuildRequires: R-crayon
@ -70,7 +70,7 @@ rm -f %{buildroot}%{rlibdir}/R.css
%check
export LANG=C.UTF-8
%if %{with_suggests}
%if %{without bootstrap}
%{_bindir}/R CMD check %{packname}
%endif
@ -92,6 +92,9 @@ export LANG=C.UTF-8
%changelog
* Fri Jul 3 2020 José Matos <jamatos@fedoraproject.org> - 1.4.1-2
- replace "with_suggests" by "bcond_with bootstrap" since that is really its purpose
* Wed Jun 3 2020 Tom Callaway <spot@fedoraproject.org> - 1.4.1-1
- break testthat loop by broadening "with_suggests"
- update to 1.4.1