CI: Patch httpbin to build it in Rawhide with werkzeug

This commit is contained in:
Karolina Surma 2022-08-09 15:43:30 +02:00
parent fa49bf2efb
commit 3d854401bd

View File

@ -10,6 +10,11 @@ BuildArch: noarch
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: pyproject-rpm-macros 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 # no flask, itsdangerous, raven, werkzeug packaged for EPEL 9 yet
# cannot run tests on EPEL and also cannot BuildRequire runtime deps # cannot run tests on EPEL and also cannot BuildRequire runtime deps
%if 0%{?fedora} %if 0%{?fedora}
@ -30,7 +35,7 @@ Summary: %{summary}
%prep %prep
%autosetup -n httpbin-%{version} %autosetup -n httpbin-%{version} -p1
# brotlipy wrapper is not packaged, httpbin works fine with brotli # brotlipy wrapper is not packaged, httpbin works fine with brotli
sed -i s/brotlipy/brotli/ setup.py sed -i s/brotlipy/brotli/ setup.py