%global commit 174aef484c0b0067f0a131dc52ee05af1a0e5027 %global shortcommit %(c=%{commit}; echo ${c:0:8}) %global date 20230610 Summary: Hare bootstrap compiler Name: harec License: GPL-3.0-only Version: 0^%{date}git%{shortcommit} Release: 1%{?dist} URL: https://git.sr.ht/~sircmpwn/harec Source0: %{url}/archive/%{shortcommit}.tar.gz BuildRequires: make BuildRequires: gcc BuildRequires: qbe # Due to qbe dependency ExclusiveArch: x86_64 aarch64 %description This is a Hare compiler written in C11 for POSIX-compatible systems. It is intended as a bootstrap compiler and using the Hare standard library is recommended for production use. %prep %autosetup -n %{name}-%{shortcommit} %build # Note: we do not use the configure macro since it set some flags # which are not supported by upstream's script. ./configure \ --prefix=%{_prefix} \ --bindir=%{_bindir} \ --sysconfdir=%{_sysconfdir} \ --libdir=%{_libdir} \ --mandir=%{_mandir} %make_build %install %make_install %check make check %files %license COPYING %doc README.md %doc docs/declaration_solver.txt %doc docs/env.txt %doc docs/runtime.txt %{_bindir}/harec %changelog * Sat Jun 10 2023 Timothée Floure - 0^20230610git174aef48-1 - Upstream rebase, early June 2023 * Sat Apr 15 2023 Dridi Boukelmoune - 0^20230316gitdd50ca77-1 - Updated to March 2023 * Thu Jan 19 2023 Fedora Release Engineering - 0^20221126gita1aa5039-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Dec 22 2022 Benson Muite - 0^20221126gita1aa5039-3 - Move configure to build section * Mon Dec 19 2022 Benson Muite - 0^20221126gita1aa5039-2 - Update build flags and versioning based on review * Fri Dec 16 2022 Benson Muite - 0^20221126gita1aa5039-1 - Initial packaging