From b9c4e7fb1267b482eddd21b7919f1c3b7dafceba Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sat, 14 Dec 2019 20:13:44 +0100 Subject: [PATCH] Exclude unneeded files Signed-off-by: Igor Gnatenko --- brotli-fix-metadata.diff | 16 ++++++++++++++++ rust-brotli.spec | 3 +++ 2 files changed, 19 insertions(+) create mode 100644 brotli-fix-metadata.diff diff --git a/brotli-fix-metadata.diff b/brotli-fix-metadata.diff new file mode 100644 index 0000000..ec283e2 --- /dev/null +++ b/brotli-fix-metadata.diff @@ -0,0 +1,16 @@ +--- brotli-3.3.0/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ brotli-3.3.0/Cargo.toml 2019-12-14T19:13:13.405220+00:00 +@@ -22,6 +22,13 @@ + keywords = ["brotli", "decompression", "lz77", "huffman", "nostd"] + license = "BSD-3-Clause/MIT" + repository = "https://github.com/dropbox/rust-brotli" ++exclude = [ ++ "/ci/*", ++ "/research/*", ++ "/.travis.yml", ++ "/appveyor.yml", ++ "/uncorrode.py", ++] + [profile.release] + lto = true + incremental = false diff --git a/rust-brotli.spec b/rust-brotli.spec index 7a396ce..d4d40dd 100644 --- a/rust-brotli.spec +++ b/rust-brotli.spec @@ -22,6 +22,9 @@ Summary: Brotli compressor and decompressor avoiding the rust stdlib License: BSD URL: https://crates.io/crates/brotli Source: %{crates_source} +# Initial patched metadata +# * Exclude unneeded files, https://github.com/dropbox/rust-brotli/pull/43 +Patch0: brotli-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build}