Name: pbcli Version: 2.2.1 Release: 1%{?dist} Summary: pbcli - A command-line tool built with Rust Group: Development/Tools License: MIT URL: https://github.com/Mydayyy/pbcli BuildRequires: cargo BuildRequires: rust BuildRequires: git BuildRequires: openssl-devel Requires: libc %global debug_package %{nil} %description pbcli is a command-line interface tool built using Rust, designed for specific command-line tasks. %prep # Clone the repo instead of using a source tarball git clone %{url} %build cd pbcli cargo build --release %install # Assuming the binary is in the target/release directory after building install -Dm755 %{_builddir}/%{name}/target/release/pbcli %{buildroot}%{_bindir}/pbcli strip %{buildroot}%{_bindir}/pbcli %files %{_bindir}/pbcli %changelog * Tue Feb 28 2024 Matthew Schwartzz - 2.2.1-1 - Initial package