diff --git a/python-fido2.spec b/python-fido2.spec index 26a4e28..c4b8173 100644 --- a/python-fido2.spec +++ b/python-fido2.spec @@ -5,13 +5,13 @@ %bcond_without python2 %endif # Missing pyfakefs on EPEL7 -%bcond_with python2_tests +%bcond_with python_tests %global srcname fido2 Name: python-%{srcname} Version: 0.5.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Functionality for FIDO 2.0, including USB device communication # Main code is BSD @@ -50,7 +50,7 @@ BuildRequires: python2-six BuildRequires: python2-enum34 # For tests BuildRequires: python2-mock -%if %{with python2_tests} +%if %{with python_tests} BuildRequires: python2-pyfakefs %endif %if %{undefined __pythondist_requires} @@ -70,7 +70,9 @@ BuildRequires: python%{python3_pkgversion}-cryptography BuildRequires: python%{python3_pkgversion}-six # For tests BuildRequires: python%{python3_pkgversion}-mock +%if %{with python_tests} BuildRequires: python%{python3_pkgversion}-pyfakefs +%endif %if %{undefined __pythondist_requires} Requires: python%{python3_pkgversion}-cryptography Requires: python%{python3_pkgversion}-six @@ -87,7 +89,9 @@ BuildRequires: python%{python3_other_pkgversion}-cryptography BuildRequires: python%{python3_other_pkgversion}-six # For tests BuildRequires: python%{python3_other_pkgversion}-mock +%if %{with python_tests} BuildRequires: python%{python3_other_pkgversion}-pyfakefs +%endif %if %{undefined __pythondist_requires} Requires: python%{python3_other_pkgversion}-cryptography Requires: python%{python3_other_pkgversion}-six @@ -122,7 +126,7 @@ Requires: python%{python3_other_pkgversion}-six %check -%if %{with python2} && %{with python2_tests} +%if %{with python2} && %{with python_tests} %{__python2} setup.py test %endif %{__python3} setup.py test @@ -146,7 +150,7 @@ Requires: python%{python3_other_pkgversion}-six %{python3_sitelib}/%{srcname}/ %if 0%{?python3_other_pkgversion} -%files -n python%{python3_pkgversion}-%{srcname} +%files -n python%{python3_other_pkgversion}-%{srcname} %license COPYING* %doc NEWS README.adoc examples %{python3_other_sitelib}/%{srcname}-*.egg-info/ @@ -155,6 +159,9 @@ Requires: python%{python3_other_pkgversion}-six %changelog +* Thu Mar 14 2019 Orion Poplawski - 0.5.0-4 +- Fix for python3 on EPEL + * Sat Feb 02 2019 Fedora Release Engineering - 0.5.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild