ffesti pushed to redhat-rpm-config (master). "- Add %py_auto_byte_compile macro controlling Python bytecompilation (..more)"
notifications at fedoraproject.org
notifications at fedoraproject.org
Tue May 19 11:29:38 UTC 2015
From db967d3586f6ab9f905cdc1f8d3a5b7451d0cc01 Mon Sep 17 00:00:00 2001
From: Florian Festi <ffesti at redhat.com>
Date: Tue, 19 May 2015 13:28:55 +0200
Subject: - Add %py_auto_byte_compile macro controlling Python bytecompilation
(#976651)
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}
@@ -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 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 <ffesti at redhat.com> 31-1
+- Add %py_auto_byte_compile macro controlling Python bytecompilation
+(#976651)
+
* Wed Apr 29 2015 Florian Festi <ffesti at redhat.com> 30-1
- Fix libsymlink.attr for new magic pattern for symlinks (#1207945)
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/redhat-rpm-config.git/commit/?h=master&id=db967d3586f6ab9f905cdc1f8d3a5b7451d0cc01
More information about the scm-commits
mailing list