X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=contrib%2Fredhat%2Fcollectd.spec;h=3a4afdc62e55a359072b5bd2d9d46d2048063398;hb=68434b89d66c54d1b1ba3812163e6208c1be2e8c;hp=9b730bb5c481b299ed55776fdef0bbb7b74ca3d4;hpb=d020591db2c1157ed065699a1b004db0dfdee905;p=collectd.git diff --git a/contrib/redhat/collectd.spec b/contrib/redhat/collectd.spec index 9b730bb5..3a4afdc6 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 \