improve macros, add build instruction to build macro, fix improper mkdir
This commit is contained in:
parent
bbaa7eaae4
commit
4fa445116f
@ -1,20 +1,21 @@
|
||||
%zig_arches x86_64 aarch64 riscv64 %{mips64}
|
||||
|
||||
%_zig_version @@ZIG_VERSION@@
|
||||
%__zig /usr/bin/zig
|
||||
%zig /usr/bin/zig
|
||||
|
||||
%zig_build \
|
||||
%__zig \\\
|
||||
%zig \\\
|
||||
build \\\
|
||||
--verbose \\\
|
||||
--cache-dir zig-cache
|
||||
|
||||
%zig_install \
|
||||
DESTDIR="%{buildroot}" %zig_build \\\
|
||||
install \\\
|
||||
--prefix "%{_prefix}" \\\
|
||||
--prefix-lib-dir "%{_libdir}" \\\
|
||||
--prefix-exe-dir "%{_bindir}" \\\
|
||||
--prefix-include-dir "%{_includedir}" \\\
|
||||
install
|
||||
--prefix-include-dir "%{_includedir}"
|
||||
|
||||
%zig_test \
|
||||
%zig_build \\\
|
||||
|
Loading…
Reference in New Issue
Block a user