From 9ad2da32cd6e5180975a9bd46fedc2aa6e01281f Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Mar 17 2018 21:29:16 +0000 Subject: Switch __python for __python2 macro. --- diff --git a/pytz.spec b/pytz.spec index a2c3f6a..79d31af 100644 --- a/pytz.spec +++ b/pytz.spec @@ -1,12 +1,12 @@ %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()")} +%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %endif Name: pytz Version: 2017.2 -Release: 6%{?dist} +Release: 7%{?dist} Summary: World Timezone Definitions for Python Group: Development/Languages @@ -69,14 +69,14 @@ Almost all (over 540) of the Olson timezones are supported. %build -%{__python} setup.py build +%{__python2} setup.py build %if 0%{?with_python3} %{__python3} setup.py build %endif # with_python3 %install -%{__python} setup.py install --skip-build --root %{buildroot} +%{__python2} setup.py install --skip-build --root %{buildroot} chmod +x %{buildroot}%{python2_sitelib}/pytz/*.py rm -r %{buildroot}%{python2_sitelib}/pytz/zoneinfo @@ -109,6 +109,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v %changelog +* Sat Mar 17 2018 Matěj Cepl - 2017.2-7 +- Switch __python for __python2 macro. + * Sat Mar 17 2018 Matěj Cepl - 2017.2-6 - remove test_tzinfo.PicklingTest.testRoundtrip which fails with our system-wide timezone database (#1497572)