X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=contrib%2Fredhat%2Fcollectd.spec;h=355c9e3d9a39f6c3e7772445c08e4dc27760d0b1;hb=4d27bf123a30c0bd65932f1bdb5c0a907432c497;hp=cc4b8ee8daed01f56902adc8c56ef7716432fbeb;hpb=db95e86b9674d7fcd971716430a19d5358b2f3c7;p=collectd.git diff --git a/contrib/redhat/collectd.spec b/contrib/redhat/collectd.spec index cc4b8ee8..355c9e3d 100644 --- a/contrib/redhat/collectd.spec +++ b/contrib/redhat/collectd.spec @@ -71,6 +71,7 @@ %define with_filecount 0%{!?_without_filecount:1} %define with_fscache 0%{!?_without_fscache:1} %define with_gmond 0%{!?_without_gmond:1} +%define with_gps 0%{!?_without_gps:1} %define with_hddtemp 0%{!?_without_hddtemp:1} %define with_interface 0%{!?_without_interface:1} %define with_ipc 0%{!?_without_ipc:1} @@ -216,6 +217,7 @@ # Plugins not buildable on RHEL < 7 %if 0%{?rhel} && 0%{?rhel} < 7 %define with_cpusleep 0 +%define with_gps 0 %define with_mqtt 0 %define with_rrdcached 0 %define with_xmms 0 @@ -418,6 +420,16 @@ The gmond plugin subscribes to a Multicast group to receive data from gmond, the client daemon of the Ganglia project. %endif +%if %{with_gps} +%package gps +Summary: GPS plugin for collectd +Group: System Environment/Daemons +Requires: %{name}%{?_isa} = %{version}-%{release} +BuildRequires: gpsd-devel +%description gps +This plugin monitor gps related data through gpsd. +%endif + %if %{with_grpc} %package grpc Summary: GRPC plugin for collectd @@ -1092,6 +1104,12 @@ Collectd utilities %define _with_gmond --disable-gmond %endif +%if %{with_gps} +%define _with_gps --enable-gps +%else +%define _with_gps --disable-gps +%endif + %if %{with_grpc} %define _with_grpc --enable-grpc %else @@ -1395,7 +1413,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 +%define _python_config PYTHON_CONFIG="%{_bindir}/python2.6-config" %else %define _with_python --enable-python %endif @@ -1673,8 +1691,8 @@ Collectd utilities %define _with_zookeeper --disable-zookeeper %endif -%configure CFLAGS="%{optflags} {?_python_config} \ - -DLT_LAZY_OR_NOW=\"RTLD_LAZY|RTLD_GLOBAL\"" \ +%configure CFLAGS="%{optflags} -DLT_LAZY_OR_NOW=\"RTLD_LAZY|RTLD_GLOBAL\"" \ + %{?_python_config} \ --disable-static \ --without-included-ltdl \ --enable-all-plugins=yes \ @@ -1723,6 +1741,7 @@ Collectd utilities %{?_with_filecount} \ %{?_with_fscache} \ %{?_with_gmond} \ + %{?_with_gps} \ %{?_with_grpc} \ %{?_with_hddtemp} \ %{?_with_interface} \ @@ -2247,6 +2266,11 @@ fi %{_libdir}/%{name}/gmond.so %endif +%if %{with_gps} +%files gps +%{_libdir}/%{name}/gps.so +%endif + %if %{with_grpc} %files grpc %{_libdir}/%{name}/grpc.so