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
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: gettext
|
BuildRequires: gettext
|
||||||
BuildRequires: python3-coverage
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-requests
|
BuildRequires: python3-requests
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
BuildRequires: python3-six
|
BuildRequires: python3-six
|
||||||
BuildRequires: python3-sphinx
|
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
|
|
||||||
|
# Only required when building with runtests
|
||||||
|
%if %{with runtests}
|
||||||
|
BuildRequires: python3-coverage
|
||||||
|
BuildRequires: python3-sphinx
|
||||||
|
%endif
|
||||||
|
|
||||||
Requires: python3-kickstart = %{version}-%{release}
|
Requires: python3-kickstart = %{version}-%{release}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
|
|
||||||
required_packages:
|
required_packages:
|
||||||
- fedpkg
|
- fedpkg
|
||||||
|
- python3-sphinx
|
||||||
|
- python3-coverage
|
||||||
|
|
||||||
tests:
|
tests:
|
||||||
- simple:
|
- simple:
|
||||||
|
Loading…
Reference in New Issue
Block a user