2023-11-10 09:52:30 +01:00
|
|
|
#
|
|
|
|
# spec file for package harec
|
|
|
|
#
|
|
|
|
# Copyright (c) 2023 SUSE LLC
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: harec
|
|
|
|
Release: 0
|
2023-12-02 11:25:27 +01:00
|
|
|
Version: 1701262234.ec3193e
|
2023-11-10 09:52:30 +01:00
|
|
|
Summary: Bootstrap compiler for hare
|
2023-11-10 13:24:58 +01:00
|
|
|
Group: Development/Tools/Building
|
2023-11-10 09:52:30 +01:00
|
|
|
URL: https://git.sr.ht/~sircmpwn/harec
|
|
|
|
Source0: %{name}-%{version}.tar.zst
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: qbe
|
|
|
|
BuildRequires: zstd
|
|
|
|
License: GPL-3.0-only
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
|
|
|
HareC is a bootstrap compiler for the Hare programming language. Written in C11 for
|
|
|
|
POSIX-compatible systems.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
mkdir -p build/
|
|
|
|
|
|
|
|
%build
|
2023-11-11 08:35:18 +01:00
|
|
|
|
2023-11-10 09:52:30 +01:00
|
|
|
export CFLAGS="%optflags"
|
2023-11-11 08:35:18 +01:00
|
|
|
|
|
|
|
# Harec does not use autoconf
|
2023-11-10 09:52:30 +01:00
|
|
|
pushd build/
|
|
|
|
../configure
|
2023-11-11 08:35:18 +01:00
|
|
|
make %{?_smp_mflags}
|
2023-11-10 09:52:30 +01:00
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
|
|
|
export CFLAGS="%optflags"
|
|
|
|
pushd build/
|
2023-11-11 08:35:18 +01:00
|
|
|
make %{?_smp_mflags} DESTDIR="%{buildroot}" BINDIR="%{_bindir}" install
|
|
|
|
popd
|
2023-11-10 09:52:30 +01:00
|
|
|
|
|
|
|
%check
|
|
|
|
export CFLAGS="%optflags"
|
|
|
|
cd build
|
|
|
|
../configure
|
2023-11-11 08:35:18 +01:00
|
|
|
make %{?_smp_mflags} check
|
2023-11-10 09:52:30 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%license COPYING
|
|
|
|
%doc README.md
|
|
|
|
|
|
|
|
%changelog
|