Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c53d62c326 |
||
|
|
6387123590 | ||
|
|
c8b93b1d48 |
||
|
|
5ad9cc62a0 |
5 changed files with 27 additions and 8 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -4,3 +4,5 @@
|
||||||
/libmimalloc-sys-0.1.35.crate
|
/libmimalloc-sys-0.1.35.crate
|
||||||
/libmimalloc-sys-0.1.38.crate
|
/libmimalloc-sys-0.1.38.crate
|
||||||
/libmimalloc-sys-0.1.39.crate
|
/libmimalloc-sys-0.1.39.crate
|
||||||
|
/libmimalloc-sys-0.1.42.crate
|
||||||
|
/libmimalloc-sys-0.1.44.crate
|
||||||
|
|
|
||||||
4
get-bundled-mimalloc-ver.sh
Executable file
4
get-bundled-mimalloc-ver.sh
Executable file
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
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
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
# Generated by rust2rpm 26
|
# Generated by rust2rpm 27
|
||||||
%bcond_without check
|
%bcond check 1
|
||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
|
|
||||||
%global crate libmimalloc-sys
|
%global crate libmimalloc-sys
|
||||||
|
|
||||||
Name: rust-libmimalloc-sys
|
Name: rust-libmimalloc-sys
|
||||||
Version: 0.1.39
|
Version: 0.1.44
|
||||||
Release: %autorelease
|
Release: %autorelease
|
||||||
Summary: Sys crate wrapping the mimalloc allocator
|
Summary: Sys crate wrapping the mimalloc allocator
|
||||||
|
|
||||||
|
|
@ -18,8 +18,9 @@ BuildRequires: cargo-rpm-macros >= 24
|
||||||
# TODO: get this to build against system mimalloc
|
# TODO: get this to build against system mimalloc
|
||||||
# or ask mimalloc dev to switch to mimalloc-sys
|
# or ask mimalloc dev to switch to mimalloc-sys
|
||||||
# https://github.com/purpleprotocol/mimalloc_rust/issues/73
|
# https://github.com/purpleprotocol/mimalloc_rust/issues/73
|
||||||
# see MI_MALLOC_VERSION in mimalloc/include/mimalloc.h
|
# use get-bundled-mimalloc-ver.sh after unpacking the crate
|
||||||
Provides: bundled(mimalloc) = 2.1.7
|
Provides: bundled(mimalloc) = 2.2.4
|
||||||
|
Provides: bundled(mimalloc) = 3.1.5
|
||||||
|
|
||||||
%global _description %{expand:
|
%global _description %{expand:
|
||||||
Sys crate wrapping the mimalloc allocator.}
|
Sys crate wrapping the mimalloc allocator.}
|
||||||
|
|
@ -37,7 +38,8 @@ use the "%{crate}" crate.
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%license %{crate_instdir}/LICENSE.txt
|
%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}/
|
%{crate_instdir}/
|
||||||
|
|
||||||
%package -n %{name}+default-devel
|
%package -n %{name}+default-devel
|
||||||
|
|
@ -160,6 +162,18 @@ use the "secure" feature of the "%{crate}" crate.
|
||||||
%files -n %{name}+secure-devel
|
%files -n %{name}+secure-devel
|
||||||
%ghost %{crate_instdir}/Cargo.toml
|
%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
|
%prep
|
||||||
%autosetup -n %{crate}-%{version} -p1
|
%autosetup -n %{crate}-%{version} -p1
|
||||||
%cargo_prep
|
%cargo_prep
|
||||||
|
|
|
||||||
1
series
1
series
|
|
@ -1 +0,0 @@
|
||||||
libmimalloc-sys-fix-usable-size-gating.diff
|
|
||||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
||||||
SHA512 (libmimalloc-sys-0.1.39.crate) = db578da8722b82eafac3b587b2db24cbf95fbd85a25b7ce30286deb9eda6820b5d452ece7c3126a2d8c96400941dc3946b4cb2f46172241861405aa09a3a2451
|
SHA512 (libmimalloc-sys-0.1.44.crate) = 18de89a1084ed2da37f9ea6357289e40fe95d86e8de2ee4567bba5453c2f622a116473e2baffeb086cdf814a4b7b12f6e05563992b0b88cf939abcc5a2584fc2
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue