Accepting request 1147042 from home:avicenzi:protonvpn

Add python-proton-vpn-killswitch-network-manager for Proton VPN

OBS-URL: https://build.opensuse.org/request/show/1147042
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-proton-vpn-killswitch-network-manager?expand=0&rev=1
This commit is contained in:
Matej Cepl 2024-02-16 17:15:10 +00:00 committed by Git OBS Bridge
commit 8d0eaf8e2e
5 changed files with 103 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

3
master.zip Normal file
View File

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

View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Mon Feb 12 12:22:31 UTC 2024 - Alexandre Vicenzi <alexandre.vicenzi@suse.com>
- Initial revision

View File

@ -0,0 +1,72 @@
#
# spec file for package python-proton-vpn-killswitch-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
Name: python-proton-vpn-killswitch-network-manager
Version: 0.2.0
Release: 0
Summary: Proton VPN kill switch interface using NetworkManager
License: GPL-3.0-or-later
Group: Development/Languages/Python
URL: https://github.com/ProtonVPN/python-proton-vpn-killswitch-network-manager
#Source: https://github.com/ProtonVPN/python-proton-vpn-killswitch-network-manager/archive/refs/tags/v%{version}.tar.gz
Source: https://github.com/ProtonVPN/python-proton-vpn-killswitch-network-manager/archive/refs/heads/master.zip
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module gobject}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module proton-vpn-killswitch}
BuildRequires: %{python_module proton-vpn-logger}
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module wheel}
BuildRequires: NetworkManager-devel
BuildRequires: fdupes
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: unzip
Requires: NetworkManager
Requires: python-base >= 3.8
Requires: python-gobject
Requires: python-proton-vpn-killswitch
Requires: python-proton-vpn-logger
BuildArch: noarch
%python_subpackages
%description
This package contains the VPN kill switch interface using NetworkManager for Proton VPN client.
%prep
%autosetup -p1 -n python-proton-vpn-killswitch-network-manager-master
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest tests
%files %{python_files}
%license LICENSE
%doc README.md
%{python_sitelib}/proton
%{python_sitelib}/proton_vpn_killswitch_network_manager-%{version}*-info
%changelog