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