]> git.pld-linux.org Git - packages/cacti-spine.git/blame - cacti-spine.spec
net-snmp rebuild
[packages/cacti-spine.git] / cacti-spine.spec
CommitLineData
c10a49a4
ER
1#
2# Conditional build:
3%bcond_without cap # Enable support for the Linux Capabilities (default: disabled)
a16c76ac 4
bd350f0d
ER
5Summary: A backend data gatherer for Cacti
6Summary(pl.UTF-8): Backend gromadzący dane dla Cacti
14afc3fc 7Name: cacti-spine
2ce29fd4 8Version: 1.2.16
af102abf 9Release: 3
5073890a 10License: GPL
8039649e 11Group: Daemons
14afc3fc 12Source0: http://www.cacti.net/downloads/spine/%{name}-%{version}.tar.gz
2ce29fd4 13# Source0-md5: 69133383948005f77ca82e10a8c6d228
241be8a3 14Patch0: %{name}-paths.patch
e3fdb883 15# Official patches http://www.cacti.net/spine_download_patches.php
5073890a 16URL: http://www.cacti.net/
f2f2d12a 17BuildRequires: autoconf
84e80d6c 18BuildRequires: automake
c10a49a4 19%{?with_cap:BuildRequires: libcap-devel}
f2f2d12a 20BuildRequires: libtool
5073890a
AM
21BuildRequires: mysql-devel
22BuildRequires: net-snmp-devel
23BuildRequires: openssl-devel
41e369d4 24BuildRequires: rpmbuild(macros) >= 1.502
5073890a 25BuildRequires: zlib-devel
41e369d4 26%requires_eq net-snmp-libs
bfe3cd9b 27Requires: cacti
bd350f0d 28Obsoletes: cacti-cactid
5073890a
AM
29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
241be8a3
ER
31%define _webapps /etc/webapps
32%define _webapp cacti
33%define _sysconfdir %{_webapps}/%{_webapp}
34%define _bindir %{_sbindir}
35
5073890a 36%description
bd350f0d
ER
37A backend data gatherer for Cacti. This package represents the future
38replacement for Cacti's cmd.php. It is almost 100% compatible with the
5073890a
AM
39legacy cmd.php processor.
40
677c4ebb 41%description -l pl.UTF-8
bd350f0d
ER
42Backend gromadzący dane dla Cacti. Ten pakiet reprezentuje przyszły
43zamiennik cmd.php z Cacti. Jest prawie w 100% kompatybilny ze starym
0d7a9455
JB
44procesorem cmd.php.
45
5073890a
AM
46%prep
47%setup -q
241be8a3 48%patch0 -p1
5073890a
AM
49
50%build
14afc3fc 51%{__libtoolize}
56dd2a9f 52%{__aclocal} -I m4
adc85482 53%{__autoheader}
f4b6d64d 54%{__automake}
14afc3fc 55%{__autoconf}
f4b6d64d 56chmod +x ./configure
5073890a 57%configure \
74f5a752 58 --with-results-buffer=4096 \
5073890a 59 --with-mysql \
c10a49a4 60 %{__enable_disable cap lcap} \
5073890a
AM
61 --with-snmp=%{_prefix}
62%{__make}
63
64%install
65rm -rf $RPM_BUILD_ROOT
5073890a
AM
66%{__make} install \
67 DESTDIR=$RPM_BUILD_ROOT
68
241be8a3 69mv $RPM_BUILD_ROOT%{_sbindir}/{spine,cacti-poller-spine}
632d1d1e 70mv $RPM_BUILD_ROOT%{_sysconfdir}/spine.conf{.dist,}
0d7245bc 71
5073890a
AM
72%clean
73rm -rf $RPM_BUILD_ROOT
74
75%files
76%defattr(644,root,root,755)
029e469c 77%doc README.md
14afc3fc 78%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/spine.conf
632d1d1e 79%attr(755,root,root) %{_sbindir}/cacti-poller-spine
029e469c 80%{_mandir}/man1/spine.1*
This page took 0.081684 seconds and 4 git commands to generate.