From 2bcdc6e5b4fde40482f2ffdc62d62824f846d36a Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Jul 12 2020 12:59:18 +0000 Subject: Add oauthlib[signedtoken] subpackage https://fedoraproject.org/wiki/Changes/PythonExtras --- diff --git a/python-oauthlib.spec b/python-oauthlib.spec index f732d34..c7c0592 100644 --- a/python-oauthlib.spec +++ b/python-oauthlib.spec @@ -20,7 +20,7 @@ Name: python-oauthlib Version: 3.0.2 -Release: 6%{?dist} +Release: 7%{?dist} Summary: An implementation of the OAuth request-signing logic License: BSD @@ -88,8 +88,9 @@ BuildRequires: python3-blinker BuildRequires: python3-jwt >= 1.6.0 BuildRequires: python3-cryptography >= 1.4.0 -Requires: python3-jwt >= 1.6.0 -Requires: python3-cryptography >= 1.4.0 +%{?python_extras_subpkg:Recommends: python3-oauthlib+signedtoken} +%{!?python_extras_subpkg:Requires: python3-jwt >= 1.6.0} +%{!?python_extras_subpkg:Requires: python3-cryptography >= 1.4.0} %description -n python3-oauthlib OAuthLib is a generic utility which implements the logic of OAuth without @@ -99,6 +100,8 @@ onto your favourite web framework. If you're a maintainer of such a library, write a thin veneer on top of OAuthLib and get OAuth support for very little effort. +%{?python_extras_subpkg:%python_extras_subpkg -n python3-oauthlib -i %{python3_sitelib}/%{modname}-%{version}-*.egg-info signedtoken} + %endif # with python3 %prep @@ -152,6 +155,9 @@ rm -rf %{modname}.egg-info %endif # with python3 %changelog +* Fri Jul 10 2020 Miro Hrončok - 3.0.2-7 +- Add oauthlib[signedtoken] subpackage + * Sat May 23 2020 Miro Hrončok - 3.0.2-6 - Rebuilt for Python 3.9