mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
@@ -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"));
|
||||
Reference in New Issue
Block a user