From 30d5ea9fca34f12b9fe59c72ff041e11dac02e1b Mon Sep 17 00:00:00 2001 From: Jan Pokorný Date: Oct 13 2015 23:54:20 +0000 Subject: 1.1.13-2.rev13: simplify python bytecompile disabling Signed-off-by: Jan Pokorný --- diff --git a/pacemaker.spec b/pacemaker.spec index c738b2a..4370237 100644 --- a/pacemaker.spec +++ b/pacemaker.spec @@ -2,14 +2,19 @@ %global uname hacluster %global pcmk_docdir %{_docdir}/%{name} -%global specversion 2.rev12 +%global specversion 2.rev13 %global commit 6052cd16c2f455809f8088af76ce86483bf98353 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global github_owner ClusterLabs # Turn off the auto compilation of python files not in the site-packages directory # Needed so that the -devel package is multilib compliant +# py_auto_byte_compile macro: https://bugzilla.redhat.com/574437 +%if %{defined py_auto_byte_compile} +%undefine py_auto_byte_compile +%else %global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g') +%endif %global rawhide %(test ! -e /etc/yum.repos.d/fedora-rawhide.repo; echo $?) %global cs_version %(pkg-config corosync --modversion | awk -F . '{print $1}')