From ff1e7f55e47785ddf77ce5cb2c634c6cb0ad35d4 Mon Sep 17 00:00:00 2001 From: Michal Schorm Date: Wed, 16 Oct 2024 17:31:12 +0200 Subject: [PATCH] Remove unused bundled code Remove debian-only files before package build Remove second bundled zlib location --- mariadb.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mariadb.spec b/mariadb.spec index fb43884..2dbba4e 100644 --- a/mariadb.spec +++ b/mariadb.spec @@ -724,6 +724,14 @@ sources. %prep %setup -q -n %{pkg_name}-%{version} +# Remove bundled code that is unused (all cases in which we use the system version of the library instead) +# as required by https://docs.fedoraproject.org/en-US/packaging-guidelines/#bundling +rm -r zlib libmariadb/external/zlib +rm -r win libmariadb/win +rm -r extra/wolfssl +rm -r storage/columnstore +rm -r debian + # Remove JAR files that upstream puts into tarball find . -name "*.jar" -type f -exec rm --verbose -f {} \; # Remove testsuite for the mariadb-connector-c