From a20fe3fea06c7c29eb2fd5494360b5d98e02dfdf Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 7 Oct 2018 17:32:04 +0200 Subject: [PATCH] exclude more unneeded files Signed-off-by: Igor Gnatenko --- rust-unicode-width.spec | 5 ++++- unicode-width-fix-metadata.diff | 11 +++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 unicode-width-fix-metadata.diff diff --git a/rust-unicode-width.spec b/rust-unicode-width.spec index 6bad7cd..192a610 100644 --- a/rust-unicode-width.spec +++ b/rust-unicode-width.spec @@ -10,9 +10,13 @@ Version: 0.1.5 Release: 3%{?dist} Summary: Determine displayed width of `char` and `str` types +# Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/unicode-width Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +# Initial patched metadata +# * Exclude more unneeded files +Patch0: unicode-width-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -51,7 +55,6 @@ which use %{crate} from crates.io. %license LICENSE-MIT LICENSE-APACHE COPYRIGHT %doc README.md %{cargo_registry}/%{crate}-%{version}/ -%exclude %{cargo_registry}/%{crate}-%{version}/scripts %changelog * Sun Oct 07 2018 Igor Gnatenko - 0.1.5-3 diff --git a/unicode-width-fix-metadata.diff b/unicode-width-fix-metadata.diff new file mode 100644 index 0000000..6474f0b --- /dev/null +++ b/unicode-width-fix-metadata.diff @@ -0,0 +1,11 @@ +--- unicode-width-0.1.5/Cargo.toml 1970-01-01T01:00:00+01:00 ++++ unicode-width-0.1.5/Cargo.toml 2018-10-07T17:31:37.976997+02:00 +@@ -14,7 +14,7 @@ + name = "unicode-width" + version = "0.1.5" + authors = ["kwantam "] +-exclude = ["target/*", "Cargo.lock"] ++exclude = ["target/*", "Cargo.lock", "/scripts/*"] + description = "Determine displayed width of `char` and `str` types\naccording to Unicode Standard Annex #11 rules.\n" + homepage = "https://github.com/unicode-rs/unicode-width" + documentation = "https://unicode-rs.github.io/unicode-width"