From 7f61aa3caf8ef508fa52b9da16b8d89866d49d19 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sun, 29 Sep 2024 18:17:21 +0200 Subject: [PATCH] Drop unused, benchmark-only bencher dev-dependency --- README.md | 3 --- html-escape-fix-metadata.diff | 19 +++++++++++++++++++ rust-html-escape.spec | 13 ++++++++----- rust2rpm.toml | 6 ++++++ 4 files changed, 33 insertions(+), 8 deletions(-) delete mode 100644 README.md create mode 100644 html-escape-fix-metadata.diff create mode 100644 rust2rpm.toml diff --git a/README.md b/README.md deleted file mode 100644 index a9ab1f4..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-html-escape - -The rust-html-escape package diff --git a/html-escape-fix-metadata.diff b/html-escape-fix-metadata.diff new file mode 100644 index 0000000..ca696d8 --- /dev/null +++ b/html-escape-fix-metadata.diff @@ -0,0 +1,19 @@ +--- html-escape-0.2.13/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ html-escape-0.2.13/Cargo.toml 2024-09-29T16:17:06.602379+00:00 +@@ -38,16 +38,8 @@ + license = "MIT" + repository = "https://github.com/magiclen/html-escape" + +-[[bench]] +-name = "encode" +-harness = false +-required-features = ["std"] +- + [dependencies.utf8-width] + version = "0.1" +- +-[dev-dependencies.bencher] +-version = "0.1.5" + + [features] + default = ["std"] diff --git a/rust-html-escape.spec b/rust-html-escape.spec index 66723b5..efcb709 100644 --- a/rust-html-escape.spec +++ b/rust-html-escape.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 23 +# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} @@ -12,12 +12,15 @@ Summary: Library for escaping special characters and unescaping HTML enti License: MIT URL: https://crates.io/crates/html-escape Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only bencher dev-dependency +Patch: html-escape-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: -For encoding/escaping special characters in HTML and decoding/unescaping HTML -entities as well.} +This library is for encoding/escaping special characters in HTML and +decoding/unescaping HTML entities as well.} %description %{_description} @@ -60,7 +63,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..3a997cf --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,6 @@ +[package] +summary = "Library for escaping special characters and unescaping HTML entities in HTML" +cargo-toml-patch-comments = [ + "drop unused, benchmark-only bencher dev-dependency", +] +