%define with_procevent 0%{!?_without_procevent:1}
%define with_protocols 0%{!?_without_protocols:1}
%define with_python 0%{!?_without_python:1}
+%define with_ras 0%{!?_without_ras:1}
%define with_redis 0%{!?_without_redis:1}
%define with_rrdcached 0%{!?_without_rrdcached:1}
%define with_rrdtool 0%{!?_without_rrdtool:1}
application programming interface (API) to Python-scripts.
%endif
+%if %{with_ras}
+%package ras
+Summary: RAS plugin for collectd
+Group: System Environment/Daemons
+Requires: %{name}%{?_isa} = %{version}-%{release}
+BuildRequires: sqlite-devel
+%description ras
+The RAS plugin gathers and counts errors provided by RASDaemon.
+%endif
+
%if %{with_redis}
%package redis
Summary: Redis plugin for collectd
%define _with_redfish --disable-redfish
%endif
+%if %{with_ras}
+%define _with_ras --enable-ras
+%else
+%define _with_ras --disable-ras
+%endif
+
%if %{with_redis}
%define _with_redis --enable-redis
%else
%{?_with_procevent} \
%{?_with_protocols} \
%{?_with_python} \
+ %{?_with_ras} \
%{?_with_redfish} \
%{?_with_redis} \
%{?_with_routeros} \
%{_libdir}/%{name}/python.so
%endif
+%if %{with_ras}
+%files ras
+%{_libdir}/%{name}/ras.so
+%endif
+
%if %{with_redis}
%files redis
%{_libdir}/%{name}/redis.so