aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJani Välimaa <wally@mageia.org>2018-08-05 19:33:30 +0300
committerJani Välimaa <wally@mageia.org>2018-08-05 19:33:30 +0300
commitd5db07694da6e145654bd566d4359695379e53c9 (patch)
treee26ba3d8f678da0cab3317254e4e7ef89ec34d59
parentaf9d0c4168033f3556f1c8116ecde4dd672a98e4 (diff)
downloadrpm-setup-d5db07694da6e145654bd566d4359695379e53c9.tar
rpm-setup-d5db07694da6e145654bd566d4359695379e53c9.tar.gz
rpm-setup-d5db07694da6e145654bd566d4359695379e53c9.tar.bz2
rpm-setup-d5db07694da6e145654bd566d4359695379e53c9.tar.xz
rpm-setup-d5db07694da6e145654bd566d4359695379e53c9.zip
build.macros: fix python bytecompile in __os_instal_post as __brp_python_bytecompile is now defined by rpm upstream
-rw-r--r--NEWS2
-rw-r--r--build.macros.in2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 406a5de..b1654ad 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- fix python bytecompile in __os_instal_post as __brp_python_bytecompile is now defined by rpm upstream
+
Version 2.28 - 26 May 2018, by Jani Välimaa
- add -fasynchronous-unwind-tables to default optflags for x86_64 and aarch64 (%ix86 has it already)
diff --git a/build.macros.in b/build.macros.in
index 3dfaea8..3b82f77 100644
--- a/build.macros.in
+++ b/build.macros.in
@@ -289,7 +289,7 @@ fi
%__os_install_post \
%{?__spec_helper_post}%{?!__spec_helper_post:/usr/share/spec-helper/spec-helper} \
- %{!?__brp_python_bytecompile:[ %{?_python_bytecompile_build} -eq 1 ] && /usr/lib/rpm/brp-python-bytecompile %{__python} %{?_python_bytecompile_errors_terminate_build}} \
+ %{?__brp_python_bytecompile}
%{!?__brp_python_hardlink:/usr/lib/rpm/brp-python-hardlink} \
%{nil}