From fc9415e183ac446542fdf1e0e7b547098a07c5cd Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Thu, 11 Aug 2022 17:46:34 -0400 Subject: [PATCH] =?UTF-8?q?Add=20metapackages=20for=20=E2=80=9Crsa?= =?UTF-8?q?=E2=80=9D=20and=20=E2=80=9Ced25519=E2=80=9D=20extras?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Drop hard dependency on python3-cryptography --- python-PyMySQL.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/python-PyMySQL.spec b/python-PyMySQL.spec index bc0d74c..a387a03 100644 --- a/python-PyMySQL.spec +++ b/python-PyMySQL.spec @@ -2,7 +2,7 @@ Name: python-%{pypi_name} Version: 1.0.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Pure-Python MySQL client library License: MIT @@ -21,8 +21,10 @@ and Jython. Summary: %{summary} BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools +# rsa extra BuildRequires: python%{python3_pkgversion}-cryptography -Requires: python%{python3_pkgversion}-cryptography +# ed25519 extra +BuildRequires: python%{python3_pkgversion}-pynacl %{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} %description -n python%{python3_pkgversion}-%{pypi_name} @@ -31,6 +33,9 @@ to be a drop-in replacement for MySQLdb and work on CPython, PyPy, IronPython and Jython. +%{?python_extras_subpkg:%python_extras_subpkg -n python3-%{pypi_name} -i %{python3_sitelib}/*.egg-info rsa ed25519} + + %prep %setup -qn %{pypi_name}-%{version} rm -rf %{pypi_name}.egg-info @@ -57,6 +62,10 @@ rm -rf tests %{python3_sitelib}/pymysql/ %changelog +* Thu Aug 11 2022 Benjamin A. Beasley - 1.0.2-3 +- Add metapackages for “rsa” and “ed25519” extras +- Drop hard dependency on python3-cryptography + * Fri Jul 22 2022 Fedora Release Engineering - 1.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild