diff --git a/backport-fix-typo-and-grammar-mistake.patch b/backport-fix-typo-and-grammar-mistake.patch new file mode 100644 index 0000000000000000000000000000000000000000..b4d44e7c82e97ab266d66f890dfcefe50ea48ee4 --- /dev/null +++ b/backport-fix-typo-and-grammar-mistake.patch @@ -0,0 +1,39 @@ +From 60e83271dce5cc019dbfc0935052da0904a5d425 Mon Sep 17 00:00:00 2001 +From: Hongkuan Wang +Date: Wed, 22 Sep 2021 22:13:48 +0800 +Subject: [PATCH] fix typo and grammar mistake + +--- + src/werkzeug/filesystem.py | 2 +- + src/werkzeug/test.py | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/werkzeug/filesystem.py b/src/werkzeug/filesystem.py +index 36a3d12e..16eb5861 100644 +--- a/src/werkzeug/filesystem.py ++++ b/src/werkzeug/filesystem.py +@@ -37,7 +37,7 @@ def get_filesystem_encoding() -> str: + because it might be different. See :ref:`filesystem-encoding` for the exact + behavior. + +- The concept of a filesystem encoding in generally is not something you ++ The concept of a filesystem encoding in general is not something you + should rely on. As such if you ever need to use this function except for + writing wrapper code reconsider. + """ +diff --git a/src/werkzeug/test.py b/src/werkzeug/test.py +index d0ce6f95..7ee27477 100644 +--- a/src/werkzeug/test.py ++++ b/src/werkzeug/test.py +@@ -322,7 +322,7 @@ class EnvironBuilder: + + .. versionadded:: 0.15 + The environ has keys ``REQUEST_URI`` and ``RAW_URI`` containing +- the path before perecent-decoding. This is not part of the WSGI ++ the path before percent-decoding. This is not part of the WSGI + PEP, but many WSGI servers include it. + + .. versionchanged:: 0.6 +-- +2.33.0 + diff --git a/python-werkzeug.spec b/python-werkzeug.spec index 8ff642bb4c906f48ec4408527048882559160161..f7e4540dede2c7956c89ef8cef8ebc18bcfb4ee4 100644 --- a/python-werkzeug.spec +++ b/python-werkzeug.spec @@ -1,11 +1,14 @@ %global _empty_manifest_terminate_build 0 Name: python-werkzeug Version: 2.0.3 -Release: 1 +Release: 2 Summary: The comprehensive WSGI web application library. License: BSD-3-Clause URL: https://palletsprojects.com/p/werkzeug/ Source0: https://files.pythonhosted.org/packages/6c/a8/60514fade2318e277453c9588545d0c335ea3ea6440ce5cdabfca7f73117/Werkzeug-2.0.3.tar.gz + +Patch0001: backport-fix-typo-and-grammar-mistake.patch + BuildArch: noarch BuildRequires: python3-werkzeug @@ -122,7 +125,7 @@ providing more structure and patterns for defining powerful applications. %prep -%autosetup -n Werkzeug-%{version} +%autosetup -n Werkzeug-%{version} -p1 #remove test case which depend on xprocess sed -i '/from xprocess import ProcessStarter/, +141d' tests/conftest.py sed -i '/@pytest.mark.filterwarnings/, +221d' tests/test_serving.py @@ -174,6 +177,9 @@ export PYTHONPATH=$PYTHONPATH:$depath %{_docdir}/* %changelog +* Sat Jan 7 2023 Bolehu - 2.0.3-2 +- fix typo and grammar mistake + * Tue Oct 25 2022 Ge Wang - 2.0.3-1 - Upgrade to version 2.0.3