diff --git a/.gitignore b/.gitignore index ab641f9..6df07a6 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /smol_str-0.2.0.crate /smol_str-0.2.1.crate /smol_str-0.2.2.crate +/smol_str-0.3.2.crate diff --git a/rust-smol_str.spec b/rust-smol_str.spec index 9ac4f9d..5ffc271 100644 --- a/rust-smol_str.spec +++ b/rust-smol_str.spec @@ -1,17 +1,20 @@ -# Generated by rust2rpm 26 -%bcond_without check +# Generated by rust2rpm 27 +%bcond check 1 %global debug_package %{nil} %global crate smol_str Name: rust-smol_str -Version: 0.2.2 +Version: 0.3.2 Release: %autorelease Summary: Small-string optimized string type with O(1) clone License: MIT OR Apache-2.0 URL: https://crates.io/crates/smol_str Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop unused optional support for borsh +Patch: smol_str-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 @@ -32,6 +35,7 @@ use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE-APACHE %license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/README.md %{crate_instdir}/ diff --git a/rust2rpm.toml b/rust2rpm.toml index 975d968..a83ddee 100644 --- a/rust2rpm.toml +++ b/rust2rpm.toml @@ -1,3 +1,8 @@ +[package] +cargo-toml-patch-comments = [ + "drop unused optional support for borsh", +] + [tests] skip = ["check_code_formatting"] skip-exact = true diff --git a/smol_str-fix-metadata.diff b/smol_str-fix-metadata.diff new file mode 100644 index 0000000..23b899f --- /dev/null +++ b/smol_str-fix-metadata.diff @@ -0,0 +1,20 @@ +--- smol_str-0.3.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ smol_str-0.3.2/Cargo.toml 2024-12-02T17:27:50.402886+00:00 +@@ -50,11 +50,6 @@ + version = "1.3" + optional = true + +-[dependencies.borsh] +-version = "1.4.0" +-optional = true +-default-features = false +- + [dependencies.serde] + version = "1.0" + optional = true +@@ -74,5 +69,4 @@ + default = ["std"] + std = [ + "serde?/std", +- "borsh?/std", + ] diff --git a/sources b/sources index 4d40ce5..e769d25 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (smol_str-0.2.2.crate) = 0ae3f9f94cfdf0c8040e77fe31517f8281c5d0c15a2007302034139d9e04b65c629b23d7406cade8118c932b8e9837b37448f05a77b01ca180d477d14a05dd8b +SHA512 (smol_str-0.3.2.crate) = 37c4f37d13f20175fc2d0d437c00c4c47581770ceb9bbb0966398686f8723ce0aee7a3a6bad97f76644f12174a2ceffe2b9c8f13fac05c46a7584585ac88b474