From a1ddbb6049d8c84ee7292bcde3206320ce464ee0 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 29 Nov 2022 22:13:28 +0100 Subject: [PATCH] Update to version 0.25.0 --- .gitignore | 1 + quick-xml-fix-metadata.diff | 25 ++++++++++++++------ rust-quick-xml.spec | 46 ++++++++++++++++++++++++++++++++----- sources | 2 +- 4 files changed, 60 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index 94a5efe..e667834 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /quick-xml-0.20.0.crate /quick-xml-0.22.0.crate /quick-xml-0.23.0.crate +/quick-xml-0.25.0.crate diff --git a/quick-xml-fix-metadata.diff b/quick-xml-fix-metadata.diff index 7819737..1ba3b0c 100644 --- a/quick-xml-fix-metadata.diff +++ b/quick-xml-fix-metadata.diff @@ -1,12 +1,23 @@ ---- quick-xml-0.23.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ quick-xml-0.23.0/Cargo.toml 2022-07-28T18:39:06.943614+00:00 -@@ -65,9 +65,6 @@ - version = "1.0" - optional = true +--- quick-xml-0.25.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ quick-xml-0.25.0/Cargo.toml 2022-11-29T15:49:36.702883+00:00 +@@ -78,10 +78,6 @@ + name = "macrobenches" + harness = false +-[dependencies.document-features] +-version = "0.2" +-optional = true +- + [dependencies.encoding_rs] + version = "0.8" + optional = true +@@ -98,9 +94,6 @@ + features = ["io-util"] + optional = true + default-features = false +- -[dev-dependencies.criterion] -version = "0.3" -- + [dev-dependencies.pretty_assertions] version = "1.2" - diff --git a/rust-quick-xml.spec b/rust-quick-xml.spec index 8f9ff72..27d781b 100644 --- a/rust-quick-xml.spec +++ b/rust-quick-xml.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 22 +# Generated by rust2rpm 23 %bcond_without check %global debug_package %{nil} %global crate quick-xml Name: rust-quick-xml -Version: 0.23.0 +Version: 0.25.0 Release: %autorelease Summary: High performance xml reader and writer @@ -14,10 +14,9 @@ URL: https://crates.io/crates/quick-xml Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * drop unused, benchmark-only criterion dev-dependency to speed up builds +# * drop unused, optional document-features dependency Patch: quick-xml-fix-metadata.diff -ExclusiveArch: %{rust_arches} - BuildRequires: rust-packaging >= 21 %global _description %{expand: @@ -52,6 +51,18 @@ use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+async-tokio-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+async-tokio-devel %{_description} + +This package contains library source intended for building other packages which +use the "async-tokio" feature of the "%{crate}" crate. + +%files -n %{name}+async-tokio-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+encoding-devel Summary: %{summary} BuildArch: noarch @@ -88,6 +99,18 @@ use the "escape-html" feature of the "%{crate}" crate. %files -n %{name}+escape-html-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+overlapped-lists-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+overlapped-lists-devel %{_description} + +This package contains library source intended for building other packages which +use the "overlapped-lists" feature of the "%{crate}" crate. + +%files -n %{name}+overlapped-lists-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+serde-devel Summary: %{summary} BuildArch: noarch @@ -112,6 +135,18 @@ use the "serialize" feature of the "%{crate}" crate. %files -n %{name}+serialize-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+tokio-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+tokio-devel %{_description} + +This package contains library source intended for building other packages which +use the "tokio" feature of the "%{crate}" crate. + +%files -n %{name}+tokio-devel +%ghost %{crate_instdir}/Cargo.toml + %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep @@ -127,8 +162,7 @@ use the "serialize" feature of the "%{crate}" crate. %if %{with check} %check -# * skip a failing test: https://github.com/tafia/quick-xml/issues/443 -%cargo_test -- -- --skip test_writer_indent_cdata +%cargo_test %endif %changelog diff --git a/sources b/sources index 7b0d878..f6c4ccf 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (quick-xml-0.23.0.crate) = 9f2cea83e81e7f5de8a5ccd883c9d83cebf9169ffeba5a7355aca9925c7d2bb2216f0803203b91709dea292f89111bfe1e9ae6d34e84741473df5b00a3b21340 +SHA512 (quick-xml-0.25.0.crate) = e887baba28d68aa6cff93221e3641d1a86ad2a4c8402037b32485fa27b27e2911e61eb9ffa72ed8d2b6b0aa3d1bb9fa1f6767c2c790fda526e0c4ecde50b07c9