mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
@@ -5,7 +5,7 @@
|
||||
|
||||
Name: python-%{pypi_name}
|
||||
Version: 1.6.0
|
||||
Release: 1%?dist
|
||||
Release: 2%?dist
|
||||
Summary: Proton VPN local agent written in Rust
|
||||
License: GPL-3.0-only
|
||||
URL: https://github.com/ProtonVPN/local-agent-rs
|
||||
@@ -14,6 +14,9 @@ Source0: %url/archive/refs/tags/%version.tar.gz
|
||||
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)
|
||||
|
||||
Packager: Owen Zimmerman <owen@fyralabs.com>
|
||||
|
||||
%description
|
||||
@@ -40,12 +43,11 @@ popd
|
||||
|
||||
%install
|
||||
pushd %{name}
|
||||
install -Dm0644 target/rpm/libpython_proton_vpn_local_agent.so %{buildroot}%{_libdir}/proton/local_agent.so
|
||||
install -Dm0644 target/release/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
|
||||
|
||||
Reference in New Issue
Block a user