]> git.pld-linux.org Git - packages/cacti-spine.git/blobdiff - cacti-spine.spec
Up to 1.2.26
[packages/cacti-spine.git] / cacti-spine.spec
index 7c7789950a35105a5c5191cbdda191e833443af3..535ad535d069dce6411552566c46a23725abe080 100644 (file)
@@ -1,17 +1,23 @@
+#
+# Conditional build:
+%bcond_without cap     # Linux Capabilities support
+
 Summary:       A backend data gatherer for Cacti
 Summary(pl.UTF-8):     Backend gromadzÄ…cy dane dla Cacti
 Name:          cacti-spine
-Version:       0.8.7g
-Release:       4
+Version:       1.2.26
+Release:       1
 License:       GPL
-Group:         Applications
-Source0:       http://www.cacti.net/downloads/spine/%{name}-%{version}.tar.gz
-# Source0-md5: 22c2b1986c880b9c587876c18d5c3f9f
+Group:         Daemons
+Source0:       https://files.cacti.net/spine/%{name}-%{version}.tar.gz
+# Source0-md5: 9751f2fb7a096cfa99ef20d33cf5130a
 Patch0:                %{name}-paths.patch
-Patch1:                unified_issues.patch
+# Official patches http://www.cacti.net/spine_download_patches.php
 URL:           http://www.cacti.net/
 BuildRequires: autoconf
 BuildRequires: automake
+BuildRequires: help2man
+%{?with_cap:BuildRequires:     libcap-devel}
 BuildRequires: libtool
 BuildRequires: mysql-devel
 BuildRequires: net-snmp-devel
@@ -20,7 +26,7 @@ BuildRequires:        rpmbuild(macros) >= 1.502
 BuildRequires: zlib-devel
 %requires_eq   net-snmp-libs
 Requires:      cacti
-Obsoletes:     cacti-cactid
+Obsoletes:     cacti-cactid < 0.8.7
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _webapps        /etc/webapps
@@ -41,17 +47,18 @@ procesorem cmd.php.
 %prep
 %setup -q
 %patch0 -p1
-%patch1 -p1
 
 %build
 %{__libtoolize}
-%{__aclocal}
+%{__aclocal} -I m4
+%{__autoheader}
 %{__automake}
 %{__autoconf}
 chmod +x ./configure
 %configure \
        --with-results-buffer=4096 \
        --with-mysql \
+       %{__enable_disable cap lcap} \
        --with-snmp=%{_prefix}
 %{__make}
 
@@ -68,6 +75,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README
+%doc README.md
 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/spine.conf
 %attr(755,root,root) %{_sbindir}/cacti-poller-spine
+%{_mandir}/man1/spine.1*
This page took 0.583635 seconds and 4 git commands to generate.