Fix for python3 on EPEL

epel9
Orion Poplawski 6 years ago
parent aa0aae448a
commit d1c3831285

@ -5,13 +5,13 @@
%bcond_without python2 %bcond_without python2
%endif %endif
# Missing pyfakefs on EPEL7 # Missing pyfakefs on EPEL7
%bcond_with python2_tests %bcond_with python_tests
%global srcname fido2 %global srcname fido2
Name: python-%{srcname} Name: python-%{srcname}
Version: 0.5.0 Version: 0.5.0
Release: 3%{?dist} Release: 4%{?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
@ -50,7 +50,7 @@ BuildRequires: python2-six
BuildRequires: python2-enum34 BuildRequires: python2-enum34
# For tests # For tests
BuildRequires: python2-mock BuildRequires: python2-mock
%if %{with python2_tests} %if %{with python_tests}
BuildRequires: python2-pyfakefs BuildRequires: python2-pyfakefs
%endif %endif
%if %{undefined __pythondist_requires} %if %{undefined __pythondist_requires}
@ -70,7 +70,9 @@ BuildRequires: python%{python3_pkgversion}-cryptography
BuildRequires: python%{python3_pkgversion}-six BuildRequires: python%{python3_pkgversion}-six
# For tests # For tests
BuildRequires: python%{python3_pkgversion}-mock BuildRequires: python%{python3_pkgversion}-mock
%if %{with python_tests}
BuildRequires: python%{python3_pkgversion}-pyfakefs BuildRequires: python%{python3_pkgversion}-pyfakefs
%endif
%if %{undefined __pythondist_requires} %if %{undefined __pythondist_requires}
Requires: python%{python3_pkgversion}-cryptography Requires: python%{python3_pkgversion}-cryptography
Requires: python%{python3_pkgversion}-six Requires: python%{python3_pkgversion}-six
@ -87,7 +89,9 @@ BuildRequires: python%{python3_other_pkgversion}-cryptography
BuildRequires: python%{python3_other_pkgversion}-six BuildRequires: python%{python3_other_pkgversion}-six
# For tests # For tests
BuildRequires: python%{python3_other_pkgversion}-mock BuildRequires: python%{python3_other_pkgversion}-mock
%if %{with python_tests}
BuildRequires: python%{python3_other_pkgversion}-pyfakefs BuildRequires: python%{python3_other_pkgversion}-pyfakefs
%endif
%if %{undefined __pythondist_requires} %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
@ -122,7 +126,7 @@ Requires: python%{python3_other_pkgversion}-six
%check %check
%if %{with python2} && %{with python2_tests} %if %{with python2} && %{with python_tests}
%{__python2} setup.py test %{__python2} setup.py test
%endif %endif
%{__python3} setup.py test %{__python3} setup.py test
@ -146,7 +150,7 @@ Requires: python%{python3_other_pkgversion}-six
%{python3_sitelib}/%{srcname}/ %{python3_sitelib}/%{srcname}/
%if 0%{?python3_other_pkgversion} %if 0%{?python3_other_pkgversion}
%files -n python%{python3_pkgversion}-%{srcname} %files -n python%{python3_other_pkgversion}-%{srcname}
%license COPYING* %license COPYING*
%doc NEWS README.adoc examples %doc NEWS README.adoc examples
%{python3_other_sitelib}/%{srcname}-*.egg-info/ %{python3_other_sitelib}/%{srcname}-*.egg-info/
@ -155,6 +159,9 @@ Requires: python%{python3_other_pkgversion}-six
%changelog %changelog
* Thu Mar 14 2019 Orion Poplawski <orion@nwra.com> - 0.5.0-4
- Fix for python3 on EPEL
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-3 * Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

Loading…
Cancel
Save