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