fix: proton-vpn-local-agent (#9768) (#9779)

This commit is contained in:
Raboneko
2026-02-10 09:17:39 -08:00
committed by GitHub
parent a7498795c1
commit f415e7b0a7
2 changed files with 8 additions and 4 deletions
@@ -2,4 +2,7 @@
rpm {
spec = "proton-vpn-local-agent.spec"
}
labels {
sccache = 0
}
}
@@ -1,11 +1,12 @@
%define debug_package %{nil}
%define __python /usr/bin/python3
%global pypi_name proton-vpn-local-agent
%global _desc Proton VPN local agent written in Rust.
Name: python-%{pypi_name}
Version: 1.6.0
Release: 2%?dist
Release: 3%?dist
Summary: Proton VPN local agent written in Rust
License: GPL-3.0-only
URL: https://github.com/ProtonVPN/local-agent-rs
@@ -15,7 +16,7 @@ BuildRequires: python3-devel
BuildRequires: cargo-rpm-macros
# Really cursed but there is no pyproject.toml or setup.py in this package to auto-provide this, and proton-vpn needs this
Provides: python3.14dist(proton-vpn-local-agent)
%dnl Provides: python3.14dist(proton-vpn-local-agent)
Packager: Owen Zimmerman <owen@fyralabs.com>
@@ -43,12 +44,12 @@ popd
%install
pushd %{name}
install -Dm0644 target/release/libpython_proton_vpn_local_agent.so %{buildroot}%{_libdir}/proton/local_agent.so
install -Dm0644 target/release/libpython_proton_vpn_local_agent.so %{buildroot}%{python_sitearch}/proton/vpn/local_agent.so
popd
%files -n python3-%{pypi_name}
%doc README.md CODEOWNERS
%{_libdir}/proton/local_agent.so
%{python_sitearch}/proton/vpn/local_agent.so
%changelog
* Sun Jan 18 2026 Owen Zimmerman <owen@fyralabs.com>