URL: https://crates.io/crates/clap
Source: %{crate}-%{version}.tar.gz
Source1: %{name}.manifest
+Source2: support_textwrap_0.16.0.patch
# ==========================================================
# BuildRequires
%prep
%setup -q
cp %{SOURCE1} .
+%{__patch} -p1 < %{SOURCE2}
# ==========================================================
# build section
--- /dev/null
+diff --git a/src/app/help.rs b/src/app/help.rs
+index e5f2a60..330d9a2 100644
+--- a/src/app/help.rs
++++ b/src/app/help.rs
+@@ -13,6 +13,7 @@ use std::{
+ use term_size;
+ #[cfg(feature = "wrap_help")]
+ use textwrap;
++use textwrap::fill;
+ use unicode_width::UnicodeWidthStr;
+
+ // Internal
+@@ -1013,9 +1014,9 @@ impl<'a> Help<'a> {
+ }
+
+ fn wrap_help(help: &str, avail_chars: usize) -> String {
+- let wrapper = textwrap::Wrapper::new(avail_chars).break_words(false);
++ let wrapper = textwrap::Options::new(avail_chars).break_words(false);
+ help.lines()
+- .map(|line| wrapper.fill(line))
++ .map(|line| fill(line, &wrapper))
+ .collect::<Vec<String>>()
+ .join("\n")
+ }