diff --git a/0001-Allow-the-deprecated-AsciiExt.patch b/0001-Allow-the-deprecated-AsciiExt.patch new file mode 100644 index 0000000..836e22f --- /dev/null +++ b/0001-Allow-the-deprecated-AsciiExt.patch @@ -0,0 +1,36 @@ +From dfd4936eb09ecc6cd5c5d79254aa6fdfe35a4667 Mon Sep 17 00:00:00 2001 +From: Josh Stone +Date: Wed, 16 May 2018 16:29:24 -0700 +Subject: [PATCH] Allow the deprecated AsciiExt + +--- + src/ascii.rs | 2 +- + src/lib.rs | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/ascii.rs b/src/ascii.rs +index 745ea04bbcec..885e2703fed9 100644 +--- a/src/ascii.rs ++++ b/src/ascii.rs +@@ -1,4 +1,4 @@ +-#[allow(unused)] ++#[allow(deprecated, unused)] + use std::ascii::AsciiExt; + #[cfg(__unicase__iter_cmp)] + use std::cmp::Ordering; +diff --git a/src/lib.rs b/src/lib.rs +index 5290d50cbde7..5998fb1b8ccc 100644 +--- a/src/lib.rs ++++ b/src/lib.rs +@@ -111,7 +111,7 @@ impl> UniCase { + /// + /// Note: This scans the text to determine if it is all ASCII or not. + pub fn new(s: S) -> UniCase { +- #[allow(unused)] ++ #[allow(deprecated, unused)] + use std::ascii::AsciiExt; + if s.as_ref().is_ascii() { + UniCase(Encoding::Ascii(Ascii(s))) +-- +2.17.0 + diff --git a/rust-unicase.spec b/rust-unicase.spec index 0fb9742..dc3c458 100644 --- a/rust-unicase.spec +++ b/rust-unicase.spec @@ -6,13 +6,16 @@ Name: rust-%{crate} Version: 2.1.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Case-insensitive wrapper around strings License: MIT or ASL 2.0 URL: https://crates.io/crates/unicase Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +# https://github.com/seanmonstar/unicase/pull/24 +Patch1: 0001-Allow-the-deprecated-AsciiExt.patch + ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging @@ -54,6 +57,9 @@ which use %{crate} from crates.io. %exclude %{cargo_registry}/%{crate}-%{version}/scripts %changelog +* Thu May 17 2018 Josh Stone - 2.1.0-4 +- Fix FTBFS from deprecated AsciiExt + * Fri Feb 09 2018 Fedora Release Engineering - 2.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild