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
This commit is contained in:
Yan Gao 2013-09-11 10:22:32 +00:00 committed by Git OBS Bridge
parent 0df6f39bce
commit 2b929800db

View File

@ -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