Enable documentation.

This commit is contained in:
Elliott Sales de Andrade 2019-02-16 00:15:26 -05:00
parent 98465fa3d0
commit e4172f2036
1 changed files with 10 additions and 9 deletions

View File

@ -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 <quantum.analyst@gmail.com> - 3.3-1
- Update to latest version
- Enable documentation
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild