+#
+# Conditional build:
+%bcond_without cap # Enable support for the Linux Capabilities (default: disabled)
+
Summary: A backend data gatherer for Cacti
Summary(pl.UTF-8): Backend gromadzÄ…cy dane dla Cacti
Name: cacti-spine
-Version: 0.8.8a
+Version: 1.2.15
Release: 1
License: GPL
-Group: Applications
+Group: Daemons
Source0: http://www.cacti.net/downloads/spine/%{name}-%{version}.tar.gz
-# Source0-md5: a156128755b043dfc34811b3e2da967e
+# Source0-md5: 04198466f34c8f919f6eabd7f2748774
Patch0: %{name}-paths.patch
# Official patches http://www.cacti.net/spine_download_patches.php
URL: http://www.cacti.net/
BuildRequires: autoconf
BuildRequires: automake
-BuildRequires: libcap-devel
+%{?with_cap:BuildRequires: libcap-devel}
BuildRequires: libtool
BuildRequires: mysql-devel
BuildRequires: net-snmp-devel
%build
%{__libtoolize}
-%{__aclocal}
+%{__aclocal} -I m4
+%{__autoheader}
%{__automake}
%{__autoconf}
chmod +x ./configure
%configure \
--with-results-buffer=4096 \
--with-mysql \
- --enable-lcap \
+ %{__enable_disable cap lcap} \
--with-snmp=%{_prefix}
%{__make}
%files
%defattr(644,root,root,755)
-%doc README
+%doc README.md
%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/spine.conf
%attr(755,root,root) %{_sbindir}/cacti-poller-spine
+%{_mandir}/man1/spine.1*