Started modifying the source package as it contains problematic licenses

for the fonts contained in it.
After inspecting the fonts inside the
docs/mysqlx/_themes/sphinx_rtd_theme/static/css/fonts/
using the fontforge tool I have discovered that the font families are licensed
like this:
	* fontawesome: Copyright Dave Gandy 2016. All rights reserved.
	* latto:
	Copyright (c) 2011-2015 by tyPoland Lukasz Dziedzic
	(http://www.typoland.com/) with Reserved Font Name "Lato". Licensed
	under the SIL Open Font License, Version 1.1 (http://scripts.sil.org/OFL)
	* Roboto: Font data copyright Google 2013
This means the fontawesome and Roboto font families are licensed under a
strict copyright which is not supported when packaging fonts in fedora
and since we don't use the fonts during the build process nor do we
package them in the package I have decided to remove them from the
archive and rename the archive to %{name}-%{version}-src-without-fonts.tar.gz
to avoid any possible confusion when packaging this package in the
future. I have also added the generate-modified-sources.sh script that
downloads the original sources from the mysql upstream, unpacks them,
removes the aforementioned fonts and packs the sources under a new name.
This commit is contained in:
Pavol Sloboda 2025-07-01 09:12:40 +02:00
commit 7479318329
4 changed files with 60 additions and 5 deletions

View file

@ -27,10 +27,15 @@ Summary: MySQL Connector for Python 3
# Automatically converted from old format: GPLv2 with exceptions - review is highly recommended.
License: (MIT OR GPL-2.0-only) AND GPL-2.0-only AND BSD-2-Clause
URL: http://dev.mysql.com/doc/connector-python/en/index.html
# Upstream has a mirror redirector for downloads, so the URL is hard to
# represent statically. You can get the tarball by following a link from
# http://dev.mysql.com/downloads/connector/python/
Source0: %{name}-%{version}-src.tar.gz
# You can get the original tarball from:
# http://dev.mysql.com/get/Downloads/Connector-python/8.0/%%{name}-%%{version}-src.tar.gz"
# The tarball has to be modified as the fonts are licensed under a copyright
# and therefore would clash with the allowed licenses for fonts in fedora if
# they were shipped in the src rpm
# to modify the tarball to the desired form use the
# generate-modified-sources.sh script available in this repo
Source0: %{name}-%{version}-src-without-fonts.tar.gz
BuildRequires: python3-devel >= 3
BuildRequires: python3-setuptools