|
|
|
@ -141,23 +141,23 @@ which use "zstdmt" feature of "%{crate}" crate.
|
|
|
|
|
rm -rf zstd/
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
%cargo_generate_buildrequires -a
|
|
|
|
|
%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 --
|
|
|
|
|
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 --
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%cargo_install
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
|
|