improve macros, add build instruction to build macro, fix improper mkdir

This commit is contained in:
Jan200101 2021-06-24 12:17:24 +02:00
parent bbaa7eaae4
commit 4fa445116f
No known key found for this signature in database
GPG Key ID: 5B71B1D78B882E05
2 changed files with 6 additions and 5 deletions

View File

@ -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 \\\

View File

@ -102,7 +102,7 @@ ln -s lib "%{__cmake_builddir}/"
%if 35 > 0%{?fedora}
%{__cmake_builddir}/zig build docs -Dversion-string="%{version}"
%endif
mkdir zig-cache
mkdir -p zig-cache
touch zig-cache/langref.html
%install