conditionalize check to break testthat loop, rebuild for R 4
This commit is contained in:
parent
15eff8d883
commit
9841d4376f
12
R-withr.spec
12
R-withr.spec
@ -1,3 +1,5 @@
|
||||
%bcond_with check
|
||||
|
||||
%global packname withr
|
||||
%global packver 2.2.0
|
||||
%global rlibdir %{_datadir}/R/library
|
||||
@ -7,7 +9,7 @@
|
||||
|
||||
Name: R-%{packname}
|
||||
Version: 2.2.0
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Run Code 'With' Temporarily Modified Global State
|
||||
|
||||
License: GPLv2+
|
||||
@ -27,6 +29,7 @@ BuildRequires: tex(latex)
|
||||
BuildRequires: R-graphics
|
||||
BuildRequires: R-grDevices
|
||||
BuildRequires: R-stats
|
||||
%if %{with check}
|
||||
BuildRequires: R-DBI
|
||||
BuildRequires: R-lattice
|
||||
BuildRequires: R-methods
|
||||
@ -36,6 +39,7 @@ BuildRequires: R-testthat >= 2.1.0
|
||||
BuildRequires: R-knitr
|
||||
BuildRequires: R-rmarkdown
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%description
|
||||
A set of functions to run code 'with' safely and temporarily modified
|
||||
@ -62,12 +66,14 @@ rm -f %{buildroot}%{rlibdir}/R.css
|
||||
|
||||
|
||||
%check
|
||||
%if %{with check}
|
||||
export LANG=C.UTF-8
|
||||
%if %{with_doc}
|
||||
%{_bindir}/R CMD check %{packname}
|
||||
%else
|
||||
_R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname} --ignore-vignettes
|
||||
%endif
|
||||
%endif
|
||||
|
||||
|
||||
%files
|
||||
@ -84,6 +90,10 @@ _R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname} --ignore-vignettes
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Jun 3 2020 Tom Callaway <spot@fedoraproject.org> - 2.2.0-2
|
||||
- conditionalize check to break testthat loop
|
||||
- rebuild for R 4
|
||||
|
||||
* Thu May 21 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.2.0-1
|
||||
- Update to latest version
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user