# $Id$ # Authority: dag # Upstream: %{?dtag: %{expand: %%define %dtag 1}} %{?rh7:%define _without_net_snmp 1} %{?el2:%define _without_net_snmp 1} %{?rh6:%define _without_net_snmp 1} Summary: Fast c-based poller for the cacti graphing solution Name: cacti-spine Version: 0.8.7a Release: 1 License: LGPL Group: Applications/System URL: http://www.cacti.net/ Source: http://www.cacti.net/downloads/spine/cacti-spine-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: mysql-devel, openssl-devel %{!?_without_net_snmp:BuildRequires: net-snmp-devel, net-snmp-utils} %{?_without_net_snmp:BuildRequires: ucd-snmp-devel, ucd-snmp-utils} Requires: cacti Obsoletes: cacti-cactid <= %{version}-%{release} Provides: cacti-cactid = %{version}-%{release} %description Spine is a supplemental poller for Cacti that makes use of pthreads to achieve excellent performance. %prep %setup ### FIXME: Patch to use /usr/lib64 on 64bit (Please fix upstream) %{__perl} -pi.orig -e 's|/lib\b|/%{_lib}|g' configure %build autoreconf --force --install --symlink %configure %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} %{__install} -Dp -m0755 spine %{buildroot}%{_bindir}/spine %{__install} -Dp -m0600 spine.conf %{buildroot}%{_sysconfdir}/spine.conf %clean %{__rm} -rf %{buildroot} %files %defattr(-, root, root, 0755) %doc AUTHORS ChangeLog COPYING LICENSE* NEWS README %{_bindir}/spine %defattr(-, cacti, cacti, 0755) %config(noreplace) %{_sysconfdir}/spine.conf %changelog * Sun Feb 10 2008 Dag Wieers - 0.8.7a-1 - Updated to release 0.8.7a. * Mon Oct 29 2007 Dag Wieers - 0.8.7-1 - Updated to release 0.8.7. - Rename package from cacti-cactid to cacti-spine. * Thu Jan 18 2007 Matthias Saou 0.8.6i-1 - Update to 0.8.6i. - Include only relevant documentation. * Mon Jan 30 2006 Dag Wieers - 0.8.6g-1 - Updated to release 0.8.6g. * Tue Aug 09 2005 Dag Wieers - 0.8.6e-1 - Updated to release 0.8.6e. * Thu May 19 2005 Matthias Saou 0.8.6d-2 - Make the config file mode 0600 (it contains the mysql db password) and owned by the cacti user (he executes the cron job). - Add missing openssl-devel build requirement (at least on RHEL4). * Mon Apr 04 2005 Dag Wieers - 0.8.6d-1 - Initial package. (using DAR)