fix(holyc): hcc --version output and update script (#9790) (#9793)

* fix(holyc): hcc --version output and update script

* cleanup: Remove %check

(cherry picked from commit 4564f51413)

Co-authored-by: Gilver <roachy@fyralabs.com>
This commit is contained in:
Raboneko
2026-02-10 12:30:42 -08:00
committed by GitHub
parent 2eca1971a5
commit bef0d3d8d4
3 changed files with 9 additions and 3 deletions
@@ -2,7 +2,7 @@
Name: holyc
Version: %{ver}~beta
Release: 1%{?dist}
Release: 2%{?dist}
Summary: HolyC compiler and transpiler
License: BSD-2-Clause
URL: https://holyc-lang.com
@@ -19,7 +19,13 @@ HolyC is a fun recreational programming language designed by Terry A. Davis.
Originally implemented in TempleOS as a general purpose programming language and scripting language for all manner of tasks.
%prep
%autosetup -n %{name}-lang-beta-v%{ver}/src
# Currently needed to fetch the commit hash for hcc --version
%git_clone https://github.com/Jamesbarford/holyc-lang.git beta-v%{ver}
%setup -T -D -n holyc-lang/src
# Make packaged versions of HolyC report the correct Git hash
sed -i 's|git rev-parse main|git rev-parse HEAD|g' CMakeLists.txt
# Make the binary correctly report its installed location as /usr/bin instead of /usr
sed -i 's|binary: %s/hcc|binary: %{_bindir}/hcc|g' cli.c
%build
%cmake \
@@ -3,5 +3,5 @@ v.crop(6);
rpm.global("ver", v);
if rpm.changed() {
rpm.release()
rpm.release();
}