15
0

Accepting request 969571 from home:bnavigator:branches:devel:languages:python:flask

- Truncate werkzeug.patch as Flask changed their behavior back to
  returning relative URLs.
- Update fix-setup-py.patch accordingly
- Update _service file (rerun modifies the archive, but keeps same
  tag)

OBS-URL: https://build.opensuse.org/request/show/969571
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpbin?expand=0&rev=20
This commit is contained in:
2022-04-12 23:11:11 +00:00
committed by Git OBS Bridge
parent d524fa2f17
commit 7a3966f616
6 changed files with 21 additions and 50 deletions

View File

@@ -17,6 +17,8 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
# The PyPI version is 0.7.0 but the metadata reads an internal file with version 0.9.2
%define internalversion 0.9.2
Name: python-httpbin
Version: 0.7.0+git20181107.f8ec666
Release: 0
@@ -30,7 +32,7 @@ Patch0: werkzeug.patch
# Based on https://github.com/postmanlabs/httpbin/pull/553
Patch1: fix-setup-py.patch
BuildRequires: %{python_module Brotli}
BuildRequires: %{python_module Flask}
BuildRequires: %{python_module Flask >= 2.1}
BuildRequires: %{python_module MarkupSafe}
BuildRequires: %{python_module Werkzeug >= 2.0}
BuildRequires: %{python_module blinker}
@@ -43,7 +45,7 @@ BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Brotli
Requires: python-Flask
Requires: python-Flask >= 2.1
Requires: python-MarkupSafe
Requires: python-Werkzeug >= 2.0
Requires: python-blinker
@@ -67,6 +69,7 @@ All endpoint responses are JSON-encoded.
%prep
%autosetup -p1
chmod -x httpbin/templates/forms-post.html
%build
export LANG=en_US.UTF-8
@@ -83,6 +86,7 @@ export LANG=en_US.UTF-8
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/*
%{python_sitelib}/httpbin
%{python_sitelib}/httpbin-%{internalversion}*-info
%changelog