From de8f9cb5db94bf7d136eecf4530096377ddc8004 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 31 Aug 2023 21:48:39 +0200 Subject: [PATCH] Update to version 0.9.1; Fixes RHBZ#2164389 --- .gitignore | 1 + README.md | 3 --- rust-rxml.spec | 11 +++++------ rxml-fix-metadata.diff | 32 +++++++++++++++++++------------- sources | 2 +- 5 files changed, 26 insertions(+), 23 deletions(-) delete mode 100644 README.md diff --git a/.gitignore b/.gitignore index 147d690..b48f3d3 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /rxml-0.8.2.crate +/rxml-0.9.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index 509b73f..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-rxml - -The rust-rxml package diff --git a/rust-rxml.spec b/rust-rxml.spec index 4e18b5a..7ad503b 100644 --- a/rust-rxml.spec +++ b/rust-rxml.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 23 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate rxml Name: rust-rxml -Version: 0.8.2 +Version: 0.9.1 Release: %autorelease Summary: Minimalistic, restricted XML 1.0 parser which does not include dangerous XML features @@ -13,15 +13,14 @@ License: MIT URL: https://crates.io/crates/rxml Source: %{crates_source} # Manually created patch for downstream crate metadata changes -# - disable criterion -# - bump smartstring dependency to 1.0 +# * drop unused, benchmark-only criterion dev-dependency to speed up builds Patch: rxml-fix-metadata.diff BuildRequires: rust-packaging >= 21 %global _description %{expand: -Minimalistic, restricted XML 1.0 parser which does not include dangerous XML -features.} +Minimalistic, restricted XML 1.0 parser which does not include dangerous +XML features.} %description %{_description} diff --git a/rxml-fix-metadata.diff b/rxml-fix-metadata.diff index 7188883..f0b7547 100644 --- a/rxml-fix-metadata.diff +++ b/rxml-fix-metadata.diff @@ -1,22 +1,28 @@ ---- rxml-0.8.2/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ rxml-0.8.2/Cargo.toml 2022-12-20T20:32:31.897792+00:00 -@@ -56,7 +56,7 @@ - version = "^0.8.0" +--- rxml-0.9.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ rxml-0.9.1/Cargo.toml 2023-08-31T19:40:04.618218+00:00 +@@ -29,14 +29,6 @@ + [package.metadata.docs.rs] + all-features = true - [dependencies.smartstring] --version = "^0.2" -+version = "^1.0" - - [dependencies.tokio] +-[[bench]] +-name = "parse" +-harness = false +- +-[[bench]] +-name = "q" +-harness = false +- + [dependencies.bytes] version = "^1" -@@ -66,10 +66,6 @@ - [dependencies.weak-table] + +@@ -67,10 +59,6 @@ version = "^0.3" optional = true -- + -[dev-dependencies.criterion] -version = "^0.3" -features = ["html_reports"] - +- [dev-dependencies.tokio] version = "^1" + features = [ diff --git a/sources b/sources index c993a65..d9f8d40 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (rxml-0.8.2.crate) = 43679b7af2aa022a6d941ab018a950dfc39e22d790d8946d636be03ecb2a3401a09eceeb76c4eb7aad4f7da4e8c0b8dc4a4ada8fa11bf53befd9b17ba947c64c +SHA512 (rxml-0.9.1.crate) = a66e8afde632ce6c5d5ec952074b36dd65543129d2a4041ca49c7666bc2873bdd649073f448a988f5dbb18de1fc5947051896c2b58f5c48c25422d2ec98d4417