commit 1e18d587e43659d723adde41a1d21f5da91e5cbf
Author: Arkadiusz Miśkiewicz <[email protected]>
Date:   Thu Jun 28 20:31:20 2018 +0200

    - up to 3.6.6

 python3-ac_fixes.patch |  7 +++----
 python3.spec           | 15 ++++++++++-----
 2 files changed, 13 insertions(+), 9 deletions(-)
---
diff --git a/python3.spec b/python3.spec
index 3da5ed6..3796a9b 100644
--- a/python3.spec
+++ b/python3.spec
@@ -5,6 +5,7 @@
 %bcond_without tkinter                 # disables tkinter module building
 %bcond_without tests                   # disables Python testing
 %bcond_with    verbose_tests           # runs tests in verbose mode
+%bcond_with    optimizations           # optimitations
 #
 # tests which will not work on 64-bit platforms
 %define                no64bit_tests   test_audioop test_rgbimg test_imageop
@@ -38,13 +39,13 @@ Summary(ru.UTF-8):  Язык программирования очень высо
 Summary(tr.UTF-8):     X arayüzlü, yüksek düzeyli, kabuk yorumlayıcı dili
 Summary(uk.UTF-8):     Мова програмування дуже високого рівня з X-інтерфейсом
 Name:          python3
-Version:       %{py_ver}.5
-Release:       3
+Version:       %{py_ver}.6
+Release:       1
 Epoch:         1
 License:       PSF
 Group:         Development/Languages/Python
 Source0:       
https://www.python.org/ftp/python/%{version}/Python-%{version}.tar.xz
-# Source0-md5: 9f49654a4d6f733ff3284ab9d227e9fd
+# Source0-md5: c3f30a0aff425dda77d19e02f420d6ba
 Source1:       pyconfig.h.in
 Patch0:                %{name}-pythonpath.patch
 Patch1:                %{name}-ac_fixes.patch
@@ -58,7 +59,7 @@ Patch9:               %{name}-tests_with_pythonpath.patch
 Patch10:       %{name}-bdist_rpm.patch
 Patch11:       %{name}-installcompile.patch
 Patch12:                
https://bugs.python.org/file21896/nonexistent_user.patch
-# Patch12-md5: db706fbe6de467c6e4c97c675eddf29a
+# Patch12-md5: acfdbe681de2e1158c47d359528d22be
 URL:           https://www.python.org/
 BuildRequires: autoconf >= 2.65
 BuildRequires: automake
@@ -531,7 +532,11 @@ fi
        --with-system-expat \
        --with-system-ffi \
        %{?with_system_mpdecimal:--with-system-libmpdec} \
-       --with-threads
+       --with-threads \
+%if %{with optimizations}
+       --enable-optimizations \
+       --with-lto
+%endif
 
 %{__make} 2>&1 | awk '
 BEGIN { fail = 0; logmsg = ""; }
diff --git a/python3-ac_fixes.patch b/python3-ac_fixes.patch
index b005cdd..3568002 100644
--- a/python3-ac_fixes.patch
+++ b/python3-ac_fixes.patch
@@ -1,6 +1,6 @@
 --- Python-3.6.2/configure.ac~ 2017-07-08 05:33:27.000000000 +0200
 +++ Python-3.6.2/configure.ac  2017-08-07 10:28:44.498951134 +0200
-@@ -1494,26 +1494,7 @@ then
+@@ -1491,24 +1491,7 @@ then
              CFLAGS_ALIASING="-fno-strict-aliasing"
          fi
  
@@ -22,9 +22,8 @@
 -          OPT="-O3 -Wall"
 -          ;;
 -      esac
--
--      OPT="$OPT $STRICT_PROTO"
-+      OPT="$OPT $CPPFLAGS $CFLAGS $STRICT_PROTO"
++      OPT="$OPT $CPPFLAGS $CFLAGS"
  
        case $ac_sys_system in
            SCO_SV*) OPT="$OPT -m486 -DSCO5"
+
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3.git/commitdiff/1e18d587e43659d723adde41a1d21f5da91e5cbf

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to