From ef0529a8c3c39bd7f096a514e113f59daf55e9b2 Mon Sep 17 00:00:00 2001 From: Tomas Orsava Date: Tue, 21 Mar 2017 11:51:35 +0100 Subject: [PATCH] Fix syntax error in %py_byte_compile macro (rhbz#1433569) --- macros.pybytecompile3.5 | 2 +- python3.spec | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/macros.pybytecompile3.5 b/macros.pybytecompile3.5 index 96d1826..3968c6e 100644 --- a/macros.pybytecompile3.5 +++ b/macros.pybytecompile3.5 @@ -6,5 +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 -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:]]' || :\ +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 1ad18d0..469599f 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}.3 -Release: 3%{?dist} +Release: 4%{?dist} License: Python Group: Development/Languages @@ -1540,6 +1540,9 @@ rm -fr %{buildroot} # ====================================================== %changelog +* Tue Mar 21 2017 Tomas Orsava - 3.5.3-4 +- Fix syntax error in %%py_byte_compile macro (rhbz#1433569) + * Wed Mar 8 2017 Iryna Shcherbina - 3.5.3-3 - Replace patch 259 with a backported upstream patch