]> git.pld-linux.org Git - packages/cacti-spine.git/blobdiff - cacti-spine.spec
- release 6
[packages/cacti-spine.git] / cacti-spine.spec
index a2e559fe57d98909aac0d13717983a9399be86fd..fefcecdf45b465804b738e475167f309c5995c84 100644 (file)
@@ -1,12 +1,13 @@
 Summary:       A backend data gatherer for cacti
 Summary(pl.UTF-8):     Backend gromadzÄ…cy dane dla cacti
 Name:          cacti-spine
-Version:       0.8.7
-Release:       1
+Version:       0.8.7a
+Release:       6
 License:       GPL
 Group:         Applications
 Source0:       http://www.cacti.net/downloads/spine/%{name}-%{version}.tar.gz
-# Source0-md5: 7a92339f80622b607705c37aaae2d635
+# Source0-md5: 85a32d256c056a3a4adb8bf3dff5e2dc
+Patch0:                %{name}-paths.patch
 URL:           http://www.cacti.net/
 BuildRequires: autoconf
 BuildRequires: automake
@@ -14,12 +15,17 @@ BuildRequires:      libtool
 BuildRequires: mysql-devel
 BuildRequires: net-snmp-devel
 BuildRequires: openssl-devel
+BuildRequires: rpmbuild(macros) >= 1.502
 BuildRequires: zlib-devel
+%requires_eq   net-snmp-libs
 Requires:      cacti
-Provides:      cacti-cactid
-Obsoletes:     cacti-cactid
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                _webapps        /etc/webapps
+%define                _webapp         cacti
+%define                _sysconfdir     %{_webapps}/%{_webapp}
+%define                _bindir         %{_sbindir}
+
 %description
 A backend data gatherer for cacti. This package represents the future
 replacement for cacti's cmd.php. It is almost 100% compatible with the
@@ -32,6 +38,7 @@ procesorem cmd.php.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__libtoolize}
@@ -50,6 +57,7 @@ install -d $RPM_BUILD_ROOT%{_sysconfdir}
        DESTDIR=$RPM_BUILD_ROOT
 
 install spine.conf $RPM_BUILD_ROOT%{_sysconfdir}
+mv $RPM_BUILD_ROOT%{_sbindir}/{spine,cacti-poller-spine}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -57,5 +65,5 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc README
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_sbindir}/cacti-poller-spine
 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/spine.conf
This page took 0.134081 seconds and 4 git commands to generate.