From a81b91497f7ddb756aeb648134cad248fee21821 Mon Sep 17 00:00:00 2001 From: Karolina Surma Date: Wed, 10 Aug 2022 07:12:40 +0000 Subject: [PATCH] CI: Patch httpbin to build it in Rawhide with werkzeug Related: rhbz#2117571 --- tests/python-httpbin.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/python-httpbin.spec b/tests/python-httpbin.spec index e1e25c6..15d2d8e 100644 --- a/tests/python-httpbin.spec +++ b/tests/python-httpbin.spec @@ -10,6 +10,11 @@ BuildArch: noarch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros +%if 0%{?fedora} >= 37 || 0%{?rhel} >= 10 +# Wekrzeug in Fedora 37 isn't compatible with our httpbin +Patch: https://src.fedoraproject.org/rpms/python-httpbin/raw/0e4a7e2812/f/0001-Fix-disabling-of-location-header-autocorrect-for-wer.patch +%endif + # no flask, itsdangerous, raven, werkzeug packaged for EPEL 9 yet # cannot run tests on EPEL and also cannot BuildRequire runtime deps %if 0%{?fedora} @@ -30,7 +35,7 @@ Summary: %{summary} %prep -%autosetup -n httpbin-%{version} +%autosetup -n httpbin-%{version} -p1 # brotlipy wrapper is not packaged, httpbin works fine with brotli sed -i s/brotlipy/brotli/ setup.py