61 |
Summary: An interpreted, interactive object-oriented programming language |
Summary: An interpreted, interactive object-oriented programming language |
62 |
Name: python3 |
Name: python3 |
63 |
Version: 3.6.7 |
Version: 3.6.7 |
64 |
Release: %mkrel 2 |
Release: %mkrel 3 |
65 |
License: Modified CNRI Open Source License |
License: Modified CNRI Open Source License |
66 |
Group: Development/Python |
Group: Development/Python |
67 |
|
|
344 |
%build |
%build |
345 |
rm -f Modules/Setup.local |
rm -f Modules/Setup.local |
346 |
|
|
347 |
export OPT="%{optflags} -g" |
# We need -fwrapv |
348 |
|
# https://bugs.python.org/issue34096 |
349 |
|
export OPT="%{optflags} -D_GNU_SOURCE -fPIC -fwrapv" |
350 |
|
export CFLAGS="%{optflags} -D_GNU_SOURCE -fPIC -fwrapv" |
351 |
|
export CXXFLAGS="%{optflags} -D_GNU_SOURCE -fPIC -fwrapv" |
352 |
|
|
353 |
# to fix curses module build |
# to fix curses module build |
354 |
# https://bugs.mageia.org/show_bug.cgi?id=6702 |
# https://bugs.mageia.org/show_bug.cgi?id=5524 |
355 |
export CFLAGS="%{optflags} -I/usr/include/ncursesw" |
export CPPFLAGS="-I/usr/include/ncursesw" |
|
export CPPFLAGS="%{optflags} -I/usr/include/ncursesw" |
|
356 |
|
|
357 |
autoreconf -vfi |
autoreconf -vfi |
358 |
# Remove -Wl,--no-undefined in accordance with MGA #9395 : |
# Remove -Wl,--no-undefined in accordance with MGA #9395 : |