%bcond check 1 # prevent library files from being installed %global cargo_install_lib 0 Name: rpmi-git Version: v1.0.0^20251117.git739956b Release: %autorelease Summary: Simple graphical utility that installs/upgrades/removes .rpm files built with Rust and EGUI. License: MIT URL: https://github.com/arabianq/rpmi Source: https://github.com/arabianq/rpmi/archive/refs/heads/main.tar.gz BuildRequires: rust BuildRequires: cargo %global _description %{expand: Simple graphical utility that installs/upgrades/removes .rpm files built with Rust and EGUI.} %description %{_description} %prep %autosetup -n rpmi-main -p1 %build cargo build --release --locked %install install -Dm755 target/release/rpmi %{buildroot}%{_bindir}/rpmi install -Dm644 assets/rpmi.desktop %{buildroot}%{_datadir}/applications/rpmi.desktop %files %license LICENSE %doc README.md %{_bindir}/rpmi %{_datadir}/applications/rpmi.desktop %changelog %autochangelog