From 8ce951a84f40986c6f18343da12761cfbb8843438d775ed81ee651511140d52e Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 9 Dec 2021 12:25:23 +0000 Subject: [PATCH] Accepting request 937313 from home:susnux:branches:devel:languages:python Update to 7.0.4 OBS-URL: https://build.opensuse.org/request/show/937313 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mitmproxy?expand=0&rev=8 --- mitmproxy-6.0.2.tar.gz | 3 --- mitmproxy-7.0.4.tar.gz | 3 +++ python-mitmproxy.changes | 17 +++++++++++++++++ python-mitmproxy.spec | 24 ++++++------------------ 4 files changed, 26 insertions(+), 21 deletions(-) delete mode 100644 mitmproxy-6.0.2.tar.gz create mode 100644 mitmproxy-7.0.4.tar.gz diff --git a/mitmproxy-6.0.2.tar.gz b/mitmproxy-6.0.2.tar.gz deleted file mode 100644 index 342c109..0000000 --- a/mitmproxy-6.0.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:15b32ce31e707d35de1707afe09e82bbf3d643bdd93968c5512caba80523c606 -size 27274682 diff --git a/mitmproxy-7.0.4.tar.gz b/mitmproxy-7.0.4.tar.gz new file mode 100644 index 0000000..a1285df --- /dev/null +++ b/mitmproxy-7.0.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8728d18c69053f0043acebcdabf46f2eeea51f0f0b60c528e1d356cf48ed2ca2 +size 27312748 diff --git a/python-mitmproxy.changes b/python-mitmproxy.changes index f55d533..8f2bdc5 100644 --- a/python-mitmproxy.changes +++ b/python-mitmproxy.changes @@ -1,3 +1,20 @@ +------------------------------------------------------------------- +Wed Dec 8 21:07:48 UTC 2021 - Ferdinand Thiessen + +- Update to 7.0.4 + * Compatibility with Python 3.10 + * Supports proxying raw TCP connections + * Support TCP connections that start with a server-side greeting + * Support SMTP + * Accept HTTP/2 requests from the client and forward them to + an HTTP/1 server + * Displays WebSocket messages also in a dedicated UI tab + * Clients can now establish TLS with the proxy right from the + start, which can add a significant layer of defense in public + networks. + * Removed pathoc and pathod, see + https://github.com/mitmproxy/mitmproxy/issues/4273 + ------------------------------------------------------------------- Wed Jan 27 14:37:07 UTC 2021 - Markéta Machová diff --git a/python-mitmproxy.spec b/python-mitmproxy.spec index 67a37a7..99c0d81 100644 --- a/python-mitmproxy.spec +++ b/python-mitmproxy.spec @@ -20,13 +20,13 @@ %define skip_python2 1 %define skip_python36 1 Name: python-mitmproxy -Version: 6.0.2 +Version: 7.0.4 Release: 0 Summary: An interactive, SSL/TLS-capable intercepting proxy License: MIT Group: Development/Languages/Python URL: https://mitmproxy.org -Source: https://github.com/mitmproxy/mitmproxy/archive/v%{version}.tar.gz#/mitmproxy-%{version}.tar.gz +Source: https://github.com/mitmproxy/mitmproxy/archive/refs/tags/v%{version}.tar.gz#/mitmproxy-%{version}.tar.gz BuildRequires: %{python_module Brotli >= 1.0} BuildRequires: %{python_module Flask >= 1.1.1} BuildRequires: %{python_module asgiref >= 3.2.10} @@ -84,13 +84,11 @@ Requires: python-urwid >= 2.1.1 Requires: python-wsproto >= 1.0 Requires: python-zstandard >= 0.11 Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives BuildArch: noarch %python_subpackages %description -This repository contains the **mitmproxy** and **pathod** projects. - mitmproxy is an interactive, SSL/TLS-capable intercepting proxy with a console interface for HTTP/1, HTTP/2, and WebSockets. @@ -98,14 +96,12 @@ mitmdump is the command-line version of mitmproxy. Think tcpdump for HTTP. mitmweb is a web-based interface for mitmproxy. -pathoc and pathod are perverse HTTP client and server applications -designed to let you craft almost any conceivable HTTP request, including ones -that creatively violate the standards. - %prep %setup -q -n mitmproxy-%{version} #remove shebang +sed -i '1 {\@^#!/usr/bin/python@ d}' mitmproxy/contrib/urwid/raw_display.py sed -i '1 {\@^#!/usr/bin/env@ d}' mitmproxy/contrib/wbxml/*.py +sed -i '1 {\@^#!/usr/bin/env@ d}' mitmproxy/utils/emoji.py # upstream likes to pin dependencies too aggressively sed -i 's/,\s*<.*"/"/g' setup.py rm mitmproxy/contrib/kaitaistruct/make.sh @@ -119,8 +115,6 @@ rm mitmproxy/contrib/kaitaistruct/make.sh %python_clone -a %{buildroot}%{_bindir}/mitmdump %python_clone -a %{buildroot}%{_bindir}/mitmproxy %python_clone -a %{buildroot}%{_bindir}/mitmweb -%python_clone -a %{buildroot}%{_bindir}/pathoc -%python_clone -a %{buildroot}%{_bindir}/pathod %check # test_refresh fails on i586... wrong timestamp type, maybe? @@ -132,24 +126,18 @@ rm mitmproxy/contrib/kaitaistruct/make.sh %python_install_alternative mitmdump %python_install_alternative mitmproxy %python_install_alternative mitmweb -%python_install_alternative pathoc -%python_install_alternative pathod %postun %python_uninstall_alternative mitmdump %python_uninstall_alternative mitmproxy %python_uninstall_alternative mitmweb -%python_uninstall_alternative pathoc -%python_uninstall_alternative pathod %files %{python_files} -%doc README.rst CHANGELOG.rst +%doc README.md CHANGELOG.md %license LICENSE %{python_sitelib}/* %python_alternative %{_bindir}/mitmdump %python_alternative %{_bindir}/mitmproxy %python_alternative %{_bindir}/mitmweb -%python_alternative %{_bindir}/pathoc -%python_alternative %{_bindir}/pathod %changelog