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