From 5ade6cebcfbc8a1eaf0712deb2fbecc843e3f40d Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 7 Aug 2023 16:29:15 +0200 Subject: [PATCH] Regenerate with rust2rpm v24 --- rust-sharded-slab.spec | 15 +++++++-------- sharded-slab-fix-metadata-auto.diff | 12 ++++++++++++ sharded-slab-fix-metadata.diff | 13 ++----------- 3 files changed, 21 insertions(+), 19 deletions(-) create mode 100644 sharded-slab-fix-metadata-auto.diff diff --git a/rust-sharded-slab.spec b/rust-sharded-slab.spec index b45fde5..f497b59 100644 --- a/rust-sharded-slab.spec +++ b/rust-sharded-slab.spec @@ -1,29 +1,28 @@ -# Generated by rust2rpm 21 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate sharded-slab -Name: rust-%{crate} +Name: rust-sharded-slab Version: 0.1.4 Release: %autorelease Summary: Lock-free concurrent slab -# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/sharded-slab Source: %{crates_source} -# Initial patched metadata +# Automatically generated patch to strip foreign dependencies +Patch: sharded-slab-fix-metadata-auto.diff +# Manually created patch for downstream crate metadata changes # * drop unused, benchmark-only criterion dev-dependency to speed up builds # * drop unused loom dev-dependency -Patch0: sharded-slab-fix-metadata.diff - -ExclusiveArch: %{rust_arches} +Patch: sharded-slab-fix-metadata.diff BuildRequires: rust-packaging >= 21 %global _description %{expand: -Lock-free concurrent slab.} +A lock-free concurrent slab.} %description %{_description} diff --git a/sharded-slab-fix-metadata-auto.diff b/sharded-slab-fix-metadata-auto.diff new file mode 100644 index 0000000..1f55490 --- /dev/null +++ b/sharded-slab-fix-metadata-auto.diff @@ -0,0 +1,12 @@ +--- sharded-slab-0.1.4/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ sharded-slab-0.1.4/Cargo.toml 2023-08-07T14:27:07.983771+00:00 +@@ -43,9 +43,5 @@ + + [dev-dependencies.slab] + version = "0.4.2" +-[target."cfg(loom)".dependencies.loom] +-version = "0.5" +-features = ["checkpoint"] +-optional = true + [badges.maintenance] + status = "experimental" diff --git a/sharded-slab-fix-metadata.diff b/sharded-slab-fix-metadata.diff index b6545ed..7c4ae69 100644 --- a/sharded-slab-fix-metadata.diff +++ b/sharded-slab-fix-metadata.diff @@ -1,6 +1,6 @@ --- sharded-slab-0.1.4/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ sharded-slab-0.1.4/Cargo.toml 2022-05-04T11:25:08.424636+00:00 -@@ -31,21 +31,11 @@ ++++ sharded-slab-0.1.4/Cargo.toml 2023-08-07T14:27:25.637841+00:00 +@@ -31,12 +31,6 @@ harness = false [dependencies.lazy_static] version = "1" @@ -13,12 +13,3 @@ [dev-dependencies.proptest] version = "1" - - [dev-dependencies.slab] - version = "0.4.2" --[target."cfg(loom)".dependencies.loom] --version = "0.5" --features = ["checkpoint"] --optional = true - [badges.maintenance] - status = "experimental"