diff --git a/bumpalo-fix-metadata.diff b/bumpalo-fix-metadata.diff index a9f35e9..648b1d5 100644 --- a/bumpalo-fix-metadata.diff +++ b/bumpalo-fix-metadata.diff @@ -1,6 +1,6 @@ --- bumpalo-3.13.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ bumpalo-3.13.0/Cargo.toml 2023-05-23T13:18:13.197378+00:00 -@@ -40,25 +40,6 @@ ++++ bumpalo-3.13.0/Cargo.toml 2023-07-05T18:07:46.175610+00:00 +@@ -40,24 +40,10 @@ path = "src/lib.rs" bench = false @@ -15,22 +15,13 @@ -harness = false -required-features = ["collections"] - --[dependencies.allocator-api2] --version = "0.2.8" --optional = true --default-features = false + [dependencies.allocator-api2] + version = "0.2.8" + optional = true + default-features = false - -[dev-dependencies.criterion] -version = "0.3.6" -- + [dev-dependencies.quickcheck] version = "1.0.3" - -@@ -66,7 +47,6 @@ - version = "0.8.5" - - [features] --allocator_api = [] - boxed = [] - collections = [] - default = [] diff --git a/rust-bumpalo.spec b/rust-bumpalo.spec index 8311cbf..09afec8 100644 --- a/rust-bumpalo.spec +++ b/rust-bumpalo.spec @@ -16,7 +16,6 @@ Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * drop tests and benchmarks that are not included in published crates # * drop unused, benchmark-only criterion dev-dependency to speed up builds -# * drop nightly-only features for allocator_api support Patch: bumpalo-fix-metadata.diff BuildRequires: rust-packaging >= 21 @@ -54,6 +53,30 @@ use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+allocator-api2-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+allocator-api2-devel %{_description} + +This package contains library source intended for building other packages which +use the "allocator-api2" feature of the "%{crate}" crate. + +%files -n %{name}+allocator-api2-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+allocator_api-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+allocator_api-devel %{_description} + +This package contains library source intended for building other packages which +use the "allocator_api" feature of the "%{crate}" crate. + +%files -n %{name}+allocator_api-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+boxed-devel Summary: %{summary} BuildArch: noarch