]> git.pld-linux.org Git - packages/cacti-spine.git/blob - cacti-spine.spec
97e3a33d5e8c3f42c5be96deb2ab2dac212f1735
[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.8c
5 Release:        2
6 License:        GPL
7 Group:          Daemons
8 Source0:        http://www.cacti.net/downloads/spine/%{name}-%{version}.tar.gz
9 # Source0-md5:  448c813422f943dc09b237bd8022002a
10 Patch0:         %{name}-paths.patch
11 Patch1:         x32.patch
12 # Official patches http://www.cacti.net/spine_download_patches.php
13 URL:            http://www.cacti.net/
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  libcap-devel
17 BuildRequires:  libtool
18 BuildRequires:  mysql-devel
19 BuildRequires:  net-snmp-devel
20 BuildRequires:  openssl-devel
21 BuildRequires:  rpmbuild(macros) >= 1.502
22 BuildRequires:  zlib-devel
23 %requires_eq    net-snmp-libs
24 Requires:       cacti
25 Obsoletes:      cacti-cactid
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %define         _webapps        /etc/webapps
29 %define         _webapp         cacti
30 %define         _sysconfdir     %{_webapps}/%{_webapp}
31 %define         _bindir         %{_sbindir}
32
33 %description
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
36 legacy cmd.php processor.
37
38 %description -l pl.UTF-8
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
41 procesorem cmd.php.
42
43 %prep
44 %setup -q
45 %patch0 -p1
46 %ifarch x32
47 %patch1 -p1
48 %endif
49
50 %build
51 %{__libtoolize}
52 %{__aclocal}
53 %{__automake}
54 %{__autoconf}
55 chmod +x ./configure
56 %configure \
57         --with-results-buffer=4096 \
58         --with-mysql \
59         --enable-lcap \
60         --with-snmp=%{_prefix}
61 %{__make}
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65 %{__make} install \
66         DESTDIR=$RPM_BUILD_ROOT
67
68 mv $RPM_BUILD_ROOT%{_sbindir}/{spine,cacti-poller-spine}
69 mv $RPM_BUILD_ROOT%{_sysconfdir}/spine.conf{.dist,}
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %files
75 %defattr(644,root,root,755)
76 %doc README
77 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/spine.conf
78 %attr(755,root,root) %{_sbindir}/cacti-poller-spine
This page took 0.057088 seconds and 3 git commands to generate.