diff --git a/mariadb.spec b/mariadb.spec index 2b5e373..fca55e3 100644 --- a/mariadb.spec +++ b/mariadb.spec @@ -736,6 +736,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