Fix duct 0.13 compatibility

Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
epel9
Robert-André Mauchin 5 years ago
parent 0411262549
commit e701ee8909

@ -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()

@ -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}

Loading…
Cancel
Save