From db967d3586f6ab9f905cdc1f8d3a5b7451d0cc01 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Tue, 19 May 2015 13:28:55 +0200 Subject: [PATCH] - Add %py_auto_byte_compile macro controlling Python bytecompilation (#976651) --- macros | 6 +++++- redhat-rpm-config.spec | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/macros b/macros index a197916..49f3ba4 100644 --- a/macros +++ b/macros @@ -91,7 +91,7 @@ /usr/lib/rpm/brp-strip-comment-note %{__strip} %{__objdump} \ } \ /usr/lib/rpm/brp-strip-static-archive %{__strip} \ - /usr/lib/rpm/brp-python-bytecompile %{__python} %{?_python_bytecompile_errors_terminate_build} \ + %{?py_auto_byte_compile:/usr/lib/rpm/brp-python-bytecompile %{__python} %{?_python_bytecompile_errors_terminate_build}} \ /usr/lib/rpm/brp-python-hardlink \ %{!?__jar_repack:/usr/lib/rpm/redhat/brp-java-repack-jars} \ %{nil} @@ -112,6 +112,10 @@ # Should missing buildids terminate a build? %_missing_build_ids_terminate_build 1 +# +## Automatically compile python files +%py_auto_byte_compile 1 + # ## Should python bytecompilation errors terminate a build? %_python_bytecompile_errors_terminate_build 1 diff --git a/redhat-rpm-config.spec b/redhat-rpm-config.spec index c904bbc..0884151 100644 --- a/redhat-rpm-config.spec +++ b/redhat-rpm-config.spec @@ -6,7 +6,7 @@ Summary: Red Hat specific rpm configuration files Name: redhat-rpm-config -Version: 30 +Version: 31 Release: 1%{?dist} # No version specified. License: GPL+ @@ -135,6 +135,10 @@ install -p -m 755 -t %{buildroot}%{_rpmconfigdir} kmod.prov %{_rpmconfigdir}/macros.d/macros.kmp %changelog +* Tue May 19 2015 Florian Festi 31-1 +- Add %py_auto_byte_compile macro controlling Python bytecompilation +(#976651) + * Wed Apr 29 2015 Florian Festi 30-1 - Fix libsymlink.attr for new magic pattern for symlinks (#1207945)