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