%global debug_package %{nil} Name: escl-scan Version: 0.1.1 Release: 1%{?dist} Summary: Utility for scanning with eSCL protocol writen in Rust License: GPLv3 URL: https://github.com/ElXreno/escl-scan Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: openssl-devel %description Utility for scanning with eSCL protocol writen in Rust. %prep %autosetup %build pushd %{name}-cli cargo build --release --locked popd %install pushd %{name}-cli cargo install --root=%{buildroot}%{_prefix} --path=. --locked popd rm -f %{buildroot}%{_prefix}/.crates.toml %files %license LICENSE %doc README.md %{_bindir}/%{name}-cli %changelog * Sun Dec 29 2019 ElXreno - 0.1.1-1 - Updated to version 0.1.1 * Thu Dec 26 2019 ElXreno - Initial packaging