]> git.pld-linux.org Git - packages/cacti-spine.git/blobdiff - cacti-spine.spec
- release 8
[packages/cacti-spine.git] / cacti-spine.spec
index d5343e97912baf69cae09f725fb9062326f7efd2..c1f7b3debbd44cea1df969e8b60229040527a75b 100644 (file)
@@ -1,48 +1,73 @@
-Summary:       A backend data gatherer for cacti
-Name:          cacti-cactid
-Version:       0.8.6f
-Release:       0.2
+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:       8
 License:       GPL
 Group:         Applications
-Source0:       http://www.cacti.net/downloads/cactid/%{name}-%{version}.tar.gz
-# Source0-md5: 2b102f9029ffaa4fb0e186c6640b1851
+Source0:       http://www.cacti.net/downloads/spine/%{name}-%{version}.tar.gz
+# Source0-md5: 22c2b1986c880b9c587876c18d5c3f9f
+Patch0:                %{name}-paths.patch
+Patch1:                unified_issues.patch
 URL:           http://www.cacti.net/
+BuildRequires: autoconf
 BuildRequires: automake
+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
+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
+A backend data gatherer for Cacti. This package represents the future
+replacement for Cacti's cmd.php. It is almost 100% compatible with the
 legacy cmd.php processor.
 
+%description -l pl.UTF-8
+Backend gromadzący dane dla Cacti. Ten pakiet reprezentuje przyszły
+zamiennik cmd.php z Cacti. Jest prawie w 100% kompatybilny ze starym
+procesorem cmd.php.
+
 %prep
 %setup -q
+%patch0 -p1
+%patch1 -p1
 
 %build
-install /usr/share/automake/config.* config
+%{__libtoolize}
+%{__aclocal}
+%{__automake}
+%{__autoconf}
+chmod +x ./configure
 %configure \
+       --with-results-buffer=4096 \
        --with-mysql \
        --with-snmp=%{_prefix}
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-install cactid.conf $RPM_BUILD_ROOT%{_sysconfdir}
+mv $RPM_BUILD_ROOT%{_sbindir}/{spine,cacti-poller-spine}
+mv $RPM_BUILD_ROOT%{_sysconfdir}/spine.conf{.dist,}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc CHANGELOG README
-%attr(755,root,root) %{_bindir}/*
-%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cactid.conf
+%doc README
+%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/spine.conf
+%attr(755,root,root) %{_sbindir}/cacti-poller-spine
This page took 0.135599 seconds and 4 git commands to generate.