Cleanup spec file conditionals

This commit is contained in:
Troy Dawson 2017-09-27 12:43:53 -07:00
parent 9140438e71
commit 4f14c8b06c

View File

@ -1,4 +1,4 @@
%if 0%{?fedora}
%if 0%{?fedora} || 0%{?rhel} >= 8
%global with_python3 1
%else
%{!?python2_sitelib: %global python2_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
@ -6,7 +6,7 @@
Name: pytz
Version: 2017.2
Release: 3%{?dist}
Release: 4%{?dist}
Summary: World Timezone Definitions for Python
Group: Development/Languages
@ -106,6 +106,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v
%changelog
* Wed Sep 27 2017 Troy Dawson <tdawson@redhat.com> - 2017.2-4
- Cleanup spec file conditionals
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2017.2-3
- Python 2 binary package renamed to python2-pytz
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3