add: proton-vpn-local-agent (#9296) (#9300)

This commit is contained in:
Raboneko
2026-01-18 13:50:21 -08:00
committed by GitHub
parent f97b6d7236
commit 8439110e61
3 changed files with 59 additions and 0 deletions
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "proton-vpn-local-agent.spec"
}
}
@@ -0,0 +1,53 @@
%define debug_package %{nil}
%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: 1%?dist
Summary: Proton VPN local agent written in Rust
License: GPL-3.0-only
URL: https://github.com/ProtonVPN/local-agent-rs
Source0: %url/archive/refs/tags/%version.tar.gz
BuildRequires: python3-devel
BuildRequires: cargo-rpm-macros
Packager: Owen Zimmerman <owen@fyralabs.com>
%description
%_desc
%package -n python3-%{pypi_name}
Summary: %{summary}
Provides: %{pypi_name}
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name}
%_desc
%prep
%autosetup -n local-agent-rs-%{version}
pushd %{name}
%{cargo_prep_online}
popd
%build
pushd %{name}
%{cargo_build}
popd
%install
pushd %{name}
install -Dm0644 target/rpm/libpython_proton_vpn_local_agent.so %{buildroot}%{_libdir}/proton/local_agent.so
popd
%files -n python3-%{pypi_name}
%doc README.md CODEOWNERS
%dir %{_libdir}/proton
%{_libdir}/proton/local_agent.so
%changelog
* Sun Jan 18 2026 Owen Zimmerman <owen@fyralabs.com>
- Initial commit
@@ -0,0 +1 @@
rpm.version(gh_tag("ProtonVPN/local-agent-rs"));