Conditionally BuildRequire coverage and sphinx for runtests
They aren't needed for the build unless runtests has been selected (it is disabled by default). Resolves: rhbz#1916735
This commit is contained in:
parent
dd6f3364fc
commit
119b633434
@ -18,14 +18,18 @@ Source1: %{name}-%{version}.tar.gz.asc
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: gettext
|
||||
BuildRequires: python3-coverage
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-requests
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-six
|
||||
BuildRequires: python3-sphinx
|
||||
BuildRequires: make
|
||||
|
||||
# Only required when building with runtests
|
||||
%if %{with runtests}
|
||||
BuildRequires: python3-coverage
|
||||
BuildRequires: python3-sphinx
|
||||
%endif
|
||||
|
||||
Requires: python3-kickstart = %{version}-%{release}
|
||||
|
||||
%description
|
||||
|
@ -8,6 +8,8 @@
|
||||
|
||||
required_packages:
|
||||
- fedpkg
|
||||
- python3-sphinx
|
||||
- python3-coverage
|
||||
|
||||
tests:
|
||||
- simple:
|
||||
|
Loading…
Reference in New Issue
Block a user