From 9c0af7db11a1a1b0a3021dddea696e87c86ac9ec56c7961679b652c0aed000d1 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 15 Feb 2024 09:11:05 +0000 Subject: [PATCH] Accepting request 1146749 from home:avicenzi:protonvpn Add python-proton-vpn-killswitch for Proton VPN OBS-URL: https://build.opensuse.org/request/show/1146749 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-proton-vpn-killswitch?expand=0&rev=1 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + master.zip | 3 ++ python-proton-vpn-killswitch.changes | 4 ++ python-proton-vpn-killswitch.spec | 65 ++++++++++++++++++++++++++++ 5 files changed, 96 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 master.zip create mode 100644 python-proton-vpn-killswitch.changes create mode 100644 python-proton-vpn-killswitch.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/master.zip b/master.zip new file mode 100644 index 0000000..b4d455a --- /dev/null +++ b/master.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:80b1151411a618e50ab739de6ee93880c2479f7dc9cbfeb1891d2f0fd14c3a3b +size 28092 diff --git a/python-proton-vpn-killswitch.changes b/python-proton-vpn-killswitch.changes new file mode 100644 index 0000000..23d0b9b --- /dev/null +++ b/python-proton-vpn-killswitch.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Feb 9 09:30:25 UTC 2024 - Alexandre Vicenzi + +- Initial revision diff --git a/python-proton-vpn-killswitch.spec b/python-proton-vpn-killswitch.spec new file mode 100644 index 0000000..f1c47f5 --- /dev/null +++ b/python-proton-vpn-killswitch.spec @@ -0,0 +1,65 @@ +# +# spec file for package python-proton-vpn-killswitch +# +# 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 +Version: 0.2.0 +Release: 0 +Summary: Proton VPN kill switch interface +License: GPL-3.0-or-later +Group: Development/Languages/Python +URL: https://github.com/ProtonVPN/python-proton-vpn-killswitch +Source: https://github.com/ProtonVPN/python-proton-vpn-killswitch/archive/refs/heads/master.zip +BuildRequires: %{python_module base >= 3.8} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module proton-core} +BuildRequires: %{python_module pytest-cov} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: pkgconfig +BuildRequires: python-rpm-macros +BuildRequires: unzip +Requires: python-base >= 3.8 +Requires: python-proton-core +BuildArch: noarch +%python_subpackages + +%description +This package contains the VPN kill switch interface for Proton VPN client. + +%prep +%autosetup -p1 -n python-proton-vpn-killswitch-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-%{version}*-info + +%changelog