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