%global upstream_date 2026.06.04 %global release_number 1 # qjsq and extra.Makefile are not in the commit used by the other specs. # Fedora runs %%set_build_flags at the start of %%build, %%check, and # %%install. Leave the compiler flags to the QuickJS Makefile. %undefine _auto_set_build_flags # Do not add debuginfo packages or /usr/lib/.build-id links. %global debug_package %{nil} %global _build_id_links none Name: quickjs-extra Version: %{upstream_date} Release: %{release_number}%{?dist} Summary: WIP License: MIT URL: https://github.com/micl2e2/quickjs Source0: quickjs.tar.gz BuildRequires: gcc BuildRequires: glibc-devel BuildRequires: make %description WIP %prep # The codeload archive's top directory is quickjs-. # Unpack here without naming that directory. %setup -q -c -T tar -xzf %{SOURCE0} --strip-components=1 %build # extra.Makefile builds qjsc, compiles qjsq.js to C, and links qjsq. # qjsc is only a build tool. This package installs qjsq. %make_build -f extra.Makefile PREFIX=%{_prefix} qjsq %install install -D -p -m 0755 qjsq %{buildroot}%{_bindir}/qjsq %check test "$(printf '%s' '{"hello":"world"}' | ./qjsq .hello)" = "world" test "$(printf '%s' '[10,20]' | ./qjsq '[1]')" = "20" %files %{_bindir}/qjsq %changelog * Thu Oct 01 2026 Packager - 2026.06.04-1 - Restart the release history