3 %bcond_without cap # Enable support for the Linux Capabilities (default: disabled)
5 Summary: A backend data gatherer for Cacti
6 Summary(pl.UTF-8): Backend gromadzący dane dla Cacti
12 Source0: http://www.cacti.net/downloads/spine/%{name}-%{version}.tar.gz
13 # Source0-md5: 0211200beca07e551ec4a6d1243392b7
14 Patch0: %{name}-paths.patch
15 # Official patches http://www.cacti.net/spine_download_patches.php
16 URL: http://www.cacti.net/
17 BuildRequires: autoconf
18 BuildRequires: automake
19 %{?with_cap:BuildRequires: libcap-devel}
20 BuildRequires: libtool
21 BuildRequires: mysql-devel
22 BuildRequires: net-snmp-devel
23 BuildRequires: openssl-devel
24 BuildRequires: rpmbuild(macros) >= 1.502
25 BuildRequires: zlib-devel
26 %requires_eq net-snmp-libs
28 Obsoletes: cacti-cactid
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 %define _webapps /etc/webapps
33 %define _sysconfdir %{_webapps}/%{_webapp}
34 %define _bindir %{_sbindir}
37 A backend data gatherer for Cacti. This package represents the future
38 replacement for Cacti's cmd.php. It is almost 100% compatible with the
39 legacy cmd.php processor.
41 %description -l pl.UTF-8
42 Backend gromadzący dane dla Cacti. Ten pakiet reprezentuje przyszły
43 zamiennik cmd.php z Cacti. Jest prawie w 100% kompatybilny ze starym
58 --with-results-buffer=4096 \
60 %{__enable_disable cap lcap} \
61 --with-snmp=%{_prefix}
65 rm -rf $RPM_BUILD_ROOT
67 DESTDIR=$RPM_BUILD_ROOT
69 mv $RPM_BUILD_ROOT%{_sbindir}/{spine,cacti-poller-spine}
70 mv $RPM_BUILD_ROOT%{_sysconfdir}/spine.conf{.dist,}
73 rm -rf $RPM_BUILD_ROOT
76 %defattr(644,root,root,755)
78 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/spine.conf
79 %attr(755,root,root) %{_sbindir}/cacti-poller-spine
80 %{_mandir}/man1/spine.1*