diff --git a/.gitignore b/.gitignore index 29727a3..6ed6d4f 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /sdd-0.2.0.crate +/sdd-2.1.0.crate diff --git a/rust-sdd.spec b/rust-sdd.spec index e643e3f..1724eef 100644 --- a/rust-sdd.spec +++ b/rust-sdd.spec @@ -1,23 +1,26 @@ # Generated by rust2rpm 26 -# * missing dev-dependencies: loom ^0.7 -%bcond_with check +%bcond_without check %global debug_package %{nil} %global crate sdd Name: rust-sdd -Version: 0.2.0 +Version: 2.1.0 Release: %autorelease -Summary: Scalable lock-free memory reclaimer +Summary: Containers and utilities for concurrent and asynchronous programming License: Apache-2.0 URL: https://crates.io/crates/sdd Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only criterion dev-dependency +# * drop unused, optional dependency for loom perturbation testing +Patch: sdd-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: -Scalable lock-free memory reclaimer.} +Scalable lock-free delayed memory reclaimer.} %description %{_description} diff --git a/rust2rpm.toml b/rust2rpm.toml index 7233db1..064b11d 100644 --- a/rust2rpm.toml +++ b/rust2rpm.toml @@ -1,4 +1,7 @@ -[tests] -run = ["none"] -comments = ["missing dev-dependencies: loom ^0.7"] +[package] +summary = "Containers and utilities for concurrent and asynchronous programming" +cargo-toml-patch-comments = [ + "drop unused, benchmark-only criterion dev-dependency", + "drop unused, optional dependency for loom perturbation testing", +] diff --git a/sdd-fix-metadata.diff b/sdd-fix-metadata.diff new file mode 100644 index 0000000..84ca6c3 --- /dev/null +++ b/sdd-fix-metadata.diff @@ -0,0 +1,19 @@ +--- sdd-2.1.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ sdd-2.1.0/Cargo.toml 2024-08-02T18:44:11.113288+00:00 +@@ -33,16 +33,5 @@ + license = "Apache-2.0" + repository = "https://github.com/wvwwvwwv/scalable-delayed-dealloc/" + +-[[bench]] +-name = "ebr" +-harness = false +- +-[dependencies.loom] +-version = "0.7" +-optional = true +- +-[dev-dependencies.criterion] +-version = "0.5" +- + [dev-dependencies.static_assertions] + version = "1.1" diff --git a/sources b/sources index 1cbc7d3..cb236fc 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (sdd-0.2.0.crate) = 851040ba93361673ffc193aef83b0b467f46d1c1d8df2230fcb8a31fa1b0264db95a7df78f4e61f53a2fa9d77547eac450e711247b1cef9490ebe8d1bdb14d55 +SHA512 (sdd-2.1.0.crate) = 58a86a837d2af2be43a4a4adc03d3de3a43f42d25dd685cb334ab53cbcc40a4f159c9266bb37d95a1676da334d8a58bf6cc2153fb09675b1fc27f25ee5a0b655