]> git.pld-linux.org Git - packages/cacti-spine.git/blame - cacti-spine.spec
- add 3 official patches
[packages/cacti-spine.git] / cacti-spine.spec
CommitLineData
5073890a 1Summary: A backend data gatherer for cacti
59120e4b 2Summary(pl.UTF-8): Backend gromadzący dane dla cacti
14afc3fc 3Name: cacti-spine
9d56b56e 4Version: 0.8.7e
74f5a752 5Release: 3
5073890a
AM
6License: GPL
7Group: Applications
14afc3fc 8Source0: http://www.cacti.net/downloads/spine/%{name}-%{version}.tar.gz
9d56b56e 9# Source0-md5: 99e5bde07fc31d1ed8aa23c59de00417
241be8a3 10Patch0: %{name}-paths.patch
74f5a752
ER
11Patch100: http://www.cacti.net/downloads/spine/patches/snmp_v3_fix.patch
12Patch101: http://www.cacti.net/downloads/spine/patches/mysql_client_reconnect.patch
13Patch102: http://www.cacti.net/downloads/spine/patches/ping_reliability.patch
5073890a 14URL: http://www.cacti.net/
f2f2d12a 15BuildRequires: autoconf
84e80d6c 16BuildRequires: automake
f2f2d12a 17BuildRequires: libtool
5073890a
AM
18BuildRequires: mysql-devel
19BuildRequires: net-snmp-devel
20BuildRequires: openssl-devel
41e369d4 21BuildRequires: rpmbuild(macros) >= 1.502
5073890a 22BuildRequires: zlib-devel
41e369d4 23%requires_eq net-snmp-libs
bfe3cd9b 24Requires: cacti
5073890a
AM
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
241be8a3
ER
27%define _webapps /etc/webapps
28%define _webapp cacti
29%define _sysconfdir %{_webapps}/%{_webapp}
30%define _bindir %{_sbindir}
31
5073890a
AM
32%description
33A backend data gatherer for cacti. This package represents the future
34replacement for cacti's cmd.php. It is almost 100% compatible with the
35legacy cmd.php processor.
36
677c4ebb
JR
37%description -l pl.UTF-8
38Backend gromadzący dane dla cacti. Ten pakiet reprezentuje przyszły
0d7a9455
JB
39zamiennik cmd.php z cacti. Jest prawie w 100% kompatybilny ze starym
40procesorem cmd.php.
41
5073890a
AM
42%prep
43%setup -q
74f5a752
ER
44%patch100 -p1
45%patch101 -p1
46%patch102 -p1
241be8a3 47%patch0 -p1
5073890a
AM
48
49%build
14afc3fc
AM
50%{__libtoolize}
51%{__aclocal}
f4b6d64d 52%{__automake}
14afc3fc 53%{__autoconf}
f4b6d64d 54chmod +x ./configure
5073890a 55%configure \
74f5a752 56 --with-results-buffer=4096 \
5073890a
AM
57 --with-mysql \
58 --with-snmp=%{_prefix}
59%{__make}
60
61%install
62rm -rf $RPM_BUILD_ROOT
5073890a
AM
63%{__make} install \
64 DESTDIR=$RPM_BUILD_ROOT
65
74f5a752
ER
66install -d $RPM_BUILD_ROOT%{_sysconfdir}
67cp -a spine.conf $RPM_BUILD_ROOT%{_sysconfdir}
241be8a3 68mv $RPM_BUILD_ROOT%{_sbindir}/{spine,cacti-poller-spine}
0d7245bc 69
5073890a
AM
70%clean
71rm -rf $RPM_BUILD_ROOT
72
73%files
74%defattr(644,root,root,755)
677849c3 75%doc README
241be8a3 76%attr(755,root,root) %{_sbindir}/cacti-poller-spine
14afc3fc 77%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/spine.conf
This page took 0.069546 seconds and 4 git commands to generate.