Switch __python for __python2 macro.

This commit is contained in:
Matěj Cepl 2018-03-17 22:29:16 +01:00
parent 3edecc0289
commit 9ad2da32cd

View File

@ -1,12 +1,12 @@
%if 0%{?fedora} || 0%{?rhel} >= 8 %if 0%{?fedora} || 0%{?rhel} >= 8
%global with_python3 1 %global with_python3 1
%else %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 %endif
Name: pytz Name: pytz
Version: 2017.2 Version: 2017.2
Release: 6%{?dist} Release: 7%{?dist}
Summary: World Timezone Definitions for Python Summary: World Timezone Definitions for Python
Group: Development/Languages Group: Development/Languages
@ -69,14 +69,14 @@ Almost all (over 540) of the Olson timezones are supported.
%build %build
%{__python} setup.py build %{__python2} setup.py build
%if 0%{?with_python3} %if 0%{?with_python3}
%{__python3} setup.py build %{__python3} setup.py build
%endif # with_python3 %endif # with_python3
%install %install
%{__python} setup.py install --skip-build --root %{buildroot} %{__python2} setup.py install --skip-build --root %{buildroot}
chmod +x %{buildroot}%{python2_sitelib}/pytz/*.py chmod +x %{buildroot}%{python2_sitelib}/pytz/*.py
rm -r %{buildroot}%{python2_sitelib}/pytz/zoneinfo rm -r %{buildroot}%{python2_sitelib}/pytz/zoneinfo
@ -109,6 +109,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v
%changelog %changelog
* Sat Mar 17 2018 Matěj Cepl <mcepl@redhat.com> - 2017.2-7
- Switch __python for __python2 macro.
* Sat Mar 17 2018 Matěj Cepl <mcepl@redhat.com> - 2017.2-6 * Sat Mar 17 2018 Matěj Cepl <mcepl@redhat.com> - 2017.2-6
- remove test_tzinfo.PicklingTest.testRoundtrip which fails with our - remove test_tzinfo.PicklingTest.testRoundtrip which fails with our
system-wide timezone database (#1497572) system-wide timezone database (#1497572)