From 12d7bd4663fe259de00f3f1b48c9778efb01f0a80145a9ee8efea7abc8bc0e83 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 11 Dec 2021 23:51:10 +0000 Subject: [PATCH] Accepting request 939973 from home:bnavigator:branches:devel:languages:python required by aiohttp 3.8 testing OBS-URL: https://build.opensuse.org/request/show/939973 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-proxy.py?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + proxy.py-2.3.1-gh.tar.gz | 3 ++ python-proxy.py.changes | 5 +++ python-proxy.py.spec | 74 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 106 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 proxy.py-2.3.1-gh.tar.gz create mode 100644 python-proxy.py.changes create mode 100644 python-proxy.py.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/proxy.py-2.3.1-gh.tar.gz b/proxy.py-2.3.1-gh.tar.gz new file mode 100644 index 0000000..6c8c78f --- /dev/null +++ b/proxy.py-2.3.1-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7e48bef954861cd73aa116f9a1f603fceb72274753df019aad3d478ff067def8 +size 705484 diff --git a/python-proxy.py.changes b/python-proxy.py.changes new file mode 100644 index 0000000..ebb955d --- /dev/null +++ b/python-proxy.py.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sat Dec 11 19:50:52 UTC 2021 - Ben Greiner + +- initial specfile for version 2.3.1 +- required by aiohttp 3.8 testing diff --git a/python-proxy.py.spec b/python-proxy.py.spec new file mode 100644 index 0000000..1ad48b5 --- /dev/null +++ b/python-proxy.py.spec @@ -0,0 +1,74 @@ +# +# spec file for package python-proxy.py +# +# Copyright (c) 2021 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python3-%{**}} +%define skip_python2 1 +Name: python-proxy.py +Version: 2.3.1 +Release: 0 +Summary: TLS interception capable proxy server +License: BSD-3-Clause +URL: https://github.com/abhinavsingh/proxy.py +# PyPI sdist does not have tests, use Github source +Source: https://github.com/abhinavsingh/proxy.py/archive/refs/tags/v%{version}.tar.gz#/proxy.py-%{version}-gh.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-typing-extensions >= 3.7.4.3 +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module typing-extensions >= 3.7.4.3} +BuildRequires: openssl +# /SECTION +%python_subpackages + +%description +Fast, Lightweight, Pluggable, TLS interception capable proxy server +focused on Network monitoring, controls & Application development, testing, debugging. + +%prep +%setup -q -n proxy.py-%{version} + +%build +%python_build + +%install +%python_install +%python_clone -a %{buildroot}%{_bindir}/proxy +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%post +%python_install_alternative proxy + +%postun +%python_uninstall_alternative proxy + +%files %{python_files} +%doc README.md +%license LICENSE +%python_alternative %{_bindir}/proxy +%{python_sitelib}/proxy +%{python_sitelib}/proxy.py-%{version}*-info + +%changelog