File python-mitmproxy-wireguard.spec of Package python-mitmproxy-wireguard

# spec file for package python-mitmproxy-wireguard
# 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

%define modname mitmproxy_wireguard
Name:           python-mitmproxy-wireguard
Version:        0.1.23
Release:        0
Summary:        WireGuard interface for mitmproxy
License:        MIT
# use `osc service disabledrun` to regenerate
Source2:        vendor.tar.zst
Source3:        cargo_config
BuildRequires:  %{python_module devel >= 3.7}
BuildRequires:  %{python_module maturin >= 0.13.0}
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module setuptools-rust}
BuildRequires:  %{python_module wheel}
BuildRequires:  cargo >= 1.41.0
BuildRequires:  cargo-packaging
BuildRequires:  fdupes
BuildRequires:  libopenssl-devel
BuildRequires:  pkgconfig
BuildRequires:  python-rpm-macros
BuildRequires:  rust >= 1.58.0
BuildRequires:  zstd
# python-base is not enough, we need the _ssl module
Requires:       python >= 3.7

Transparently proxy any device that can be configured as a WireGuard client!

%autosetup -a2 -p1 -n %{modname}-%{version}

mkdir -p .cargo
cp %{SOURCE3} .cargo/config
rm -fv .cargo/config.toml


%python_expand %fdupes %{buildroot}%{$python_sitearch}


%files %{python_files}
%license LICENSE

openSUSE Build Service is sponsored by