# Vendor rewrap of the RPM Proton AG publishes in their official Fedora # repository (repo.protonvpn.com/fedora-44-stable) — upstream ships the RPM, # so a rewrap is the sanctioned path. The payload is re-installed verbatim # (rpm2cpio extract) EXCEPT the python trees, which are relocated onto the # python3_sitelib/python3_sitearch macros: the upstream RPMs are built for # Fedora 44's python3.14 and must land in the buildroot python's # site-packages dir on every chroot we build (the .so in api-core is abi3, # the pure-python trees are version-agnostic). Stale upstream __pycache__ # is stripped — brp is off for these (foreign payload) and the dist-info # metadata drives the python(abi) deps from the relocated paths. # Versioned by the custom sweep feed: ProtonVPN/proton-vpn-gtk-app tags, HEAD-probing # the official repo RPM URL zotero-style so a tag whose RPM build has not # landed yet never bumps the spec. %global pv_fc 44 %global pv_rel 1 %global debug_package %{nil} %global _build_id_links none %global __os_install_post %{nil} Name: proton-vpn-gtk-app Version: 4.18.5 Release: 1%{?dist} Summary: Proton VPN GTK4 desktop client License: GPL-3.0-or-later URL: https://github.com/ProtonVPN/proton-vpn-gtk-app BuildArch: noarch #!RemoteAsset Source0: https://repo.protonvpn.com/fedora-%{pv_fc}-stable/%{name}/%{name}-%{version}-%{pv_rel}.fc%{pv_fc}.noarch.rpm BuildRequires: python3-devel BuildRequires: python-srpm-macros Requires: gtk4 Requires: libnotify Requires: librsvg2 Requires: python3-dbus Requires: python3-gobject Requires: python3-packaging Requires: python3-proton-vpn-api-core >= 5.8.1 %description The Proton VPN GTK desktop application (v4 app), talking to the root daemon over D-Bus. Repacked from Proton's official Fedora repository. %prep mkdir -p extract cd extract rpm2cpio %{_sourcedir}/%{name}-%{version}-%{pv_rel}.fc%{pv_fc}.noarch.rpm | cpio -idm --quiet test -d usr/lib/python3.14/site-packages/proton/vpn/app %install %__rm -rf %{buildroot} mkdir -p %{buildroot}%{python3_sitelib} %{buildroot}%{_prefix} %{buildroot}%{_bindir} cp -a extract/usr/lib/python3.14/site-packages/proton %{buildroot}%{python3_sitelib}/ cp -a extract/usr/lib/python3.14/site-packages/proton_vpn_gtk_app-*.dist-info %{buildroot}%{python3_sitelib}/ cp -a extract/usr/bin/. %{buildroot}%{_bindir}/ cp -a extract/usr/share/. %{buildroot}%{_prefix}/share/ find %{buildroot} -name __pycache__ -type d -exec rm -rf {} + 2>/dev/null || : %files %{python3_sitelib}/proton/ %{python3_sitelib}/proton_vpn_gtk_app-*/ %{_bindir}/protonvpn-app %{_datadir}/applications/proton.vpn.app.gtk.desktop %{_datadir}/icons/hicolor/scalable/apps/proton-vpn-logo.svg %changelog * Wed Sep 30 2026 halcyon-autoupdate - 4.18.5-1 - initial package: vendor rewrap of the official repo.protonvpn.com RPM