From fc60652c889c8c80c2ce4f89ca56f663ccea0d39 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Sun, 20 Feb 2022 17:40:02 +0100 Subject: [PATCH] Update simplelog to 0.11 Signed-off-by: Igor Raits --- btrd-fix-metadata.diff | 11 +++++++++++ rust-btrd.spec | 20 +++++++++----------- 2 files changed, 20 insertions(+), 11 deletions(-) create mode 100644 btrd-fix-metadata.diff diff --git a/btrd-fix-metadata.diff b/btrd-fix-metadata.diff new file mode 100644 index 0000000..269f5d3 --- /dev/null +++ b/btrd-fix-metadata.diff @@ -0,0 +1,11 @@ +--- btrd-0.5.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ btrd-0.5.0/Cargo.toml 2022-02-20T16:38:57.037162+00:00 +@@ -43,7 +43,7 @@ + version = "0.4" + + [dependencies.simplelog] +-version = "0.10" ++version = "0.11" + + [dependencies.structopt] + version = "0.3" diff --git a/rust-btrd.spec b/rust-btrd.spec index 66bf681..1db8b57 100644 --- a/rust-btrd.spec +++ b/rust-btrd.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 20 %bcond_without check %global crate btrd @@ -12,13 +12,13 @@ Summary: Btrfs debugger License: GPLv2 URL: https://crates.io/crates/btrd Source: %{crates_source} +# Initial patched metadata +# * Update simplelog to 0.11, https://github.com/danobi/btrd/pull/15 +Patch0: btrd-fix-metadata.diff # Backport of PR#13: Bump nix to 0.22 -Patch0: btrd-bump-nix.patch +Patch1: btrd-bump-nix.patch ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif BuildRequires: rust-packaging @@ -29,7 +29,6 @@ all on-disk types.} %description %{_description} -%if ! %{__cargo_skip_build} %package -n %{crate} Summary: %{summary} @@ -39,7 +38,6 @@ Summary: %{summary} %license LICENSE %doc scripts README.md %{_bindir}/btrd -%endif %package devel Summary: %{summary} @@ -47,8 +45,8 @@ 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 @@ -61,8 +59,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