From 28f1df5ae385ff118bbeff435dd070b9819aa2b2 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 24 Oct 2023 12:53:44 +0200 Subject: [PATCH] Update to version 0.1.4; Fixes RHBZ#2245712 --- .gitignore | 1 + rust-tracing-log.spec | 10 +++++----- sources | 2 +- tracing-log-fix-metadata.diff | 37 +++++++++++++++++++++-------------- 4 files changed, 29 insertions(+), 21 deletions(-) diff --git a/.gitignore b/.gitignore index 257fe29..acfd20a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /tracing-log-0.1.3.crate +/tracing-log-0.1.4.crate diff --git a/rust-tracing-log.spec b/rust-tracing-log.spec index fc9088f..1cea162 100644 --- a/rust-tracing-log.spec +++ b/rust-tracing-log.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate tracing-log Name: rust-tracing-log -Version: 0.1.3 +Version: 0.1.4 Release: %autorelease Summary: Compatibility between tracing and the log crate @@ -13,11 +13,11 @@ License: MIT URL: https://crates.io/crates/tracing-log Source: %{crates_source} # Manually created patch for downstream crate metadata changes -# * drop unused, benchmark-only criterion dev-dependency to speed up builds +# * drop unused, benchmark-only criterion dev-dependency # * drop optional interest-cache feature (lru is not packaged yet) Patch: tracing-log-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Provides compatibility between `tracing` and the `log` crate.} @@ -100,7 +100,7 @@ use the "trace-logger" 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/sources b/sources index c6b7370..f8053b4 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (tracing-log-0.1.3.crate) = 440cb8ddd5823cd0d86b68bbbf29f6886d5800f95d0aaa9477f98f188013fd009c2b9bc982b17efd08abd071bc70ca511f988b9db8c21d8e3d323fb67614d289 +SHA512 (tracing-log-0.1.4.crate) = 0706f5351cd940639a9a910c3b50099f742ed6880a503ad3c317d4ca318c3ddb54d04790badbf4ba0d968997a1490d2f325b99a842bdad5283006eb55674a998 diff --git a/tracing-log-fix-metadata.diff b/tracing-log-fix-metadata.diff index 65d2236..560db96 100644 --- a/tracing-log-fix-metadata.diff +++ b/tracing-log-fix-metadata.diff @@ -1,34 +1,41 @@ ---- tracing-log-0.1.3/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ tracing-log-0.1.3/Cargo.toml 2023-08-07T18:34:41.310458+00:00 -@@ -43,10 +43,6 @@ - name = "logging" - harness = false +--- tracing-log-0.1.4/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ tracing-log-0.1.4/Cargo.toml 2023-10-23T23:06:34.166925+00:00 +@@ -39,14 +39,6 @@ + "docsrs", + ] +-[[bench]] +-name = "logging" +-harness = false +- -[dependencies.ahash] --version = "0.7.4" +-version = "0.7.6" -optional = true - [dependencies.env_logger] - version = "0.7" + version = "0.8.4" optional = true -@@ -57,16 +53,8 @@ +@@ -54,19 +46,11 @@ [dependencies.log] - version = "0.4" + version = "0.4.17" -[dependencies.lru] --version = "0.7.0" +-version = "0.7.7" -optional = true - + [dependencies.once_cell] + version = "1.13.0" + [dependencies.tracing-core] - version = "0.1.17" + version = "0.1.28" - -[dev-dependencies.criterion] --version = "0.3" --default_features = false +-version = "0.3.6" +-default-features = false [dev-dependencies.tracing] - version = "0.1" -@@ -77,10 +65,6 @@ + version = "0.1.35" +@@ -77,10 +61,6 @@ "trace-logger", "std", ]