public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michal Schorm <mschorm@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/mysql-connector-python] f45: [rebase 1/4] Update source tarball and generation script to 26.7.0
Date: Tue, 22 Sep 2026 12:14:47 GMT [thread overview]
Message-ID: <179007928721.1.9738922417514892528.rpms-mysql-connector-python-574804cf1f31@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/mysql-connector-python
Branch : f45
Commit : 574804cf1f312d313bad0906ac5a7ab501c0c310
Author : Michal Schorm <mschorm@redhat.com>
Date : 2026-09-22T11:23:06+02:00
Stats : +24/-29 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/mysql-connector-python/c/574804cf1f312d313bad0906ac5a7ab501c0c310?branch=f45
Log:
[rebase 1/4] Update source tarball and generation script to 26.7.0
Update 'sources' with the SHA512 hash for the font-stripped
26.7.0 tarball. Rewrite 'generate-modified-sources.sh':
- Use HTTPS URL (was HTTP)
- Use 'find'-based font deletion instead of hardcoded path glob
- Document which fonts are removed, their licenses, and why
Fedora cannot ship them (Fonts Packaging Guidelines + missing
license texts in upstream bundle)
Co-Authored-By: Claude AI <noreply@anthropic.com>
---
diff --git a/generate-modified-sources.sh b/generate-modified-sources.sh
index bf9984e..ddf0f22 100755
--- a/generate-modified-sources.sh
+++ b/generate-modified-sources.sh
@@ -1,49 +1,44 @@
#!/bin/bash
-#################################
-# downloads the sources of
-# mysql-connector-python
-# extracts them, removes the
-# fonts since they have problematic
-# copyright and packs the result
-# under a new name
-#################################
+# Download the upstream mysql-connector-python source tarball and strip
+# bundled font files from the sphinx_rtd_theme embedded in the mysqlx
+# documentation.
+#
+# Removed fonts (17 files in mysqlx-connector-python/docs/):
+# FontAwesome 4.x — SIL OFL 1.1 (5 files: .eot, .svg, .ttf, .woff, .woff2)
+# Lato — SIL OFL 1.1 (8 files: .woff, .woff2)
+# Roboto Slab — Apache-2.0 (4 files: .woff, .woff2)
+#
+# Why:
+# 1. Fedora Fonts Packaging Guidelines require fonts to be packaged as
+# separate '-fonts' subpackages — bundling inside a non-font package
+# is not permitted. All three are already in Fedora as
+# 'fontawesome4-fonts', 'lato-fonts', 'google-roboto-slab-fonts'.
+# 2. Upstream ships the fonts without accompanying license texts,
+# violating SIL OFL 1.1 and Apache-2.0 redistribution requirements.
+#
+# The fonts are purely cosmetic (sphinx HTML theme decoration) and are
+# not used during the man page build, which is the only documentation
+# artifact shipped in the RPM.
set -ex
NAME="mysql-connector-python"
-# gets the version of the package from the spec file
VERSION=$( rpmspec -q --srpm --qf '%{VERSION}' "${NAME}.spec" )
-# the source url of the mysql upstream tarball of the package
-SOURCE_URL="http://dev.mysql.com/get/Downloads/Connector-python/8.0/${NAME}-${VERSION}-src.tar.gz"
+SOURCE_URL="https://dev.mysql.com/get/Downloads/Connector-python/${NAME}-${VERSION}-src.tar.gz"
-# original archive name
OLD_ARCHIVE_NAME="${NAME}-${VERSION}-src"
-# new tarball name, chnaged to able to differentiate between
-# the original and the changed tarball
NEW_ARCHIVE_NAME="${OLD_ARCHIVE_NAME}-without-fonts"
-# removes the old tarball, new tarball and the unpacked tarball
-# if they are present in the current directory
rm -rf "./${OLD_ARCHIVE_NAME}.tar.gz" "./${OLD_ARCHIVE_NAME}/" "./${NEW_ARCHIVE_NAME}.tar.gz"
-# downloads the source tarball from the url
-# specified above
wget "${SOURCE_URL}"
-
-#unpacks the original tarball
tar -xzf "${OLD_ARCHIVE_NAME}.tar.gz"
-# removes the problematic font files
-rm "./${OLD_ARCHIVE_NAME}/docs/mysqlx/_themes/sphinx_rtd_theme/static/css/fonts/"*
+find "./${OLD_ARCHIVE_NAME}" -path "*/static/css/fonts/*" -type f -delete
-# compresses the modified sources under a new name
tar -czf "${NEW_ARCHIVE_NAME}.tar.gz" "${OLD_ARCHIVE_NAME}"
-# removes the unpacked sources
rm -r "${OLD_ARCHIVE_NAME}"
-
-# removes the original tarball so it isn't used
-# by mistake
-rm -f "${OLD_ARCHIVE_NAME}.tar.gz"
+rm "${OLD_ARCHIVE_NAME}.tar.gz"
diff --git a/sources b/sources
index 679ad39..72b431d 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (mysql-connector-python-8.0.33-src-without-fonts.tar.gz) = 81e0d84ab71ed83e6f2f201b1d285507fb2b0d2dae57df97246ac037bc37974477139c500bfce2e348285ef6d7943fdba1bd0fe53c61b451492e9d1b43d0e65a
+SHA512 (mysql-connector-python-26.7.0-src-without-fonts.tar.gz) = 82b038192e89f1e453fcbd23eb6afa6605989991e7d0b3ed8726ca544d921b812154238df576dcde0a755af2fb30cc321120e3a15ee5b92f1c41ea1ec6536ac7
reply other threads:[~2026-09-22 12:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179007928721.1.9738922417514892528.rpms-mysql-connector-python-574804cf1f31@fedoraproject.org \
--to=mschorm@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox