From 4704f5f4bfc49b986ae84f2abb4f00e73dcfc5cc Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 25 Jan 2022 22:33:51 +0100 Subject: [PATCH] drop unused hyphenation feature (missing dependencies) --- rust-textwrap0.11.spec | 37 ++++++++++++++----------------------- textwrap-fix-metadata.diff | 13 +++++++++++++ 2 files changed, 27 insertions(+), 23 deletions(-) create mode 100644 textwrap-fix-metadata.diff diff --git a/rust-textwrap0.11.spec b/rust-textwrap0.11.spec index 37014fa..dff12f5 100644 --- a/rust-textwrap0.11.spec +++ b/rust-textwrap0.11.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 15 +# Generated by rust2rpm 20 %bcond_with check %global debug_package %{nil} @@ -6,18 +6,18 @@ Name: rust-%{crate}0.11 Version: 0.11.0 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Small library for word wrapping, indenting, and dedenting strings # Upstream license specification: MIT License: MIT URL: https://crates.io/crates/textwrap Source: %{crates_source} +# Initial patched metadata +# * drop unused hyphenation feature (missing dependencies) +Patch0: textwrap-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif BuildRequires: rust-packaging @@ -35,8 +35,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 @@ -49,32 +49,20 @@ 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}+hyphenation-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+hyphenation-devel %{_description} - -This package contains library source intended for building other packages -which use "hyphenation" feature of "%{crate}" crate. - -%files -n %{name}+hyphenation-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - %package -n %{name}+term_size-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+term_size-devel %{_description} -This package contains library source intended for building other packages -which use "term_size" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "term_size" feature of the "%{crate}" crate. %files -n %{name}+term_size-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml @@ -98,6 +86,9 @@ which use "term_size" feature of "%{crate}" crate. %endif %changelog +* Tue Jan 25 2022 Fabio Valentini - 0.11.0-5 +- Drop unused hyphenation feature (missing dependencies). + * Fri Jan 21 2022 Fedora Release Engineering - 0.11.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild diff --git a/textwrap-fix-metadata.diff b/textwrap-fix-metadata.diff new file mode 100644 index 0000000..92f1a73 --- /dev/null +++ b/textwrap-fix-metadata.diff @@ -0,0 +1,13 @@ +--- textwrap-0.11.0/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ textwrap-0.11.0/Cargo.toml 2022-01-25T21:28:46.598508+00:00 +@@ -24,10 +24,6 @@ + repository = "https://github.com/mgeisler/textwrap" + [package.metadata.docs.rs] + all-features = true +-[dependencies.hyphenation] +-version = "0.7.1" +-features = ["embed_all"] +-optional = true + + [dependencies.term_size] + version = "0.3.0"