%global crate hush %global debug_package %{nil} Name: hush Version: 0.1.4 Release: 1%{?dist} Summary: Modern shell License: MIT URL: https://hush-shell.github.io/ Source: %{crates_source} BuildRequires: cargo BuildRequires: rust-packaging %description Hush is a unix shell scripting language inspired by Lua. %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %build %install cargo install %{name} --root %{buildroot}%{_prefix} strip %{buildroot}%{_bindir}/hush rm %{buildroot}%{_prefix}/.crates* %check %{buildroot}%{_bindir}/hush --version | grep %{version} %files %license LICENSE %doc examples readme.org %{_bindir}/hush %changelog * Wed Jan 24 2024 Jens Petersen - 0.1.4-1 - initial copr package