From 13953686703cfa454ed9b55fe6cafff58466bcd0 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Thu, 8 Feb 2024 12:21:18 -0500 Subject: [PATCH] Exclude more files from the published crate https://bugzilla.redhat.com/show_bug.cgi?id=2259758#c2 --- rust-zopfli.spec | 2 ++ zopfli-fix-metadata.diff | 18 ++++++++++++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/rust-zopfli.spec b/rust-zopfli.spec index f3d35b8..ae0f7da 100644 --- a/rust-zopfli.spec +++ b/rust-zopfli.spec @@ -16,6 +16,8 @@ Source: %{crates_source} # # - Don’t build the “zopfli” executable, which would conflict with the more # widely used one provided by https://src.fedoraproject.org/rpms/zopfli. +# - Exclude more files from the published crate +# https://github.com/zopfli-rs/zopfli/pull/37 Patch: zopfli-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 diff --git a/zopfli-fix-metadata.diff b/zopfli-fix-metadata.diff index 8320e2f..e78f837 100644 --- a/zopfli-fix-metadata.diff +++ b/zopfli-fix-metadata.diff @@ -1,6 +1,20 @@ --- zopfli-0.8.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ zopfli-0.8.0/Cargo.toml 2024-01-22T17:28:52.493168+00:00 -@@ -25,20 +25,13 @@ ++++ zopfli-0.8.0/Cargo.toml 2024-02-08T17:20:25.311181+00:00 +@@ -14,7 +14,12 @@ + rust-version = "1.66" + name = "zopfli" + version = "0.8.0" +-exclude = ["test/*"] ++exclude = [ ++ "Makefile", ++ "benchmark-builds/*", ++ "rustfmt.toml", ++ "test/*", ++] + description = "A Rust implementation of the Zopfli compression algorithm." + homepage = "https://github.com/zopfli-rs/zopfli" + readme = "README.md" +@@ -25,20 +30,13 @@ ] license = "Apache-2.0" repository = "https://github.com/zopfli-rs/zopfli"