X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=contrib%2Fredhat%2Fcollectd.spec;h=a3cbe0f90d024a6a5c9ed2f7935685ae3a11563c;hb=f5375d83d9423c0124386eeca9ca3733c28d600d;hp=9153b0af88f0ea9f2faf7207986c679efc5226c2;hpb=5301727c225eb945080165e92d55fbf8e7c85205;p=collectd.git diff --git a/contrib/redhat/collectd.spec b/contrib/redhat/collectd.spec index 9153b0af..a3cbe0f9 100644 --- a/contrib/redhat/collectd.spec +++ b/contrib/redhat/collectd.spec @@ -60,6 +60,7 @@ %{?el7:%global _has_varnish4 1} %{?el7:%global _has_iproute 1} %{?el7:%global _has_libmodbus 1} +%{?el7:%global _has_xmms 1} # plugins enabled by default %define with_aggregation 0%{!?_without_aggregation:1} @@ -155,6 +156,7 @@ %define with_write_graphite 0%{!?_without_write_graphite:1} %define with_write_http 0%{!?_without_write_http:1} %define with_write_riemann 0%{!?_without_write_riemann:1} +%define with_xmms 0%{!?_without_xmms:0%{!?_has_xmms:1}} # Plugins not built by default because of dependencies on libraries not # available in RHEL or EPEL: @@ -189,8 +191,6 @@ %define with_write_mongodb 0%{!?_without_write_mongodb:0} # plugin write_redis disabled, requires credis %define with_write_redis 0%{!?_without_write_redis:0} -# plugin xmms disabled, requires xmms -%define with_xmms 0%{!?_without_xmms:0} # plugin zfs_arc disabled, requires FreeBSD/Solaris %define with_zfs_arc 0%{!?_without_zfs_arc:0} @@ -676,6 +676,16 @@ BuildRequires: protobuf-c-devel The riemann plugin submits values to Riemann, an event stream processor. %endif +%if %{with_xmms} +%package xmms +Summary: XMMS plugin for collectd +Group: System Environment/Daemons +Requires: %{name}%{?_isa} = %{version}-%{release} +BuildRequires: xmms-devel +%description xmms +The xmms plugin collects information from the XMMS music player. +%endif + %package collection3 Summary: Web-based viewer for collectd Group: System Environment/Daemons @@ -2026,6 +2036,11 @@ fi %{_libdir}/%{name}/write_riemann.so %endif +%if %{with_xmms} +%files xmms +%{_libdir}/%{name}/xmms.so +%endif + %files collection3 %{_localstatedir}/www/collection3 %{_sysconfdir}/httpd/conf.d/collection3.conf