summaryrefslogtreecommitdiffstats
path: root/rust/rust-libmimalloc-sys.spec
diff options
context:
space:
mode:
Diffstat (limited to 'rust/rust-libmimalloc-sys.spec')
-rw-r--r--rust/rust-libmimalloc-sys.spec9
1 files changed, 7 insertions, 2 deletions
diff --git a/rust/rust-libmimalloc-sys.spec b/rust/rust-libmimalloc-sys.spec
index 0b0b03b..915b344 100644
--- a/rust/rust-libmimalloc-sys.spec
+++ b/rust/rust-libmimalloc-sys.spec
@@ -1,5 +1,6 @@
# Generated by rust2rpm 21
-%bcond_without check
+# tests not passing against system mimalloc (yet?)
+%bcond_with check
%global debug_package %{nil}
%global crate libmimalloc-sys
@@ -28,6 +29,7 @@ Sys crate wrapping the mimalloc allocator.}
%package devel
Summary: %{summary}
BuildArch: noarch
+Requires: cmake(mimalloc)
%description devel %{_description}
@@ -35,7 +37,7 @@ This package contains library source intended for building other packages which
use the "%{crate}" crate.
%files devel
-%license %{crate_instdir}/c_src/mimalloc/LICENSE
+%license LICENSE
%{crate_instdir}/
%package -n %{name}+default-devel
@@ -136,6 +138,9 @@ use the "secure" feature of the "%{crate}" crate.
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p2
+# remove bundled mimalloc
+mv c_src/mimalloc/LICENSE .
+rm -rf c_src
%cargo_prep
%generate_buildrequires