From f91e86193be91a933dcad1ca1aeccee1fd019308 Mon Sep 17 00:00:00 2001 From: Haikel Guemar Date: Oct 17 2017 09:26:30 +0000 Subject: Fix PyYAML requires for EL7 --- diff --git a/python-stestr.spec b/python-stestr.spec index b4b0525..413c81d 100644 --- a/python-stestr.spec +++ b/python-stestr.spec @@ -1,6 +1,10 @@ %global pypi_name stestr %global with_doc 1 +# Note(hguemar): PyYAML provide is scheduled to be removed +%{?el7: %define pyyaml_pkg PyYAML} +%{!?el7: %define pyyaml_pkg python2-pyyaml} + %if 0%{?fedora} %global with_python3 0 %endif @@ -39,7 +43,7 @@ BuildRequires: python2-subunit BuildRequires: python2-fixtures BuildRequires: python2-six BuildRequires: python2-testtools -BuildRequires: python2-pyyaml +BuildRequires: %{pyyaml_pkg} BuildRequires: python2-ddt Requires: python2-pbr @@ -48,7 +52,7 @@ Requires: python2-subunit Requires: python2-fixtures Requires: python2-six Requires: python2-testtools -Requires: python2-pyyaml +Requires: %{pyyaml_pkg} %description -n python2-%{pypi_name} %{common_desc}