14
0

Accepting request 1152313 from home:mcalabkova:branches:devel:languages:python

needed by mitmproxy

OBS-URL: https://build.opensuse.org/request/show/1152313
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mitmproxy-rs?expand=0&rev=1
This commit is contained in:
2024-02-29 09:00:06 +00:00
committed by Git OBS Bridge
commit 51dd9d883f
7 changed files with 98 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

9
_service Normal file
View File

@@ -0,0 +1,9 @@
<services>
<service name="download_files" mode="manual"/>
<service name="cargo_vendor" mode="manual">
<param name="srcdir">mitmproxy_rs-0.5.1</param>
<param name="compression">zst</param>
</service>
<service name="cargo_audit" mode="manual">
</service>
</services>

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d8fc5dfde7bee019ebd0b29b28f178236949f3b4f229b9219929f15e2386d671
size 1166684

View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Tue Feb 27 10:23:45 UTC 2024 - Markéta Machová <mmachova@suse.com>
- Initial packaging (v0.5.1), needed by python-mitmproxy

55
python-mitmproxy-rs.spec Normal file
View File

@@ -0,0 +1,55 @@
#
# spec file for package python-mitmproxy-rs
#
# Copyright (c) 2024 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/
#
%define skip_python39 1
Name: python-mitmproxy-rs
Version: 0.5.1
Release: 0
Summary: Rust bits for mitmproxy
License: MIT
URL: https://github.com/mitmproxy/mitmproxy_rs
Source: https://files.pythonhosted.org/packages/source/m/mitmproxy-rs/mitmproxy_rs-%{version}.tar.gz
Source1: vendor.tar.zst
BuildRequires: cargo-packaging
BuildRequires: python-rpm-macros
BuildRequires: %{python_module maturin >= 1}
BuildRequires: %{python_module pip}
BuildRequires: fdupes
%python_subpackages
%description
This package contains mitmproxy's Rust bits.
%prep
%autosetup -a1 -p1 -n mitmproxy_rs-%{version}
rm -v Cargo.lock
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
# no tests in the tarball
%files %{python_files}
%{python_sitearch}/mitmproxy_rs
%{python_sitearch}/mitmproxy_rs-%{version}.dist-info
%changelog

3
vendor.tar.zst Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:48eb5b2e6f0d04663ceeec7b7b18f7cc6fe0b71d9210ff971d1803742f40c947
size 48199664