From d744fed4858be87507b91a315becac68d5c81772 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 10 Mar 2019 10:39:17 +0100 Subject: [PATCH] Do not pull optional dependencies Signed-off-by: Igor Gnatenko --- rust-textwrap.spec | 13 ++++++------- textwrap-fix-metadata.diff | 13 ------------- 2 files changed, 6 insertions(+), 20 deletions(-) delete mode 100644 textwrap-fix-metadata.diff diff --git a/rust-textwrap.spec b/rust-textwrap.spec index e1bfd61..818cdd4 100644 --- a/rust-textwrap.spec +++ b/rust-textwrap.spec @@ -7,20 +7,16 @@ Name: rust-%{crate} Version: 0.10.0 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Small library for word wrapping, indenting, and dedenting strings License: MIT URL: https://crates.io/crates/textwrap -Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate -# Initial patched metadata -# * XXX: hyphenation is optional and brings a lot of legacy -Patch0: textwrap-fix-metadata.diff +Source: %{crates_source} ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -BuildRequires: (crate(term_size/default) >= 0.3.0 with crate(term_size/default) < 0.4.0) BuildRequires: (crate(unicode-width/default) >= 0.1.3 with crate(unicode-width/default) < 0.2.0) %if %{with check} BuildRequires: (crate(lipsum/default) >= 0.5.0 with crate(lipsum/default) < 0.6.0) @@ -77,7 +73,7 @@ which use "term_size" feature of "%{crate}" crate. %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep -%autosetup -n %{crate}-%{version} -p1 +%autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %build @@ -92,6 +88,9 @@ which use "term_size" feature of "%{crate}" crate. %endif %changelog +* Sun Mar 10 2019 Igor Gnatenko - 0.10.0-6 +- Do not pull optional dependencies + * Sat Feb 02 2019 Fedora Release Engineering - 0.10.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild diff --git a/textwrap-fix-metadata.diff b/textwrap-fix-metadata.diff deleted file mode 100644 index 1eca9f1..0000000 --- a/textwrap-fix-metadata.diff +++ /dev/null @@ -1,13 +0,0 @@ ---- textwrap-0.10.0/Cargo.toml 1970-01-01T01:00:00+01:00 -+++ textwrap-0.10.0/Cargo.toml 2018-10-27T13:04:06.413156+02:00 -@@ -24,10 +24,6 @@ - repository = "https://github.com/mgeisler/textwrap" - [package.metadata.docs.rs] - all-features = true --[dependencies.hyphenation] --version = "0.6.1" --optional = true -- - [dependencies.term_size] - version = "0.3.0" - optional = true