%bcond tests 0 Name: nickel Version: 1.15.1 Release: 1%{?dist} Summary: Programming language that compiles to Bash License: GPL-3.0-or-later URL: https://nickel-lang.org/ Source0: https://github.com/tweag/nickel/archive/refs/tags/%{version}.tar.gz BuildRequires: cargo BuildRequires: rust %description %prep %autosetup -n %{name}-%{version} %build %install cargo install --path cli --root "%{buildroot}%{_prefix}" rm %{buildroot}%{_prefix}/.crates* %check %if %{with tests} cargo test --release %endif %files %license LICENSE %doc README.md %doc doc/manual %doc examples %doc notes %doc rfcs %{_bindir}/nickel %changelog * Sat Jan 03 2026 Jens Petersen - 1.15.1-1 - initial package