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