Switch __python for __python2 macro.
This commit is contained in:
parent
3edecc0289
commit
9ad2da32cd
11
pytz.spec
11
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 <mcepl@redhat.com> - 2017.2-7
|
||||
- Switch __python for __python2 macro.
|
||||
|
||||
* Sat Mar 17 2018 Matěj Cepl <mcepl@redhat.com> - 2017.2-6
|
||||
- remove test_tzinfo.PicklingTest.testRoundtrip which fails with our
|
||||
system-wide timezone database (#1497572)
|
||||
|
Loading…
Reference in New Issue
Block a user