From 90421fe102b63d1d700e18688718b80a734153e6 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: May 19 2015 13:31:41 +0000 Subject: - Add %py_auto_byte_compile macro controlling Python bytecompilation (#1222941) --- diff --git a/macros b/macros index 6d855fa..4d2dbf3 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} @@ -113,6 +113,10 @@ %_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 a57a923..d3835ae 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: 27 +Version: 28 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 28-1 +- Add %py_auto_byte_compile macro controlling Python bytecompilation +(#1222941) + * Wed Dec 10 2014 Dan HorĂ¡k - 27-1 - Explicitly set -mcpu/-mtune for ppc64p7 and ppc64le to override rpm defaults