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