# Generated by rust2rpm 18 # DT %global git_date 20240616 %global git_hash 310acab %global git_ver 0.8.1 %global src_name MozWire-%{git_date}-%{git_hash}.tar.xz %global rel 1 # DT %define debug_package %{nil} %global crate mozwire Name: rust-%{crate} Version: %{git_ver}^%{git_date}g%{git_hash} Release: %{rel}%{?dist} Summary: MozillaVPN wireguard configuration manager # Upstream license specification: GPL-3.0-or-later License: GPLv3+ URL: https://github.com/NilsIrl/MozWire Source: %{url}/%{src_name} ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: rust cargo %global _description %{expand: MozillaVPN wireguard configuration manager.} %description %{_description} %package -n %{crate} Summary: %{summary} %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %doc README.md %{_bindir}/mozwire %prep %autosetup -n MozWire -p1 %build cargo build --release %install install -p -D -m755 target/release/mozwire %{buildroot}%{_bindir}/mozwire %changelog * Sat Oct 16 2021 Dale Turner - 0.7.0-1 - Initial package