From 119b63343483ee87133815a340ce4eae2dd1cdbe Mon Sep 17 00:00:00 2001 From: Brian C. Lane Date: Jan 15 2021 20:02:01 +0000 Subject: 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 --- diff --git a/pykickstart.spec b/pykickstart.spec index 864a29c..977715f 100644 --- a/pykickstart.spec +++ b/pykickstart.spec @@ -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 diff --git a/tests/tests.yml b/tests/tests.yml index 171d4d0..55509ba 100644 --- a/tests/tests.yml +++ b/tests/tests.yml @@ -8,6 +8,8 @@ required_packages: - fedpkg + - python3-sphinx + - python3-coverage tests: - simple: