From 3d854401bd41eb2b80cbdb8a95459cfc2b5eb8cf Mon Sep 17 00:00:00 2001 From: Karolina Surma Date: Tue, 9 Aug 2022 15:43:30 +0200 Subject: [PATCH] CI: Patch httpbin to build it in Rawhide with werkzeug --- 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