From e4172f2036088819f2912e21974e58706c4a213a Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Feb 16 2019 05:15:26 +0000 Subject: Enable documentation. --- diff --git a/R-curl.spec b/R-curl.spec index 74ee7ef..a05795f 100644 --- a/R-curl.spec +++ b/R-curl.spec @@ -2,7 +2,7 @@ %global rlibdir %{_libdir}/R/library # Dependency loops and/or not yet packaged. -%global with_doc 0 +%global with_doc 1 # These all require the network at the moment + dependency loop. %global with_test 0 @@ -66,16 +66,16 @@ rm -f %{buildroot}%{rlibdir}/R.css %check -%if %{with_test} -TEST= -%else -TEST="--no-tests --no-examples" +ARGS= +%if ! %{with_test} +export _R_CHECK_FORCE_SUGGESTS_=0 +ARGS="$ARGS --no-tests --no-examples" %endif -%if %{with_doc} -%{_bindir}/R CMD check %{packname} $TEST -%else -_R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname} --ignore-vignettes $TEST +%if ! %{with_doc} +export _R_CHECK_FORCE_SUGGESTS_=0 +ARGS="$ARGS --ignore-vignettes" %endif +%{_bindir}/R CMD check %{packname} $ARGS %files @@ -99,6 +99,7 @@ _R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname} --ignore-vignettes %changelog * Sat Feb 16 2019 Elliott Sales de Andrade - 3.3-1 - Update to latest version +- Enable documentation * Thu Jan 31 2019 Fedora Release Engineering - 3.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild