replace hardcoded value with macro

a macro was put in place since certain actions like tests and docs fail on rawhide.
There might be a better solution for this but I haven't found one
This commit is contained in:
Jan200101 2021-06-28 20:34:44 +02:00
parent aa3606be7b
commit a45c3225a5
No known key found for this signature in database
GPG Key ID: 5B71B1D78B882E05

View File

@ -99,7 +99,7 @@ help2man --no-discard-stderr "%{__cmake_builddir}/zig" --version-option=version
ln -s lib "%{__cmake_builddir}/"
%if 35 > 0%{?fedora}
%if %{rawhide} > 0%{?fedora}
%{__cmake_builddir}/zig build docs -Dversion-string="%{version}"
%endif
mkdir -p zig-cache
@ -118,7 +118,7 @@ sed -i -e "s|@@ZIG_VERSION@@|%{version}|" %{buildroot}%{_rpmconfigdir}/macros.d
%check
%if 35 > 0%{?fedora}
%if %{rawhide} > 0%{?fedora}
# tests are affected by an LLVM regression
# https://bugs.llvm.org/show_bug.cgi?id=49401
# https://github.com/ziglang/zig/issues/8130