diff --git a/python-avocado.spec b/python-avocado.spec index f2eb78702d9c1b943c852ff97c026fec09ce83ac..d457282c194d452bfb8abe8be3d19e9d39e71185 100644 --- a/python-avocado.spec +++ b/python-avocado.spec @@ -99,6 +99,10 @@ BuildRequires: python2-setuptools BuildRequires: python2-six BuildRequires: python2-sphinx BuildRequires: python2-stevedore +%endif +%if 0%{?fedora} && 0%{?fedora} <= 29 +# Python2 binary packages are being removed +# See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal BuildRequires: python2-pycdlib %endif @@ -157,6 +161,10 @@ Requires: python2-requests Requires: python2-setuptools Requires: python2-six Requires: python2-stevedore +%endif +%if 0%{?fedora} && 0%{?fedora} <= 29 +# Python2 binary packages are being removed +# See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal Requires: python2-pycdlib %endif %{?python_provide:%python_provide python2-%{srcname}}