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