From de3dd628c4b4f14acd9010aafea2e4b3da135ea2 Mon Sep 17 00:00:00 2001 From: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> Date: Wed, 11 Feb 2026 11:58:03 -0600 Subject: [PATCH] add: proton-core and make proton-vpn dep on it (#9796) * add: proton-core and make proton-vpn dep on it Signed-off-by: Owen-sz * no Signed-off-by: Owen-sz --------- Signed-off-by: Owen-sz --- anda/apps/proton-vpn/proton-vpn.spec | 3 +- anda/langs/python/proton-core/anda.hcl | 9 ++++ .../langs/python/proton-core/proton-core.spec | 46 +++++++++++++++++++ anda/langs/python/proton-core/update.rhai | 1 + 4 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 anda/langs/python/proton-core/anda.hcl create mode 100644 anda/langs/python/proton-core/proton-core.spec create mode 100644 anda/langs/python/proton-core/update.rhai diff --git a/anda/apps/proton-vpn/proton-vpn.spec b/anda/apps/proton-vpn/proton-vpn.spec index 04b6a41d7e..780d64363f 100644 --- a/anda/apps/proton-vpn/proton-vpn.spec +++ b/anda/apps/proton-vpn/proton-vpn.spec @@ -1,6 +1,6 @@ Name: proton-vpn-gtk-app Version: 4.14.1 -Release: 1%?dist +Release: 2%?dist Summary: Official ProtonVPN Linux app License: GPL-3.0-only URL: https://protonvpn.com/download-linux @@ -27,6 +27,7 @@ Requires: python3-gobject Requires: python3-dbus Requires: python3-packaging Requires: python3-proton-vpn-api-core +Requires: python3-proton-core >= 0.7.0 Requires: librsvg2 Provides: protonvpn diff --git a/anda/langs/python/proton-core/anda.hcl b/anda/langs/python/proton-core/anda.hcl new file mode 100644 index 0000000000..a653ad4946 --- /dev/null +++ b/anda/langs/python/proton-core/anda.hcl @@ -0,0 +1,9 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "proton-core.spec" + } + labels { + subrepo = "extras" + } +} diff --git a/anda/langs/python/proton-core/proton-core.spec b/anda/langs/python/proton-core/proton-core.spec new file mode 100644 index 0000000000..28cf1ab883 --- /dev/null +++ b/anda/langs/python/proton-core/proton-core.spec @@ -0,0 +1,46 @@ +%define unmangled_name proton-core +%define github_repo_name python-proton-core +%global _desc The proton-core component contains core logic used by the other Proton components. + +Name: python-proton-core +Version: 0.7.0 +Release: 1%?dist +Summary: %{unmangled_name} library +License: GPL-3.0-or-later +URL: https://github.com/ProtonVPN/%{github_repo_name} +Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz + +BuildRequires: python3-devel +BuildRequires: python3-pip +BuildRequires: python3-setuptools +BuildArch: noarch + +Packager: Owen Zimmerman + +%description +%_desc + +%package -n python3-%{unmangled_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{unmangled_name}} + +%description -n python3-%{unmangled_name} +%_desc + +%prep +%autosetup + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files proton + +%files -n python3-%{unmangled_name} -f %{pyproject_files} +%doc README.md +%license LICENSE + +%changelog +* Tue Feb 10 2026 Owen Zimmerman +- Initial commit diff --git a/anda/langs/python/proton-core/update.rhai b/anda/langs/python/proton-core/update.rhai new file mode 100644 index 0000000000..867628725e --- /dev/null +++ b/anda/langs/python/proton-core/update.rhai @@ -0,0 +1 @@ +rpm.version(gh_tag("ProtonVPN/python-proton-core"));