conditionalize check to break testthat loop, rebuild for R 4.0.0

This commit is contained in:
Tom Callaway 2020-06-03 15:26:06 -04:00
parent 011e019d1e
commit aeaea45b6f

View File

@ -1,3 +1,5 @@
%bcond_with check
%global packname rprojroot
%global rlibdir %{_datadir}/R/library
%global packver 1.3-2
@ -7,7 +9,7 @@
Name: R-%{packname}
Version: 1.3.2
Release: 7%{?dist}
Release: 8%{?dist}
Summary: Finding Files in Project Subdirectories
License: GPLv3
@ -25,6 +27,7 @@ BuildArch: noarch
BuildRequires: R-devel
BuildRequires: tex(latex)
BuildRequires: R-backports
%if %{with check}
BuildRequires: R-testthat
BuildRequires: R-mockr
%if %{with_doc}
@ -32,6 +35,7 @@ BuildRequires: R-knitr
BuildRequires: R-withr
BuildRequires: R-rmarkdown
%endif
%endif
%description
Robust, reliable and flexible paths to files below a project root. The
@ -54,12 +58,14 @@ rm -f %{buildroot}%{rlibdir}/R.css
%check
%if %{with check}
export NOT_CRAN=true
%if %{with_doc}
%{_bindir}/R CMD check %{packname}
%else
_R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname} --ignore-vignettes
%endif
%endif
%files
@ -76,6 +82,10 @@ _R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname} --ignore-vignettes
%changelog
* Wed Jun 3 2020 Tom Callaway <spot@fedoraproject.org> - 1.3.2-8
- conditionalize check to break testthat loop
- rebuild for R 4
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild