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