From ff9c41fb64800c858820e400037796a8f78933d7 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 1 Jan 2019 09:40:30 +0100 Subject: [PATCH] Enable python dependency generator References: https://fedoraproject.org/wiki/Changes/EnablingPythonGeneratorsByDefault Signed-off-by: Igor Gnatenko --- python-fido2.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/python-fido2.spec b/python-fido2.spec index 5508e4c..fc54a8e 100644 --- a/python-fido2.spec +++ b/python-fido2.spec @@ -1,3 +1,4 @@ +%{?python_enable_dependency_generator} %if 0%{?fedora} %bcond_with python2 %else @@ -10,7 +11,7 @@ Name: python-%{srcname} Version: 0.5.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Functionality for FIDO 2.0, including USB device communication # Main code is BSD @@ -52,9 +53,11 @@ BuildRequires: python2-mock %if %{with python2_tests} BuildRequires: python2-pyfakefs %endif +%if %{undefined __pythondist_requires} Requires: python2-enum34 Requires: python2-cryptography Requires: python2-six +%endif %{?python_provide:%python_provide python2-%{srcname}} %description -n python2-%{srcname} %_description @@ -68,8 +71,10 @@ BuildRequires: python%{python3_pkgversion}-six # For tests BuildRequires: python%{python3_pkgversion}-mock BuildRequires: python%{python3_pkgversion}-pyfakefs +%if %{undefined __pythondist_requires} Requires: python%{python3_pkgversion}-cryptography Requires: python%{python3_pkgversion}-six +%endif %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} %description -n python%{python3_pkgversion}-%{srcname} %_description @@ -83,8 +88,10 @@ BuildRequires: python%{python3_other_pkgversion}-six # For tests BuildRequires: python%{python3_other_pkgversion}-mock BuildRequires: python%{python3_other_pkgversion}-pyfakefs +%if %{undefined __pythondist_requires} Requires: python%{python3_other_pkgversion}-cryptography Requires: python%{python3_other_pkgversion}-six +%endif %{?python_provide:%python_provide python%{python3_other_pkgversion}-%{srcname}} %description -n python%{python3_other_pkgversion}-%{srcname} %_description @@ -148,6 +155,9 @@ Requires: python%{python3_other_pkgversion}-six %changelog +* Tue Jan 01 2019 Igor Gnatenko - 0.5.0-2 +- Enable python dependency generator + * Mon Dec 31 2018 Orion Poplawski - 0.5.0-1 - Update to 0.5.0