forked from pool/python-proton-vpn-network-manager
- Update to 0.12.13: * Forward the rust log to python log * Improve logic for applying fallback DNS * Ensure that Proton DNS IP is used as a fallback when custom DNS is enabled but no IP is provided with the WireGuard protocol * Bump the minimum required version of vpn-api-core module * Fix for old call to this non existant method * Fix Certificate Expired early error in openvpn * Revert introduced workarounds for kill switch with newer versions of netplan (1.1.1-1). Users are now able to use kill switch while having IPv6 disable at grub/kernel level * Added local agent to OpenVPN * Ignore interfaces without a gateway configured * Encrypt openvpn certificate private key * Don't log handled agent errors * Update to new local agent dependency where the rust logger is initialized automatically * Fix certificate expired error handling * Integrate LA port forwarding * Update to use new LA interface (Alexandru Cheltuitor, Josep Llaneras) * Update event context so that it passes a forwarded port * Use a mock port for the moment until local-agent has fully implemented the feature * Do not use privileged local port for wireguard * Drop Ubuntu 20.04 support * Remove DoH * Added semgrep scanning to CI * Change to new custom DNS format * Refactor code so that new changes are taken into consideration * Fix unsupported type annotation in python 3.8.10 * Fix bug where automatic DNS settings is ignored, regardless if custom DNS is passed or not * Validate custom DNS values for IPv4/6 * Generate the changelogs in the CI * Move to a centralised way to update the version of the package * Handle connection details received by local agent - add missing requires - project was reorganized OBS-URL: https://build.opensuse.org/request/show/1265623 OBS-URL: https://build.opensuse.org/package/show/network:vpn/python-proton-vpn-network-manager?expand=0&rev=2
96 lines
4.0 KiB
RPMSpec
96 lines
4.0 KiB
RPMSpec
#
|
|
# spec file for package python-proton-vpn-network-manager
|
|
#
|
|
# 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_python2 1
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-proton-vpn-network-manager
|
|
Version: 0.12.13
|
|
Release: 0
|
|
Summary: Proton VPN library for NetworkManager
|
|
License: GPL-3.0-or-later
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/ProtonVPN/python-proton-vpn-network-manager
|
|
Source: https://github.com/ProtonVPN/python-proton-vpn-network-manager/archive/refs/tags/v%{version}.tar.gz
|
|
# https://github.com/ProtonVPN/proton-vpn-gtk-app/issues/43
|
|
Patch1: keyring.patch
|
|
BuildRequires: %{python_module gobject}
|
|
BuildRequires: %{python_module jinja2}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module packaging}
|
|
BuildRequires: %{python_module proton-core}
|
|
BuildRequires: %{python_module proton-vpn-api-core >= 0.42.3}
|
|
BuildRequires: %{python_module proton-vpn-local-agent >= 1.4.4}
|
|
BuildRequires: %{python_module pycairo}
|
|
BuildRequires: %{python_module pytest-asyncio}
|
|
BuildRequires: %{python_module pytest-cov}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: NetworkManager-devel
|
|
BuildRequires: fdupes
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: python-rpm-macros
|
|
Requires: NetworkManager
|
|
Requires: python-gobject
|
|
Requires: python-jinja2
|
|
Requires: python-packaging
|
|
Requires: python-proton-core
|
|
Requires: python-proton-vpn-api-core >= 0.42.3
|
|
Requires: python-proton-vpn-local-agent >= 1.4.4
|
|
Requires: python-pycairo
|
|
Conflicts: python-proton-vpn-network-manager-openvpn
|
|
Conflicts: python-proton-vpn-network-manager-wireguard
|
|
Conflicts: python-proton-vpn-killswitch-network-manager
|
|
Conflicts: python-proton-vpn-killswitch-network-manager-wireguard
|
|
Conflicts: python-protonvpn-nm-lib
|
|
Obsoletes: python-proton-vpn-network-manager-openvpn < 0.1.1
|
|
Obsoletes: python-proton-vpn-network-manager-wireguard < 0.4.7
|
|
Obsoletes: python-proton-vpn-killswitch-network-manager < 0.6.1
|
|
Obsoletes: python-proton-vpn-killswitch-network-manager-wireguard < 0.2.1
|
|
Provides: python-proton-vpn-network-manager-openvpn = 0.1.1
|
|
Provides: python-proton-vpn-network-manager-wireguard = 0.4.7
|
|
Provides: python-proton-vpn-killswitch-network-manager = 0.6.1
|
|
Provides: python-proton-vpn-killswitch-network-manager-wireguard = 0.2.1
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
This package contains functionality for Proton VPN client to interact with NetworkManager.
|
|
|
|
%prep
|
|
%autosetup -p1 -n python-proton-vpn-network-manager-%{version}
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
# buildroot doesn't provide network manager service, so it is not possible to run killswitch tests
|
|
# ignore tests which are failing -> `Permission denied: '/run/user'`
|
|
%pytest tests --deselect "tests/integration/killswitch/default/test_killswitch_connection.py" --deselect "tests/integration/killswitch/wireguard/test_killswitch_connection.py" --ignore "tests/openvpn/test_openvpn.py" --ignore "tests/openvpn/test_openvpnconfiguration.py" --ignore "tests/unit/core/test_networkmanager.py"
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{python_sitelib}/proton
|
|
%{python_sitelib}/proton_vpn_network_manager-%{version}*-info
|
|
|
|
%changelog
|