From: Marc Fournier Date: Mon, 8 Aug 2016 10:27:02 +0000 (+0200) Subject: collectd.spec: specify PYTHON_CONFIG on EL5 X-Git-Tag: collectd-5.6.0~78 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=db95e86b9674d7fcd971716430a19d5358b2f3c7;p=collectd.git collectd.spec: specify PYTHON_CONFIG on EL5 Since 4ad7200, python-config becomes mandatory. We have to explicitly specify it's path for EL5 as we're using a non-default python installation on this distro. --- diff --git a/contrib/redhat/collectd.spec b/contrib/redhat/collectd.spec index 9b730bb5..cc4b8ee8 100644 --- a/contrib/redhat/collectd.spec +++ b/contrib/redhat/collectd.spec @@ -1395,6 +1395,7 @@ Collectd utilities %if %{with_python} %if 0%{?rhel} && 0%{?rhel} < 6 %define _with_python --enable-python --with-python=%{_bindir}/python2.6 +%define _python_config PYTHON_CONFIG=%{_bindir}/python2.6-config %else %define _with_python --enable-python %endif @@ -1672,7 +1673,8 @@ Collectd utilities %define _with_zookeeper --disable-zookeeper %endif -%configure CFLAGS="%{optflags} -DLT_LAZY_OR_NOW=\"RTLD_LAZY|RTLD_GLOBAL\"" \ +%configure CFLAGS="%{optflags} {?_python_config} \ + -DLT_LAZY_OR_NOW=\"RTLD_LAZY|RTLD_GLOBAL\"" \ --disable-static \ --without-included-ltdl \ --enable-all-plugins=yes \