From 76d7349b1211bc5dbdec14b4458f83170d075cec Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sat, 14 Sep 2024 14:46:20 +0200 Subject: [PATCH] Remove reference to readme file that is not included in published crates --- quickcheck_macros-fix-metadata.diff | 10 ++++++++++ rust-quickcheck_macros.spec | 9 ++++++--- rust2rpm.toml | 5 +++++ 3 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 quickcheck_macros-fix-metadata.diff create mode 100644 rust2rpm.toml diff --git a/quickcheck_macros-fix-metadata.diff b/quickcheck_macros-fix-metadata.diff new file mode 100644 index 0000000..5e0bfcc --- /dev/null +++ b/quickcheck_macros-fix-metadata.diff @@ -0,0 +1,10 @@ +--- quickcheck_macros-1.0.0/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ quickcheck_macros-1.0.0/Cargo.toml 2024-09-14T12:44:40.272698+00:00 +@@ -18,7 +18,6 @@ + description = "A macro attribute for quickcheck." + homepage = "https://github.com/BurntSushi/quickcheck" + documentation = "https://docs.rs/quickcheck" +-readme = "../README.md" + keywords = ["testing", "quickcheck", "property", "shrinking", "fuzz"] + license = "Unlicense/MIT" + repository = "https://github.com/BurntSushi/quickcheck" diff --git a/rust-quickcheck_macros.spec b/rust-quickcheck_macros.spec index 32d51b6..19bd084 100644 --- a/rust-quickcheck_macros.spec +++ b/rust-quickcheck_macros.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} @@ -13,8 +13,11 @@ Summary: Macro attribute for quickcheck License: Unlicense OR MIT URL: https://crates.io/crates/quickcheck_macros Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * remove reference to readme file that is not included in published crates +Patch: quickcheck_macros-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A macro attribute for quickcheck.} @@ -49,7 +52,7 @@ use the "default" 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", +] +