diff --git a/roff-duct-0.13.patch b/roff-duct-0.13.patch new file mode 100644 index 0000000..8e1d848 --- /dev/null +++ b/roff-duct-0.13.patch @@ -0,0 +1,12 @@ +diff -up roff-0.1.0/tests/demo.rs.orig roff-0.1.0/tests/demo.rs +--- roff-0.1.0/tests/demo.rs.orig 2018-04-18 23:09:27.000000000 +0200 ++++ roff-0.1.0/tests/demo.rs 2019-09-27 12:45:29.912714021 +0200 +@@ -4,7 +4,7 @@ extern crate duct; + + fn roff_to_ascii(input: &str) -> String { + duct::cmd("troff", &["-a", "-mman"]) +- .input(input) ++ .stdin_bytes(input) + .stdout_capture() + .read() + .unwrap() diff --git a/rust-roff.spec b/rust-roff.spec index 75b2ed4..76a24ac 100644 --- a/rust-roff.spec +++ b/rust-roff.spec @@ -16,6 +16,9 @@ Source: %{crates_source} # Initial patched metadata # * Update duct to 0.13, pretty_assertions to 0.6, https://github.com/rust-cli/roff-rs/pull/8 Patch0: roff-fix-metadata.diff +# Duct 0.13 compatibility: +# Renamed input to stdin_bytes +Patch1: roff-duct-0.13.patch ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build}