From 1b19440d635bb8e37ecd6c44ff938d3c9f8d10b5 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sun, 6 Feb 2022 00:24:40 +0100 Subject: [PATCH] Update to version 0.1.22; Fixes RHBZ#2050455 --- .gitignore | 1 + rust-tracing-core.spec | 28 ++++++++++++++-------------- sources | 2 +- tracing-core-fix-metadata.diff | 15 +++++++++++++++ 4 files changed, 31 insertions(+), 15 deletions(-) create mode 100644 tracing-core-fix-metadata.diff diff --git a/.gitignore b/.gitignore index 1b9ea78..e6cf64f 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /tracing-core-0.1.19.crate /tracing-core-0.1.20.crate /tracing-core-0.1.21.crate +/tracing-core-0.1.22.crate diff --git a/rust-tracing-core.spec b/rust-tracing-core.spec index 74cc634..0d1dab1 100644 --- a/rust-tracing-core.spec +++ b/rust-tracing-core.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 20 %bcond_without check %global debug_package %{nil} %global crate tracing-core Name: rust-%{crate} -Version: 0.1.21 +Version: 0.1.22 Release: %autorelease Summary: Core primitives for application-level tracing @@ -13,11 +13,11 @@ Summary: Core primitives for application-level tracing License: MIT URL: https://crates.io/crates/tracing-core Source: %{crates_source} +# Initial patched metadata +# * drop optional dependencies for unstable "valuable" feature +Patch0: tracing-core-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif BuildRequires: rust-packaging @@ -32,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 LICENSE-lazy_static LICENSE-spin -%doc README.md CHANGELOG.md +%doc CHANGELOG.md README.md %{cargo_registry}/%{crate}-%{version_no_tilde}/ # exclude LICENSE file copies from -devel package %exclude %{cargo_registry}/%{crate}-%{version_no_tilde}/LICENSE-* @@ -48,8 +48,8 @@ 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 @@ -60,8 +60,8 @@ BuildArch: noarch %description -n %{name}+lazy_static-devel %{_description} -This package contains library source intended for building other packages -which use "lazy_static" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "lazy_static" feature of the "%{crate}" crate. %files -n %{name}+lazy_static-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml @@ -72,8 +72,8 @@ BuildArch: noarch %description -n %{name}+std-devel %{_description} -This package contains library source intended for building other packages -which use "std" feature of "%{crate}" crate. +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 diff --git a/sources b/sources index bb6243d..713a633 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (tracing-core-0.1.21.crate) = 2c3e00674c02023ee3e9a114878ad8941253a9489312082b2cf9a163b04fb8d23767f00892874645f59f30b6f620dfb83dab8680c64db5510208678b52f2db9c +SHA512 (tracing-core-0.1.22.crate) = 500e74a0a3a54599bb4614b6377d9d721635dd4ce0119697fb234725db8b60e6aecbb850d7dd311af4796e47b060832fe3be39324d484a039e9b8a08d36c3ab2 diff --git a/tracing-core-fix-metadata.diff b/tracing-core-fix-metadata.diff new file mode 100644 index 0000000..31ca28b --- /dev/null +++ b/tracing-core-fix-metadata.diff @@ -0,0 +1,15 @@ +--- tracing-core-0.1.22/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ tracing-core-0.1.22/Cargo.toml 2022-02-05T23:21:14.801028+00:00 +@@ -31,11 +31,7 @@ + optional = true + + [features] +-default = ["std", "valuable/std"] ++default = ["std"] + std = ["lazy_static"] +-[target."cfg(tracing_unstable)".dependencies.valuable] +-version = "0.1.0" +-optional = true +-default_features = false + [badges.maintenance] + status = "actively-developed"