conditionalize check to break loop with httpuv, rebuild for R 4

This commit is contained in:
Tom Callaway 2020-06-05 22:08:57 -04:00
parent 8f9fe05944
commit dd316a6fcc
1 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,5 @@
%bcond_with check
%global packname curl
%global rlibdir %{_libdir}/R/library
@ -8,7 +10,7 @@
Name: R-%{packname}
Version: 4.3
Release: 2%{?dist}
Release: 3%{?dist}
Summary: A Modern and Flexible Web Client for R
License: MIT
@ -25,6 +27,7 @@ Source0: https://cran.r-project.org/src/contrib/%{packname}_%{version}.
BuildRequires: R-devel
BuildRequires: tex(latex)
BuildRequires: pkgconfig(libcurl)
%if %{with check}
BuildRequires: R-spelling
BuildRequires: R-testthat >= 1.0.0
BuildRequires: R-jsonlite
@ -38,6 +41,7 @@ BuildRequires: R-magrittr
%if %{with_test}
BuildRequires: R-webutils
%endif
%endif
%description
The curl() and curl_download() functions provide highly configurable drop-in
@ -66,6 +70,7 @@ rm -f %{buildroot}%{rlibdir}/R.css
%check
%if %{with check}
ARGS=
%if ! %{with_test}
export _R_CHECK_FORCE_SUGGESTS_=0
@ -76,7 +81,7 @@ export _R_CHECK_FORCE_SUGGESTS_=0
ARGS="$ARGS --ignore-vignettes"
%endif
%{_bindir}/R CMD check %{packname} $ARGS
%endif
%files
%dir %{rlibdir}/%{packname}
@ -96,6 +101,10 @@ ARGS="$ARGS --ignore-vignettes"
%changelog
* Fri Jun 5 2020 Tom Callaway <spot@fedoraproject.org> - 4.3-3
- conditionalize check to break loop with httpuv
- rebuild for R 4
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild