2024-01-05 20:04:37 +01:00
|
|
|
%define gittag %(echo %version | cut -d. -f5)
|
2024-01-05 20:04:33 +01:00
|
|
|
Name: zig
|
2024-01-05 20:04:37 +01:00
|
|
|
Version: 0.10.1.20230525git.230ea41
|
2024-01-05 20:04:33 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: A general-purpose programming language and toolchain for maintaining robust, optimal and reusable software
|
|
|
|
Group: Applications/Development
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://ziglang.org/
|
2024-01-05 20:04:37 +01:00
|
|
|
Source: https://github.com/ziglang/zig.git/master@%{gittag}/zig-%{version}.tar.bz2
|
|
|
|
#Source: https://ziglang.org/download/%{version}/zig-%{version}.tar.xz
|
2024-01-05 20:04:33 +01:00
|
|
|
Patch0: zig-0.10.1-llvm-15.patch
|
|
|
|
Patch1: zig-0.10.1-build-increase-max_output-size.patch
|
|
|
|
License: MIT
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libclang-devel
|
|
|
|
BuildRequires: liblld-devel
|
|
|
|
BuildRequires: libllvm-devel
|
|
|
|
BuildRequires: libstdc++6-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 20:04:37 +01:00
|
|
|
BuildRequires: libclang-devel >= 0:16.0.4-1mamba
|
|
|
|
BuildRequires: liblld-devel >= 16.0.4
|
2024-01-05 20:04:33 +01:00
|
|
|
BuildRequires: cmake
|
|
|
|
|
|
|
|
%description
|
|
|
|
Zig is a general-purpose programming language and toolchain for maintaining robust, optimal and reusable software.
|
|
|
|
|
|
|
|
%debug_package
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
#-D -T
|
|
|
|
#:<< __EOF
|
2024-01-05 20:04:37 +01:00
|
|
|
#%patch 0 -p1
|
|
|
|
#%patch 1 -p1
|
2024-01-05 20:04:33 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-05 20:04:37 +01:00
|
|
|
# FIXME: PKG_CONFIG_PATH as set by rpm script causes the build to fail
|
|
|
|
export PKG_CONFIG_PATH=""
|
2024-01-05 20:04:33 +01:00
|
|
|
%cmake -d build \
|
2024-01-05 20:04:37 +01:00
|
|
|
-DCMAKE_BUILD_TYPE=Debug \
|
|
|
|
-DZIG_SHARED_LLVM=ON
|
2024-01-05 20:04:33 +01:00
|
|
|
|
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-05 20:04:37 +01:00
|
|
|
# FIXME: PKG_CONFIG_PATH as set by rpm script causes the build to fail
|
|
|
|
export PKG_CONFIG_PATH=""
|
2024-01-05 20:04:33 +01:00
|
|
|
%makeinstall -C build
|
|
|
|
|
2024-01-05 20:04:37 +01:00
|
|
|
rm -rf %{buildroot}/usr/doc
|
|
|
|
|
2024-01-05 20:04:33 +01:00
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/zig
|
|
|
|
%dir %{_prefix}/lib/zig
|
|
|
|
%{_prefix}/lib/zig/*
|
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 20:04:37 +01:00
|
|
|
* Thu May 25 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.10.1.20230525git.230ea41-1mamba
|
|
|
|
- update to 0.10.1.20230525git.230ea41
|
|
|
|
|
|
|
|
* Thu May 25 2023 Sdk Build System <sdk@mambasoft.it> 0.10.1-2mamba
|
|
|
|
- rebuilt by autoport with build requirements: libclang-devel>=0:16.0.4-1mamba
|
|
|
|
|
2024-01-05 20:04:33 +01:00
|
|
|
* Sat Mar 18 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.10.1-1mamba
|
|
|
|
- package created using the webbuild interface
|