Add bcond for --without optimizations
This commit is contained in:
parent
11efc8ea59
commit
a7a170bba6
17
python3.spec
17
python3.spec
@ -11,7 +11,7 @@ Summary: Version 3 of the Python programming language aka Python 3000
|
|||||||
%global pyshortver 36
|
%global pyshortver 36
|
||||||
|
|
||||||
Version: %{pybasever}.2
|
Version: %{pybasever}.2
|
||||||
Release: 10%{?dist}
|
Release: 11%{?dist}
|
||||||
License: Python
|
License: Python
|
||||||
|
|
||||||
|
|
||||||
@ -22,6 +22,12 @@ License: Python
|
|||||||
# Note that the bcond macros are named for the CLI option they create.
|
# Note that the bcond macros are named for the CLI option they create.
|
||||||
# "%%bcond_without" means "ENABLE by default and create a --without option"
|
# "%%bcond_without" means "ENABLE by default and create a --without option"
|
||||||
|
|
||||||
|
%ifarch %{ix86} x86_64
|
||||||
|
%bcond_without optimizations
|
||||||
|
%else
|
||||||
|
%bcond_with optimizations
|
||||||
|
%endif
|
||||||
|
|
||||||
%bcond_without tests
|
%bcond_without tests
|
||||||
%bcond_without rewheel
|
%bcond_without rewheel
|
||||||
%bcond_without debug_build
|
%bcond_without debug_build
|
||||||
@ -832,11 +838,11 @@ BuildPython debug \
|
|||||||
BuildPython optimized \
|
BuildPython optimized \
|
||||||
python \
|
python \
|
||||||
python%{pybasever} \
|
python%{pybasever} \
|
||||||
%ifarch %{ix86} x86_64
|
%if %{with optimizations}
|
||||||
"--without-ensurepip --enable-optimizations" \
|
"--without-ensurepip --enable-optimizations" \
|
||||||
%else
|
%else
|
||||||
"--without-ensurepip" \
|
"--without-ensurepip --disable-optimizations" \
|
||||||
%endif
|
%endif # with optimizations
|
||||||
true
|
true
|
||||||
|
|
||||||
# ======================================================
|
# ======================================================
|
||||||
@ -1683,6 +1689,9 @@ fi
|
|||||||
# ======================================================
|
# ======================================================
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Aug 21 2017 Petr Viktorin <pviktori@redhat.com> - 3.6.2-11
|
||||||
|
- Add bcond for --without optimizations
|
||||||
|
|
||||||
* Mon Aug 21 2017 Miro Hrončok <mhroncok@redhat.com> - 3.6.2-10
|
* Mon Aug 21 2017 Miro Hrončok <mhroncok@redhat.com> - 3.6.2-10
|
||||||
- Remove system-python, see https://fedoraproject.org/wiki/Changes/Platform_Python_Stack
|
- Remove system-python, see https://fedoraproject.org/wiki/Changes/Platform_Python_Stack
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user