cacti-spine/cacti-spine.spec

Name: cacti-spine
Summary: Fast c-based poller for the cacti graphing solution
Version: 0.8.8b
Release: 1
License: LGPL
Group: Applications/System
URL: http://www.cacti.net/
Description: Spine is a supplemental poller for Cacti that makes use of pthreads to achieve excellent performance.

CentOS 7 x86_64

The build was not successful.

Build Status

CentOS 6 x86_64

The build was not successful.

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag
# Upstream: <cacti-user$lists,sf,net>

%{?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.8b
Release: 1%{?dist}
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.dist %{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
* Tue Aug 27 2013 David Hrbáč <david@hrbac.cz> - 0.8.8b-1
- new upstream release

* Mon Apr 30 2012 David Hrbáč <david@hrbac.cz> - 0.8.8a-1
- new upstream release

* Wed Apr 18 2012 Michael Friedrich <michael.friedrich@univie.ac.at> - 0.8.8-2
- fix poller free patch added, r7115, fixes GH149

* Thu Apr 05 2012 David Hrbáč <david@hrbac.cz> - 0.8.8-1
- new upstream release

* Sat Jan 21 2012 David Hrbáč <david@hrbac.cz> - 0.8.7i-1
- new upstream release

* Tue Sep 27 2011 Dag Wieers <dag@wieers.com> - 0.8.7h-1
- Updated to release 0.8.7h.

* Sat Sep 17 2011 Dag Wieers <dag@wieers.com> - 0.8.7g-1
- Updated to release 0.8.7g.

* Sun Feb 10 2008 Dag Wieers <dag@wieers.com> - 0.8.7a-1
- Updated to release 0.8.7a.

* Mon Oct 29 2007 Dag Wieers <dag@wieers.com> - 0.8.7-1
- Updated to release 0.8.7.
- Rename package from cacti-cactid to cacti-spine.

* Thu Jan 18 2007 Matthias Saou <http://freshrpms.net/> 0.8.6i-1
- Update to 0.8.6i.
- Include only relevant documentation.

* Mon Jan 30 2006 Dag Wieers <dag@wieers.com> - 0.8.6g-1
- Updated to release 0.8.6g.

* Tue Aug 09 2005 Dag Wieers <dag@wieers.com> - 0.8.6e-1
- Updated to release 0.8.6e.

* Thu May 19 2005 Matthias Saou <http://freshrpms.net/> 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 <dag@wieers.com> - 0.8.6d-1
- Initial package. (using DAR)