62 lines
1.4 KiB
RPMSpec
62 lines
1.4 KiB
RPMSpec
Name: zig
|
|
Version: 0.10.1
|
|
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/
|
|
Source: https://ziglang.org/download/%{version}/zig-%{version}.tar.xz
|
|
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
|
|
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
|
|
%patch 0 -p1
|
|
%patch 1 -p1
|
|
|
|
%build
|
|
#:<< _EOF
|
|
%cmake -d build \
|
|
\
|
|
%ifarch %{ix86}
|
|
-DCMAKE_BUILD_TYPE=None
|
|
%endif
|
|
|
|
%make
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall -C build
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_bindir}/zig
|
|
%dir %{_prefix}/lib/zig
|
|
%{_prefix}/lib/zig/*
|
|
%doc LICENSE
|
|
|
|
%changelog
|
|
* Sat Mar 18 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.10.1-1mamba
|
|
- package created using the webbuild interface
|