diff --git a/im-rc-fix-metadata.diff b/im-rc-fix-metadata.diff index 80cd480..6d5b875 100644 --- a/im-rc-fix-metadata.diff +++ b/im-rc-fix-metadata.diff @@ -1,26 +1,25 @@ --- im-rc-15.1.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ im-rc-15.1.0/Cargo.toml 2023-08-22T20:13:03.251008+00:00 -@@ -28,7 +28,7 @@ - "rrb-tree", - ] - categories = ["data-structures"] --license = "MPL-2.0+" -+license = "MPL-2.0" - repository = "https://github.com/bodil/im-rs" - - [package.metadata.docs.rs] -@@ -60,10 +60,6 @@ - - [dependencies.rayon] ++++ im-rc-15.1.0/Cargo.toml 2024-09-14T12:15:58.467147+00:00 +@@ -19,7 +19,6 @@ + description = "Immutable collection datatypes (the fast but not thread safe version)" + homepage = "http://immutable.rs/" + documentation = "http://immutable.rs/" +-readme = "../../README.md" + keywords = [ + "immutable", + "persistent", +@@ -62,10 +61,6 @@ version = "1" --optional = true -- --[dependencies.refpool] --version = "0.4" optional = true +-[dependencies.refpool] +-version = "0.4" +-optional = true +- [dependencies.serde] -@@ -106,10 +102,6 @@ + version = "1" + optional = true +@@ -106,10 +101,6 @@ [features] debug = [] diff --git a/rust-im-rc.spec b/rust-im-rc.spec index 01abfb8..a0fbb30 100644 --- a/rust-im-rc.spec +++ b/rust-im-rc.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 26 # * missing dev-dependencies: metrohash %bcond_with check %global debug_package %{nil} @@ -10,16 +10,15 @@ Version: 15.1.0 Release: %autorelease Summary: Immutable collection datatypes (the fast but not thread safe version) -License: MPL-2.0 +License: MPL-2.0+ URL: https://crates.io/crates/im-rc Source: %{crates_source} # Manually created patch for downstream crate metadata changes -# * fix invalid SPDX identifier in crate license: -# https://github.com/bodil/im-rs/issues/210 # * drop optional "pool" feature with missing "refpool" dependency +# * remove reference to readme file that is not included in published crates Patch: im-rc-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Immutable collection datatypes (the fast but not thread safe version).} @@ -127,7 +126,7 @@ use the "serde" feature of the "%{crate}" crate. %ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..638ad6c --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,10 @@ +[package] +cargo-toml-patch-comments = [ + "drop optional \"pool\" feature with missing \"refpool\" dependency", + "remove reference to readme file that is not included in published crates", +] + +[tests] +run = ["none"] +comments = ["missing dev-dependencies: metrohash"] +