diff --git a/python-backports-functools_lru_cache.spec b/python-backports-functools_lru_cache.spec index 46f1789..c96d8a3 100644 --- a/python-backports-functools_lru_cache.spec +++ b/python-backports-functools_lru_cache.spec @@ -15,7 +15,7 @@ BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools # python2-setuptools is too old in EPEL7 for these -%if 0%{?fedora} +%if 0%{?fedora} || 0%{?rhel} > 7 BuildRequires: python2-setuptools_scm BuildRequires: python2-pytest-runner %endif @@ -46,7 +46,7 @@ Requires: python2-backports %check # python2-setuptools is too old in EPEL7 to run tests -%if 0%{?fedora} +%if 0%{?fedora} || 0%{?rhel} > 7 %{__python2} setup.py test %endif