%global commit 2caa26e388b1c904d2f12fb09f84df7e761d8331 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: qbe Version: 0 Release: 1.%{shortcommit}%{?dist} Summary: Small embeddable C compiler backend License: MIT URL: https://c9x.me/compile # The source for this package was pulled from upstream's vcs. Use the # following commands to generate the tarball: # COMMIT=%%{commit} # git clone git://c9x.me/qbe.git # git -C qbe checkout $COMMIT # tar -cJvf qbe-$COMMIT.tar.xz --exclude=.git* qbe Source: %{name}-%{commit}.tar.xz BuildRequires: gcc %description QBE aims to be a pure C embeddable backend that provides 70% of the performance of advanced compilers in 10% of the code. Its small size serves both its aspirations of correctness and our ability to understand, fix, and improve it. It also serves its users by providing trivial integration and great flexibility. %prep %autosetup -n %{name} %build %set_build_flags %__make %install %make_install PREFIX=%{_prefix} %check %set_build_flags %__make -k check %files %license LICENSE %doc README %{_bindir}/qbe %changelog * Sat Apr 30 2022 Link Dupont - Initial package