summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d020591)
raw | patch | inline | side by side (parent: d020591)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Mon, 8 Aug 2016 10:27:02 +0000 (12:27 +0200) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Mon, 8 Aug 2016 10:27:02 +0000 (12:27 +0200) |
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.
specify it's path for EL5 as we're using a non-default python
installation on this distro.
contrib/redhat/collectd.spec | patch | blob | history |
index 9b730bb5c481b299ed55776fdef0bbb7b74ca3d4..cc4b8ee8daed01f56902adc8c56ef7716432fbeb 100644 (file)
%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
%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 \