Add metapackages for “rsa” and “ed25519” extras

- Drop hard dependency on python3-cryptography
This commit is contained in:
Benjamin A. Beasley 2022-08-11 17:46:34 -04:00
parent f251391e7a
commit fc9415e183

View File

@ -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 <code@musicinmybrain.net> - 1.0.2-3
- Add metapackages for “rsa” and “ed25519” extras
- Drop hard dependency on python3-cryptography
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild