diff --git a/python-httpbin.spec b/python-httpbin.spec index 3a05b50..21febef 100644 --- a/python-httpbin.spec +++ b/python-httpbin.spec @@ -1,3 +1,11 @@ +# Not building on EPEL 6 because python-flask on EPEL 6 is flat broken; +# it depends on python-jinja2-26 but does not load it properly, so +# httpbin's test suite fails as soon as it tries to import flask. + +# Not building on EPEL 7 as test_delete_endpoint_returns_body fails +# there, for some reason, and I do not have the round tuits to figure +# it out. + %global github_owner Runscope %global github_name httpbin %global github_commit 3f417eb81885f9e5fd99282121e3df9d619583c1 @@ -9,8 +17,9 @@ being considered. All endpoint responses are JSON-encoded. %global sum HTTP Request & Response Service, written in Python + Flask -# Enable Python 3 builds for Fedora + EPEL >6 -%if 0%{?fedora} || 0%{?rhel} >= 6 +# Enable Python 3 builds for Fedora + EPEL >7 +# EPEL 7 is missing Python 3 builds of flask and itsdangerous +%if 0%{?fedora} || 0%{?rhel} > 7 # If the definition isn't available for python3_pkgversion, define it %{?!python3_pkgversion:%global python3_pkgversion 3} %bcond_without python3 @@ -20,7 +29,7 @@ being considered. All endpoint responses are JSON-encoded. # Requirements for tests (BuildRequires) and run (Requires) # EPEL builds do not provide python2-* -%global t_requires python-flask python-markupsafe python-decorator python-itsdangerous python-six +%global t_requires python-flask python-markupsafe python-decorator python-itsdangerous python-six python-argparse %global t3_requires python%{python3_pkgversion}-flask python%{python3_pkgversion}-markupsafe python%{python3_pkgversion}-decorator python%{python3_pkgversion}-itsdangerous python%{python3_pkgversion}-six Name: python-%{github_name} @@ -34,6 +43,8 @@ Source0: https://github.com/%{github_owner}/%{github_name}/archive/%{gith BuildArch: noarch BuildRequires: python2-devel +# no python2-setuptools on EL6 +BuildRequires: python-setuptools BuildRequires: %{t_requires} %if %{with python3}