From b458eac216d99e82000158a184efe53069e506bb Mon Sep 17 00:00:00 2001 From: blinxen Date: Thu, 14 Sep 2023 20:26:49 +0200 Subject: [PATCH] Enable document-features feature as the required dependency is now packaged [skip changelog] --- gix-date-fix-metadata.diff | 13 ------------- rust-gix-date.spec | 15 ++++++++++++--- 2 files changed, 12 insertions(+), 16 deletions(-) delete mode 100644 gix-date-fix-metadata.diff diff --git a/gix-date-fix-metadata.diff b/gix-date-fix-metadata.diff deleted file mode 100644 index 37a11e9..0000000 --- a/gix-date-fix-metadata.diff +++ /dev/null @@ -1,13 +0,0 @@ ---- gix-date-0.8.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ gix-date-0.8.0/Cargo.toml 2023-09-13T19:28:14.900421+00:00 -@@ -40,10 +40,6 @@ - features = ["std"] - default-features = false - --[dependencies.document-features] --version = "0.2.0" --optional = true -- - [dependencies.itoa] - version = "1.0.1" - diff --git a/rust-gix-date.spec b/rust-gix-date.spec index ad981db..167c8d7 100644 --- a/rust-gix-date.spec +++ b/rust-gix-date.spec @@ -12,9 +12,6 @@ Summary: Parse dates the way git does License: MIT OR Apache-2.0 URL: https://crates.io/crates/gix-date Source: %{crates_source} -# Manually created patch for downstream crate metadata changes -# * Disable feature that is only required for building documentation -Patch: gix-date-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 @@ -50,6 +47,18 @@ use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+document-features-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+document-features-devel %{_description} + +This package contains library source intended for building other packages which +use the "document-features" feature of the "%{crate}" crate. + +%files -n %{name}+document-features-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+serde-devel Summary: %{summary} BuildArch: noarch