diff --git a/future.spec b/future.spec index 9b5af88..70dbbb6 100644 --- a/future.spec +++ b/future.spec @@ -2,14 +2,6 @@ %global with_python3 1 %endif -%if 0%{?rhel} && 0%{?rhel} < 7 -%{!?__python2: %global __python2 /usr/bin/python2} -%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} -%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} -%global python2_version 2.6 -%global with_python2 1 -%endif - %if 0%{?rhel} && 0%{?rhel} == 7 %global with_python3 1 %global with_python2 1 @@ -33,7 +25,7 @@ clean Py3-style codebase, module by module. Name: future Summary: Easy, clean, reliable Python 2/3 compatibility Version: 0.18.0 -Release: 1%{?dist} +Release: 2%{?dist} License: MIT URL: http://python-future.org/ Source0: https://github.com/PythonCharmers/python-%{name}/archive/%{version}/%{name}-%{version}.tar.gz @@ -202,7 +194,7 @@ popd %if 0%{?with_python3} pushd python3 PYTHONPATH=$PWD/build/lib py.test-%{python3_version} \ -%if 0%{?fedora} > 31 +%if 0%{?python3_version_nodots} > 37 -k "not test_pow and not test_urllib2" %endif popd @@ -278,6 +270,9 @@ popd %changelog +* Sat Oct 12 2019 Antonio Trande - 0.18.0-2 +- Use python3_version_nodots macro + * Sat Oct 12 2019 Antonio Trande - 0.18.0-1 - Release 0.18.0