From 374d7dd66d4f2abfcd03baa904ca445911e80a5d Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sat, 14 Sep 2024 14:12:26 +0200 Subject: [PATCH] Remove reference to readme file that is not included in published crates --- funty-fix-metadata.diff | 10 ++++++++++ rust-funty.spec | 9 ++++++--- rust2rpm.toml | 5 +++++ 3 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 funty-fix-metadata.diff create mode 100644 rust2rpm.toml diff --git a/funty-fix-metadata.diff b/funty-fix-metadata.diff new file mode 100644 index 0000000..7ee88f1 --- /dev/null +++ b/funty-fix-metadata.diff @@ -0,0 +1,10 @@ +--- funty-2.0.0/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ funty-2.0.0/Cargo.toml 2024-09-14T12:10:16.683388+00:00 +@@ -18,7 +18,6 @@ + include = ["Cargo.toml", "LICENSE.txt", "src/lib.rs"] + description = "Trait generalization over the primitive types" + documentation = "https://docs.rs/funty" +-readme = "README.md" + keywords = ["numerics", "primitives", "traits"] + categories = ["no-std", "rust-patterns"] + license = "MIT" diff --git a/rust-funty.spec b/rust-funty.spec index 279e493..6900a25 100644 --- a/rust-funty.spec +++ b/rust-funty.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} @@ -12,8 +12,11 @@ Summary: Trait generalization over the primitive types License: MIT URL: https://crates.io/crates/funty Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * remove reference to readme file that is not included in published crates +Patch: funty-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Trait generalization over the primitive types.} @@ -58,7 +61,7 @@ use the "std" 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..0034818 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,5 @@ +[package] +cargo-toml-patch-comments = [ + "remove reference to readme file that is not included in published crates", +] +