Enable python dependency generator

References: https://fedoraproject.org/wiki/Changes/EnablingPythonGeneratorsByDefault
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
epel9
Igor Gnatenko 6 years ago
parent 18acd5101b
commit ff9c41fb64
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

@ -1,3 +1,4 @@
%{?python_enable_dependency_generator}
%if 0%{?fedora} %if 0%{?fedora}
%bcond_with python2 %bcond_with python2
%else %else
@ -10,7 +11,7 @@
Name: python-%{srcname} Name: python-%{srcname}
Version: 0.5.0 Version: 0.5.0
Release: 1%{?dist} Release: 2%{?dist}
Summary: Functionality for FIDO 2.0, including USB device communication Summary: Functionality for FIDO 2.0, including USB device communication
# Main code is BSD # Main code is BSD
@ -52,9 +53,11 @@ BuildRequires: python2-mock
%if %{with python2_tests} %if %{with python2_tests}
BuildRequires: python2-pyfakefs BuildRequires: python2-pyfakefs
%endif %endif
%if %{undefined __pythondist_requires}
Requires: python2-enum34 Requires: python2-enum34
Requires: python2-cryptography Requires: python2-cryptography
Requires: python2-six Requires: python2-six
%endif
%{?python_provide:%python_provide python2-%{srcname}} %{?python_provide:%python_provide python2-%{srcname}}
%description -n python2-%{srcname} %_description %description -n python2-%{srcname} %_description
@ -68,8 +71,10 @@ BuildRequires: python%{python3_pkgversion}-six
# For tests # For tests
BuildRequires: python%{python3_pkgversion}-mock BuildRequires: python%{python3_pkgversion}-mock
BuildRequires: python%{python3_pkgversion}-pyfakefs BuildRequires: python%{python3_pkgversion}-pyfakefs
%if %{undefined __pythondist_requires}
Requires: python%{python3_pkgversion}-cryptography Requires: python%{python3_pkgversion}-cryptography
Requires: python%{python3_pkgversion}-six Requires: python%{python3_pkgversion}-six
%endif
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
%description -n python%{python3_pkgversion}-%{srcname} %_description %description -n python%{python3_pkgversion}-%{srcname} %_description
@ -83,8 +88,10 @@ BuildRequires: python%{python3_other_pkgversion}-six
# For tests # For tests
BuildRequires: python%{python3_other_pkgversion}-mock BuildRequires: python%{python3_other_pkgversion}-mock
BuildRequires: python%{python3_other_pkgversion}-pyfakefs BuildRequires: python%{python3_other_pkgversion}-pyfakefs
%if %{undefined __pythondist_requires}
Requires: python%{python3_other_pkgversion}-cryptography Requires: python%{python3_other_pkgversion}-cryptography
Requires: python%{python3_other_pkgversion}-six Requires: python%{python3_other_pkgversion}-six
%endif
%{?python_provide:%python_provide python%{python3_other_pkgversion}-%{srcname}} %{?python_provide:%python_provide python%{python3_other_pkgversion}-%{srcname}}
%description -n python%{python3_other_pkgversion}-%{srcname} %_description %description -n python%{python3_other_pkgversion}-%{srcname} %_description
@ -148,6 +155,9 @@ Requires: python%{python3_other_pkgversion}-six
%changelog %changelog
* Tue Jan 01 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.5.0-2
- Enable python dependency generator
* Mon Dec 31 2018 Orion Poplawski <orion@nwra.com> - 0.5.0-1 * Mon Dec 31 2018 Orion Poplawski <orion@nwra.com> - 0.5.0-1
- Update to 0.5.0 - Update to 0.5.0

Loading…
Cancel
Save