Add option to disable tests due to dependency loop.
This commit is contained in:
parent
7480504ee1
commit
fefae43bc5
20
R-ps.spec
20
R-ps.spec
|
@ -1,9 +1,12 @@
|
|||
%global packname ps
|
||||
%global rlibdir %{_libdir}/R/library
|
||||
|
||||
# Tests requires processx which requires this package.
|
||||
%global with_test 1
|
||||
|
||||
Name: R-%{packname}
|
||||
Version: 1.1.0
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: List, Query, Manipulate System Processes
|
||||
|
||||
License: BSD
|
||||
|
@ -22,12 +25,14 @@ Suggests: R-tibble
|
|||
BuildRequires: R-devel
|
||||
BuildRequires: tex(latex)
|
||||
BuildRequires: R-utils
|
||||
BuildRequires: R-callr
|
||||
BuildRequires: R-processx >= 3.1.0
|
||||
BuildRequires: R-R6
|
||||
BuildRequires: R-rlang
|
||||
BuildRequires: R-testthat
|
||||
BuildRequires: R-tibble
|
||||
%if %{with_test}
|
||||
BuildRequires: R-callr
|
||||
BuildRequires: R-processx >= 3.1.0
|
||||
BuildRequires: R-testthat
|
||||
%endif
|
||||
|
||||
%description
|
||||
List, query and manipulate all system processes, on 'Windows', 'Linux' and
|
||||
|
@ -52,7 +57,11 @@ rm -f %{buildroot}%{rlibdir}/R.css
|
|||
|
||||
|
||||
%check
|
||||
%if %{with_test}
|
||||
%{_bindir}/R CMD check %{packname}
|
||||
%else
|
||||
_R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname} --no-tests
|
||||
%endif
|
||||
|
||||
|
||||
%files
|
||||
|
@ -73,5 +82,8 @@ rm -f %{buildroot}%{rlibdir}/R.css
|
|||
|
||||
|
||||
%changelog
|
||||
* Mon Aug 20 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.1.0-2
|
||||
- Add option to disable tests due to dependency loop
|
||||
|
||||
* Sun Aug 19 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.1.0-1
|
||||
- initial package for Fedora
|
||||
|
|
Loading…
Reference in New Issue