conditionalize check, rebuild for R 4

This commit is contained in:
Tom Callaway 2020-06-05 10:22:12 -04:00
parent 5c503e7489
commit 6791238090
1 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,5 @@
%bcond_with check
%global packname knitr
%global packver 1.28
%global rlibdir %{_datadir}/R/library
@ -10,7 +12,7 @@
Name: R-%{packname}
Version: 1.28
Release: 1%{?dist}
Release: 2%{?dist}
Summary: A General-Purpose Package for Dynamic Report Generation in R
License: GPLv2+
@ -37,6 +39,7 @@ BuildRequires: R-yaml >= 2.1.19
BuildRequires: R-methods
BuildRequires: R-xfun
BuildRequires: R-tools
%if %{with check}
BuildRequires: R-testit
BuildRequires: R-digest
BuildRequires: R-codetools
@ -71,6 +74,7 @@ BuildRequires; tex(relsize.sty)
BuildRequires; tex(beamer.cls)
BuildRequires; tex(tufte-handout.cls)
%endif
%endif
%description
Provides a general-purpose tool for dynamic report generation in R using
@ -101,6 +105,7 @@ rm -r %{buildroot}%{rlibdir}/%{packname}/bin
%check
%if %{with check}
export LANG=C.UTF-8
%if ! %{with_suggests} || ! %{with_loop}
export _R_CHECK_FORCE_SUGGESTS_=0
@ -110,6 +115,7 @@ ARGS=--no-examples
%endif
%{_bindir}/R CMD check %{packname} $ARGS
%endif
%files
@ -134,6 +140,10 @@ ARGS=--no-examples
%changelog
* Fri Jun 5 2020 Tom Callaway <spot@fedoraproject.org> - 1.28-2
- conditionalize check to get this built (half the R universe depends on it)
- rebuild for R 4
* Mon Feb 24 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.28-1
- Update to latest version