From 09be554f7f9ce0f36d98fb07c20c129d064ed0fe Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Wed, 12 Jan 2022 11:34:00 -0800 Subject: [PATCH] Update to 0.14.1 Signed-off-by: Michel Alexandre Salim --- .gitignore | 1 + roxmltree-fix-metadata.diff | 11 ++++++----- rust-roxmltree.spec | 31 ++++++++++++++++++++----------- sources | 2 +- 4 files changed, 28 insertions(+), 17 deletions(-) diff --git a/.gitignore b/.gitignore index 4aa5b80..56589d0 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /roxmltree-0.13.1.crate +/roxmltree-0.14.1.crate diff --git a/roxmltree-fix-metadata.diff b/roxmltree-fix-metadata.diff index 1cc1f48..7f7f479 100644 --- a/roxmltree-fix-metadata.diff +++ b/roxmltree-fix-metadata.diff @@ -1,10 +1,11 @@ ---- roxmltree-0.13.1/Cargo.toml 2020-12-19T22:06:09+00:00 -+++ roxmltree-0.13.1/Cargo.toml 2020-12-25T09:40:49.901526+00:00 -@@ -25,6 +25,6 @@ +--- roxmltree-0.14.1/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ roxmltree-0.14.1/Cargo.toml 2022-01-12T19:32:47.479075+00:00 +@@ -25,7 +25,7 @@ [dependencies.xmlparser] version = "0.13.3" [dev-dependencies.pretty_assertions] -version = "0.5" +version = "0.6" - [badges.travis-ci] - repository = "RazrFalcon/roxmltree" + + [features] + default = ["std"] diff --git a/rust-roxmltree.spec b/rust-roxmltree.spec index 70f535b..3e99641 100644 --- a/rust-roxmltree.spec +++ b/rust-roxmltree.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 16 +# Generated by rust2rpm 20 %bcond_without check %global debug_package %{nil} %global crate roxmltree Name: rust-%{crate} -Version: 0.13.1 +Version: 0.14.1 Release: %autorelease Summary: Represent an XML as a read-only tree @@ -18,9 +18,6 @@ Source: %{crates_source} Patch0: roxmltree-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif BuildRequires: rust-packaging @@ -35,12 +32,12 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel -%license LICENSE-MIT LICENSE-APACHE -%doc README.md CHANGELOG.md +%license LICENSE-APACHE LICENSE-MIT +%doc CHANGELOG.md README.md %{cargo_registry}/%{crate}-%{version_no_tilde}/ %package -n %{name}+default-devel @@ -49,12 +46,24 @@ BuildArch: noarch %description -n %{name}+default-devel %{_description} -This package contains library source intended for building other packages -which use "default" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. + +%files -n %{name}+std-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep diff --git a/sources b/sources index 7449f0b..f5c1745 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (roxmltree-0.13.1.crate) = a2bb79f9bb0a02ce904fbffa300647d5017e3906d923918cfc426099e2bc7d941489e532f80354d148988e3df80feb836de2065116e5df3304a9e9c782b7b53c +SHA512 (roxmltree-0.14.1.crate) = 6ddf07cf54604d5e5feff2ba9c4ba3aeddb3e43f9630e7a66bd01cae7f96255eb678a9d3b7d408bf6677bbbf8243c30c057fb5634e6cef99b445d0022834a6f7