Do not use %{_bindir}

Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
epel9
Igor Raits 5 years ago
parent 2ac2563308
commit a0fdfe888d
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

@ -144,10 +144,10 @@ rm -rf zstd/
%cargo_generate_buildrequires -a
echo "pkgconfig(libzstd)"
echo "bindgen"
echo "%{_bindir}/llvm-config-%{__isa_bits}"
echo "/usr/bin/llvm-config-%{__isa_bits}"
%build
export LLVM_CONFIG_PATH=%{_bindir}/llvm-config-%{__isa_bits}
export LLVM_CONFIG_PATH=/usr/bin/llvm-config-%{__isa_bits}
%cargo_build -a
bindgen %{_includedir}/zstd.h --ctypes-prefix ::libc --blacklist-type max_align_t --rustified-enum '.*' --use-core -o src/bindings.rs --
bindgen %{_includedir}/zstd.h --blacklist-type max_align_t --rustified-enum '.*' --use-core -o src/bindings_std.rs --
@ -157,7 +157,7 @@ bindgen %{_includedir}/zstd.h --blacklist-type max_align_t --rustified-enum '.*'
%if %{with check}
%check
export LLVM_CONFIG_PATH=%{_bindir}/llvm-config-%{__isa_bits}
export LLVM_CONFIG_PATH=/usr/bin/llvm-config-%{__isa_bits}
%cargo_test -a
%endif

Loading…
Cancel
Save