From 54fb0949d021f29a99cf7cd6d590001cdf40968b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Fri, 10 Jul 2020 20:19:41 +0200 Subject: [PATCH] Add pyjwt[crypto] subpackage https://fedoraproject.org/wiki/Changes/PythonExtras --- python-jwt.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/python-jwt.spec b/python-jwt.spec index f403f77..1a87370 100644 --- a/python-jwt.spec +++ b/python-jwt.spec @@ -21,7 +21,7 @@ encrypted JSON objects.} Name: python-%{pkgname} Version: 1.7.1 -Release: 8%{?dist} +Release: 9%{?dist} Summary: JSON Web Token implementation in Python License: MIT URL: https://github.com/jpadilla/pyjwt @@ -54,11 +54,16 @@ BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-cryptography >= 1.4.0 BuildRequires: python%{python3_pkgversion}-pytest -Requires: python%{python3_pkgversion}-cryptography >= 1.4.0 + +%{?python_extras_subpkg:Recommends: python%{python3_pkgversion}-%{pkgname}+crypto} +%{!?python_extras_subpkg:Requires: python%{python3_pkgversion}-cryptography >= 1.4.0} + %{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}} %description -n python%{python3_pkgversion}-%{pkgname} %{common_description} + +%{?python_extras_subpkg:%python_extras_subpkg -n python%{python3_pkgversion}-%{pkgname} -i %{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info crypto} %endif @@ -104,6 +109,9 @@ rm setup.cfg %changelog +* Fri Jul 10 2020 Miro Hrončok - 1.7.1-9 +- Add pyjwt[crypto] subpackage + * Sat May 23 2020 Miro Hrončok - 1.7.1-8 - Rebuilt for Python 3.9