%global debug_package %{nil} %undefine _package_note_file Name: amber-lang Version: 0.6.0~alpha Release: 1%{?dist} Summary: Amber the programming language compiled to Bash %global sourcetag %{lua:print((string.gsub(rpm.expand("%{version}"), "~", "-")))} License: LGPL-3.0-only URL: https://github.com/amber-lang/amber Source0: amber-lang-%{sourcetag}.tar.zst BuildRequires: rust >= 1.95 BuildRequires: cargo >= 1.95 BuildRequires: cmake BuildRequires: gcc BuildRequires: bc Requires: bc %description Programming language that compiles to Bash. It's a high level programming language that makes it easy to create shell scripts. It's particularly well suited for cloud services. %prep %autosetup -p1 -n amber-%{sourcetag} %build CMAKE=cmake3 RUSTFLAGS='-C strip=symbols' cargo build --release %install install -Dm755 target/release/amber %{buildroot}%{_bindir}/amber %files %license LICENSE.md %doc README.md %{_bindir}/amber %changelog * Fri May 01 2026 Shane C. - 0.6.0~alpha-1 - initial release