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_arches x86_64 aarch64 riscv64 %{mips64}
|
||||||
|
|
||||||
%_zig_version @@ZIG_VERSION@@
|
%_zig_version @@ZIG_VERSION@@
|
||||||
%__zig /usr/bin/zig
|
%zig /usr/bin/zig
|
||||||
|
|
||||||
%zig_build \
|
%zig_build \
|
||||||
%__zig \\\
|
%zig \\\
|
||||||
|
build \\\
|
||||||
--verbose \\\
|
--verbose \\\
|
||||||
--cache-dir zig-cache
|
--cache-dir zig-cache
|
||||||
|
|
||||||
%zig_install \
|
%zig_install \
|
||||||
DESTDIR="%{buildroot}" %zig_build \\\
|
DESTDIR="%{buildroot}" %zig_build \\\
|
||||||
|
install \\\
|
||||||
--prefix "%{_prefix}" \\\
|
--prefix "%{_prefix}" \\\
|
||||||
--prefix-lib-dir "%{_libdir}" \\\
|
--prefix-lib-dir "%{_libdir}" \\\
|
||||||
--prefix-exe-dir "%{_bindir}" \\\
|
--prefix-exe-dir "%{_bindir}" \\\
|
||||||
--prefix-include-dir "%{_includedir}" \\\
|
--prefix-include-dir "%{_includedir}"
|
||||||
install
|
|
||||||
|
|
||||||
%zig_test \
|
%zig_test \
|
||||||
%zig_build \\\
|
%zig_build \\\
|
||||||
|
2
zig.spec
2
zig.spec
@ -102,7 +102,7 @@ ln -s lib "%{__cmake_builddir}/"
|
|||||||
%if 35 > 0%{?fedora}
|
%if 35 > 0%{?fedora}
|
||||||
%{__cmake_builddir}/zig build docs -Dversion-string="%{version}"
|
%{__cmake_builddir}/zig build docs -Dversion-string="%{version}"
|
||||||
%endif
|
%endif
|
||||||
mkdir zig-cache
|
mkdir -p zig-cache
|
||||||
touch zig-cache/langref.html
|
touch zig-cache/langref.html
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
Loading…
Reference in New Issue
Block a user