From 2b929800dbb01e085840f5aba965663ed47cffd26ef29972c6edbb88dd81c0ad Mon Sep 17 00:00:00 2001 From: Yan Gao Date: Wed, 11 Sep 2013 10:22:32 +0000 Subject: [PATCH] Generating rpm macros with commands doesn't seem to work now. Replace them OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/pacemaker?expand=0&rev=57 --- pacemaker.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pacemaker.spec b/pacemaker.spec index 546c071..3383760 100644 --- a/pacemaker.spec +++ b/pacemaker.spec @@ -28,8 +28,10 @@ # Needed so that the -devel package is multilib compliant %global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g') -%global rawhide %(test ! -e /etc/yum.repos.d/fedora-rawhide.repo; echo $?) -%global cs_version %(pkg-config corosync --modversion | awk -F . '{print $1}') +#%global rawhide %(test ! -e /etc/yum.repos.d/fedora-rawhide.repo; echo $?) +%global rawhide 0 +#%global cs_version %(pkg-config corosync --modversion | awk -F . '{print $1}') +%global cs_version 2 %global py_site %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))") # Conditionals @@ -736,7 +738,8 @@ fi %files cts %defattr(-,root,root) -%{py_site}/cts +#%{py_site}/cts +%{py_sitedir}/cts %{_datadir}/pacemaker/tests/cts %{_libexecdir}/pacemaker/lrmd_test %doc COPYING.LIB