From 4ece3b5c6a1a69886243d894bed9e2d19f88a47e Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Oct 07 2018 18:05:32 +0000 Subject: exclude more unneeded files Signed-off-by: Igor Gnatenko --- diff --git a/regex-1.0.2-fix-metadata.diff b/regex-1.0.2-fix-metadata.diff deleted file mode 100644 index 00d41a1..0000000 --- a/regex-1.0.2-fix-metadata.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- regex-1.0.2/Cargo.toml 1970-01-01T01:00:00+01:00 -+++ regex-1.0.2/Cargo.toml 2018-07-19T03:37:55.434512+02:00 -@@ -95,8 +95,6 @@ - - [features] - default = ["use_std"] --pattern = [] --unstable = ["pattern"] - use_std = [] - [badges.appveyor] - repository = "rust-lang-libs/regex" diff --git a/regex-fix-metadata.diff b/regex-fix-metadata.diff new file mode 100644 index 0000000..56108ee --- /dev/null +++ b/regex-fix-metadata.diff @@ -0,0 +1,10 @@ +--- regex-1.0.5/Cargo.toml 1970-01-01T01:00:00+01:00 ++++ regex-1.0.5/Cargo.toml 2018-10-07T20:03:14.619201+02:00 +@@ -22,6 +22,7 @@ + categories = ["text-processing"] + license = "MIT/Apache-2.0" + repository = "https://github.com/rust-lang/regex" ++exclude = ["/.travis.yml", "/appveyor.yml", "/ci/*", "/scripts/*"] + [profile.test] + debug = true + diff --git a/rust-regex.spec b/rust-regex.spec index c9a98f6..43a4d3c 100644 --- a/rust-regex.spec +++ b/rust-regex.spec @@ -7,7 +7,7 @@ Name: rust-%{crate} Version: 1.0.5 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Implementation of regular expressions for Rust # Upstream license specification: MIT/Apache-2.0 @@ -15,8 +15,8 @@ License: MIT or ASL 2.0 URL: https://crates.io/crates/regex Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate # Initial patched metadata -# * No unstable features -Patch0: regex-1.0.2-fix-metadata.diff +# * Exclude unneeded files, https://github.com/rust-lang/regex/pull/520 +Patch0: regex-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -67,9 +67,11 @@ which use %{crate} from crates.io. %license LICENSE-MIT LICENSE-APACHE %doc README.md CHANGELOG.md HACKING.md PERFORMANCE.md UNICODE.md %{cargo_registry}/%{crate}-%{version}/ -%exclude %{cargo_registry}/%{crate}-%{version}/{appveyor.yml,ci,scripts} %changelog +* Sun Oct 07 2018 Igor Gnatenko - 1.0.5-2 +- Exclude more unneeded files + * Fri Sep 07 2018 Josh Stone - 1.0.5-1 - Update to 1.0.5