diff --git a/.gitignore b/.gitignore index 175642a..1a3a04c 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /libmimalloc-sys-0.1.38.crate /libmimalloc-sys-0.1.39.crate /libmimalloc-sys-0.1.42.crate +/libmimalloc-sys-0.1.44.crate diff --git a/get-bundled-mimalloc-ver.sh b/get-bundled-mimalloc-ver.sh index d9ba3f5..ba2b568 100755 --- a/get-bundled-mimalloc-ver.sh +++ b/get-bundled-mimalloc-ver.sh @@ -1,2 +1,4 @@ #!/bin/sh -grep "define MI_MALLOC_VERSION" libmimalloc-sys-*/c_src/mimalloc/include/mimalloc.h | cut -d' ' -f3 | fold -w1 | paste -sd. +for v in 2 3; do + grep "define MI_MALLOC_VERSION" libmimalloc-sys-*/c_src/mimalloc/v$v/include/mimalloc.h | cut -d' ' -f3 | fold -w1 | paste -sd. +done diff --git a/rust-libmimalloc-sys.spec b/rust-libmimalloc-sys.spec index 165063e..82cc4f9 100644 --- a/rust-libmimalloc-sys.spec +++ b/rust-libmimalloc-sys.spec @@ -5,7 +5,7 @@ %global crate libmimalloc-sys Name: rust-libmimalloc-sys -Version: 0.1.42 +Version: 0.1.44 Release: %autorelease Summary: Sys crate wrapping the mimalloc allocator @@ -19,7 +19,8 @@ BuildRequires: cargo-rpm-macros >= 24 # or ask mimalloc dev to switch to mimalloc-sys # https://github.com/purpleprotocol/mimalloc_rust/issues/73 # use get-bundled-mimalloc-ver.sh after unpacking the crate -Provides: bundled(mimalloc) = 2.2.3 +Provides: bundled(mimalloc) = 2.2.4 +Provides: bundled(mimalloc) = 3.1.5 %global _description %{expand: Sys crate wrapping the mimalloc allocator.} @@ -37,7 +38,8 @@ use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE.txt -%license %{crate_instdir}/c_src/mimalloc/LICENSE +%license %{crate_instdir}/c_src/mimalloc/v2/LICENSE +%license %{crate_instdir}/c_src/mimalloc/v3/LICENSE %{crate_instdir}/ %package -n %{name}+default-devel @@ -160,6 +162,18 @@ use the "secure" feature of the "%{crate}" crate. %files -n %{name}+secure-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+v3-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+v3-devel %{_description} + +This package contains library source intended for building other packages which +use the "v3" feature of the "%{crate}" crate. + +%files -n %{name}+v3-devel +%ghost %{crate_instdir}/Cargo.toml + %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep diff --git a/series b/series deleted file mode 100644 index 24ea452..0000000 --- a/series +++ /dev/null @@ -1 +0,0 @@ -libmimalloc-sys-fix-usable-size-gating.diff diff --git a/sources b/sources index 57535ff..c39a392 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libmimalloc-sys-0.1.42.crate) = 0daf3ef819820d7d0ba7d189038ad33ce7fbec370edb5f2d07b47569d359f0364e8b43639743e0a800ca41bf432f043ca71bc9dbf900705732b856e147ec6d85 +SHA512 (libmimalloc-sys-0.1.44.crate) = 18de89a1084ed2da37f9ea6357289e40fe95d86e8de2ee4567bba5453c2f622a116473e2baffeb086cdf814a4b7b12f6e05563992b0b88cf939abcc5a2584fc2