* Print total number of tests run to get a better view of how much is broken. OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/qbe?expand=0&rev=12
54 lines
1.5 KiB
RPMSpec
54 lines
1.5 KiB
RPMSpec
#
|
|
# spec file for package qbe
|
|
#
|
|
# Copyright (c) 2024 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: qbe
|
|
Version: 1.2
|
|
Release: 0
|
|
Summary: Small embeddable C compiler backend
|
|
Group: Development/Tools/Building
|
|
URL: https://c9x.me/compile
|
|
Source0: https://c9x.me/compile/release/qbe-%{version}.tar.xz
|
|
BuildRequires: zstd
|
|
License: MIT
|
|
|
|
%description
|
|
QBE is a compiler backend that aims to provide 70% of the
|
|
performance of industrial optimizing compilers in 10% of the code.
|
|
QBE fosters language innovation by offering a compact user-friendly
|
|
and performant backend.
|
|
|
|
The size limit constrains QBE to focus on the essential and
|
|
prevents embarking on a never-ending path of diminishing returns.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
%build
|
|
export CC="cc"
|
|
%make_build CFLAGS="%optflags -std=c99 -fPIE"
|
|
|
|
%install
|
|
%make_install PREFIX="%_prefix"
|
|
|
|
%files
|
|
%{_bindir}/%{name}
|
|
%license LICENSE
|
|
%doc README doc
|
|
|
|
%changelog
|