From 4bb811200ca1ca574dc1513b57e590a72d10885a Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Sun, 21 May 2023 14:49:33 -0500 Subject: [PATCH] Disable example that requires unshipped file Signed-off-by: Michel Alexandre Salim --- rust-tabled.spec | 5 +++++ tabled-fix-metadata.diff | 14 ++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 tabled-fix-metadata.diff diff --git a/rust-tabled.spec b/rust-tabled.spec index 963f11c..136b9aa 100644 --- a/rust-tabled.spec +++ b/rust-tabled.spec @@ -12,6 +12,9 @@ Summary: Easy to use library for pretty print tables of Rust structs and License: MIT URL: https://crates.io/crates/tabled Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# disable table_width_2 example, requires file from github not in shipped crate +Patch: tabled-fix-metadata.diff BuildRequires: rust-packaging >= 21 @@ -133,6 +136,8 @@ use the "tabled_derive" feature of the "%{crate}" crate. %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 +# requires file from github not in shipped crate +rm examples/table_width_2.rs %cargo_prep %generate_buildrequires diff --git a/tabled-fix-metadata.diff b/tabled-fix-metadata.diff new file mode 100644 index 0000000..01a2e4b --- /dev/null +++ b/tabled-fix-metadata.diff @@ -0,0 +1,14 @@ +--- tabled-0.12.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ tabled-0.12.0/Cargo.toml 2023-05-21T19:42:38.675968+00:00 +@@ -225,11 +225,6 @@ + required-features = ["std"] + + [[example]] +-name = "table_width_2" +-path = "examples/table_width_2.rs" +-required-features = ["std"] +- +-[[example]] + name = "height" + path = "examples/height.rs" + required-features = ["std"]