From 5941d2af7fabbec1245fc4215c4643bc19c516b8 Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Sep 12 2016 12:45:49 +0000 Subject: Remove unused configure flags and update %py_byte_compile macro --- diff --git a/macros.pybytecompile3.5 b/macros.pybytecompile3.5 index a8b79b2..96d1826 100644 --- a/macros.pybytecompile3.5 +++ b/macros.pybytecompile3.5 @@ -6,7 +6,5 @@ %py_byte_compile()\ python_binary="%1"\ bytecode_compilation_path="%2"\ -find $bytecode_compilation_path -type f -a -name "*.py" -print0 | xargs -0 $python_binary -c 'import py_compile, sys; [py_compile.compile(f, dfile=f.partition("$RPM_BUILD_ROOT")[2]) for f in sys.argv[1:]]' || :\ -\ -find $bytecode_compilation_path -type f -a -name "*.py" -print0 | xargs -0 $python_binary -O -c 'import py_compile, sys; [py_compile.compile(f, dfile=f.partition("$RPM_BUILD_ROOT")[2]) for f in sys.argv[1:]]' || :\ +find $bytecode_compilation_path -type f -a -name "*.py" -print0 | xargs -0 $python_binary -O -c 'import py_compile, sys; [py_compile.compile(f, dfile=f.partition("$RPM_BUILD_ROOT")[2]], optimize=opt) for opt in range(2) for f in sys.argv[1:]]' || :\ %{nil} diff --git a/python3.spec b/python3.spec index c88d1a0..5e106aa 100644 --- a/python3.spec +++ b/python3.spec @@ -112,7 +112,7 @@ Summary: Version 3 of the Python programming language aka Python 3000 Name: python3 Version: %{pybasever}.2 -Release: 2%{?dist} +Release: 3%{?dist} License: Python Group: Development/Languages @@ -735,9 +735,9 @@ BuildPython debug \ python-debug \ python%{pybasever}-debug \ %ifarch %{ix86} x86_64 ppc %{power64} - "--with-pydebug --with-tsc --with-count-allocs --with-call-profile --without-ensurepip" \ + "--with-pydebug --with-tsc --without-ensurepip" \ %else - "--with-pydebug --with-count-allocs --with-call-profile --without-ensurepip" \ + "--with-pydebug --without-ensurepip" \ %endif false \ -O0 @@ -1547,6 +1547,10 @@ rm -fr %{buildroot} # ====================================================== %changelog +* Mon Sep 12 2016 Charalampos Stratakis - 3.5.2-3 +- Update %py_byte_compile macro +- Remove unused configure flags (rhbz#1374357) + * Fri Sep 09 2016 Tomas Orsava - 3.5.2-2 - Updated .pyc 'bytecompilation with the newly installed interpreter' to also recompile optimized .pyc files