diff --git a/0001-change-requires-version.patch b/0001-change-requires-version.patch index c107d757403db2ca5d175b34bb50eb9bffe16afe..27c7f912d0072e4a5d8e2888b23a9458c803dc93 100644 --- a/0001-change-requires-version.patch +++ b/0001-change-requires-version.patch @@ -1,47 +1,35 @@ -diff -Nur a/setup.py b/setup.py ---- a/setup.py 2021-07-16 16:24:38.000000000 +0800 -+++ b/setup.py 2023-09-01 09:21:55.013086462 +0800 -@@ -66,31 +66,31 @@ - # https://packaging.python.org/en/latest/requirements/#install-requires +diff --git a/setup.py b/setup.py +index 94ef426..7661a0e 100644 +--- a/setup.py ++++ b/setup.py +@@ -73,10 +73,10 @@ setup( + # https://packaging.python.org/en/latest/discussions/install-requires-vs-requirements/#install-requires # It is not considered best practice to use install_requires to pin dependencies to specific versions. install_requires=[ -- "asgiref>=3.2.10,<3.5", -- "blinker>=1.4, <1.5", +- "asgiref>=3.2.10,<3.6", + "asgiref>=3.2.10", -+ "blinker>=1.4", "Brotli>=1.0,<1.1", "certifi>=2019.9.11", # no semver here - this should always be on the last release! - "click>=7.0,<8.1", -- "cryptography>=3.3,<3.5", -- "flask>=1.1.1,<2.1", -- "h11>=0.11,<0.13", -+ "cryptography>=3.3", -+ "flask>=1.1.1", -+ "h11>=0.11", - "h2>=4.0,<5", - "hyperframe>=6.0,<7", -- "kaitaistruct>=0.7,<0.10", -+ "kaitaistruct>=0.7", - "ldap3>=2.8,<2.10", +- "cryptography>=38.0,<38.1", ++ "cryptography>=38.0", + "flask>=1.1.1,<2.3", + "h11>=0.11,<0.15", + "h2>=4.1,<5", +@@ -87,7 +87,7 @@ setup( "msgpack>=1.0.0, <1.1.0", "passlib>=1.6.5, <1.8", -- "protobuf>=3.14,<3.18", -- "pyOpenSSL>=20.0,<20.1", -- "pyparsing>=2.4.2,<2.5", -+ "protobuf>=3.14", -+ "pyOpenSSL>=20.0", -+ "pyparsing>=2.4.2", + "protobuf>=3.14,<5", +- "pyOpenSSL>=22.1,<22.2", ++ "pyOpenSSL>=22.1", + "pyparsing>=2.4.2,<3.1", "pyperclip>=1.6.0,<1.9", -- "ruamel.yaml>=0.16,<0.17.11", -+ "ruamel.yaml>=0.16", - "sortedcontainers>=2.3,<2.5", - "tornado>=4.3,<7", + "ruamel.yaml>=0.16,<0.18", +@@ -96,7 +96,7 @@ setup( "urwid>=2.1.1,<2.2", -- "wsproto>=1.0,<1.1", -+ "wsproto>=1.0", + "wsproto>=1.0,<1.3", "publicsuffix2>=2.20190812,<3", -- "zstandard>=0.11,<0.16", +- "zstandard>=0.11,<0.20", + "zstandard>=0.11", + "typing-extensions>=4.3,<4.5; python_version<'3.10'", ], extras_require={ - ':sys_platform == "win32"': [ diff --git a/v7.0.0.tar.gz b/mitmproxy-9.0.1.tar.gz similarity index 70% rename from v7.0.0.tar.gz rename to mitmproxy-9.0.1.tar.gz index 6fa21e5b47c94620c495c85b78c14a1300bc68b4..0377b354d36300138f23a4775969b10cb7029f0e 100644 Binary files a/v7.0.0.tar.gz and b/mitmproxy-9.0.1.tar.gz differ diff --git a/python-mitmproxy.spec b/python-mitmproxy.spec index 707597a49feb9ca328ae602ed540ddbb2414ff68..b704938a0490487ddab2b99aedcff22988fbf30f 100644 --- a/python-mitmproxy.spec +++ b/python-mitmproxy.spec @@ -1,11 +1,11 @@ %global _empty_manifest_terminate_build 0 Name: python-mitmproxy -Version: 7.0.0 -Release: 6 +Version: 9.0.1 +Release: 1 Summary: An interactive, SSL/TLS-capable intercepting proxy for HTTP/1, HTTP/2, and WebSockets. License: MIT URL: https://github.com/mitmproxy/mitmproxy/ -Source0: https://github.com/mitmproxy/mitmproxy/archive/refs/tags/v%{version}.tar.gz +Source0: https://github.com/mitmproxy/mitmproxy/archive/%{version}/mitmproxy-%{version}.tar.gz Patch0001: 0001-change-requires-version.patch BuildArch: noarch Requires: python3-asgiref python3-blinker python3-Brotli python3-certifi python3-click @@ -17,7 +17,6 @@ Requires: python3-publicsuffix2 python3-zstandard python3-pydivert py Requires: python3-parver python3-pdoc python3-pyinstaller python3-pytest-asyncio Requires: python3-pytest-cov python3-pytest-timeout python3-pytest-xdist python3-pytest Requires: python3-requests python3-tox python3-wheel - %description mitmproxy is an interactive, SSL/TLS-capable intercepting proxy with a console interface for HTTP/1, HTTP/2, and WebSockets. @@ -75,6 +74,11 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Tue Sep 19 2023 xu_ping <707078654@qq.com> - 9.0.1-1 +- Upgrade version to 9.0.1 +- add Raw UDP and DTLS support. +- Deprecate add_log event hook and mitmproxy.ctx.log. + * Fri Sep 1 2023 liyanan - 7.0.0-6 - Modify the installation dependency protobuf version limit