From 42ac50a8dcc50be729a28ac7bda375bf57b47b61 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 13 Sep 2024 22:56:15 +0200 Subject: [PATCH] Remove reference to readme file that is not included in published crates --- codespan-reporting-fix-metadata.diff | 10 ++++++++++ rust-codespan-reporting.spec | 9 ++++++--- rust2rpm.toml | 9 +++++++++ 3 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 codespan-reporting-fix-metadata.diff create mode 100644 rust2rpm.toml diff --git a/codespan-reporting-fix-metadata.diff b/codespan-reporting-fix-metadata.diff new file mode 100644 index 0000000..99429fc --- /dev/null +++ b/codespan-reporting-fix-metadata.diff @@ -0,0 +1,10 @@ +--- codespan-reporting-0.11.1/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ codespan-reporting-0.11.1/Cargo.toml 2024-09-13T20:55:15.668017+00:00 +@@ -19,7 +19,6 @@ + description = "Beautiful diagnostic reporting for text-based programming languages" + homepage = "https://github.com/brendanzab/codespan" + documentation = "https://docs.rs/codespan-reporting" +-readme = "../README.md" + license = "Apache-2.0" + repository = "https://github.com/brendanzab/codespan" + [dependencies.serde] diff --git a/rust-codespan-reporting.spec b/rust-codespan-reporting.spec index 6b3e4ad..f30f897 100644 --- a/rust-codespan-reporting.spec +++ b/rust-codespan-reporting.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 26 # * outdated dev-dependencies: rustyline %bcond_with check %global debug_package %{nil} @@ -15,8 +15,11 @@ URL: https://crates.io/crates/codespan-reporting Source0: %{crates_source} # https://github.com/brendanzab/codespan/pull/355 Source1: https://github.com/brendanzab/codespan/raw/fd389a1/LICENSE +# Manually created patch for downstream crate metadata changes +# * remove reference to readme file that is not included in published crates +Patch: codespan-reporting-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Beautiful diagnostic reporting for text-based programming languages.} @@ -86,7 +89,7 @@ use the "serialization" 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 cp -pav %{SOURCE1} . diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..9f4cf32 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,9 @@ +[package] +cargo-toml-patch-comments = [ + "remove reference to readme file that is not included in published crates", +] + +[tests] +run = ["none"] +comments = ["outdated dev-dependencies: rustyline"] +