File sblim-gather.spec of Package sblim-gather

#
# spec file for package sblim-gather (Version 2.1.6)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           sblim-gather
BuildRequires:  gcc-c++ openslp-devel openssl-devel pam-devel sblim-cmpi-base-devel sblim-indication_helper-devel sblim-testsuite sysfsutils
Url:            http://sblim.wiki.sourceforge.net/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        SBLIM Performance Data Gatherer and Provider
Version:        2.1.6
Release:        45
Group:          System/Management
License:        IBM Public License
Source0:        http://prdownloads.sourceforge.net/sblim/sblim-gather-%{version}.tar.bz2
Patch:          sblim-gather-2.1.5-linkerpaths.patch
Patch1:         sblim-gather-2.1.2_pointers.patch
Patch2:         sblim-gather-2.1.5-libtool_modules.patch
Patch3:         sblim-gather-2.1.5-missing-includes.patch
# see https://sourceforge.net/tracker/?func=detail&atid=712784&aid=1845491&group_id=128809
Patch4:         gather-reposdump.patch
Provides:       sblim-gather-pluginz = %{version}
PreReq:         sblim-sfcb

%description
The purpose of this package is to implement the DMTF CIM Metrics Model
for Linux, making it available via a CIMOM supporting/supported by the
CMPI provider interface.

While the Gatherer and it's plugins can be used standalone, the
greatest benefit comes from using it in conjuction with a CIM Object
Manager (CIMOM) like Pegasus (The Open Group). Basically it allows to
remoteley obtain performance information about a Linux system. For more
information about CIM and the CIM Metrics Model you are referred to the
Distributed Management Task Force (DMTF) at http://www.dmtf.org.

This package is containing the agents and control programs which can be
deployed stand-alone.



Authors:
--------
    SBLIM Project

%package provider
License:        IBM Public License
Summary:        SBLIM Gatherer Provider
Group:          System/Management
Requires:       %{name} = %{version}
Requires:       cim-server
Requires:       sblim-cmpi-base
Provides:       sblim-gather-pluginz-provider = %{version}

%description provider
This package is containing the CIM Providers for the SBLIM Gatherer.



Authors:
--------
    SBLIM Project

%package devel
License:        IBM Public License
Summary:        SBLIM Gatherer Development Support
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}

%description devel
This package is needed to develop new plugins for the gatherer.



Authors:
--------
    SBLIM Project

%package test
License:        IBM Public License
Summary:        SBLIM Gatherer Testcase Files
Group:          System/Management
Requires:       %{name} = %{version}
Requires:       %{name}-provider = %{version}
Requires:       sblim-testsuite

%description test
SBLIM Gatherer Testcase Files for the SBLIM Testsuite



Authors:
--------
    SBLIM Project

%prep
%setup -n %{name}-%{version}
%patch
%patch1
%patch2
%patch3
%patch4

%build
autoreconf -fi
export CFLAGS="%{optflags} -fno-strict-aliasing"
%configure
%{__make}

%install
%makeinstall docdir=%{_docdir}/%{name}
find %{buildroot} -type f -name \*.la -print0 | xargs -r0 rm -v

%clean
%{__rm} -rf %{buildroot}

%post provider
%define mofs Linux_Metric Linux_LocalFileSystemMetric Linux_NetworkPortMetric Linux_OperatingSystemMetric Linux_ProcessorMetric Linux_UnixProcessMetric Linux_IPProtocolEndpointMetric Linux_XenMetric Linux_zCECMetric Linux_zCHMetric Linux_zECKDMetric Linux_zLPARMetric
# compile MOF
d=%_datadir/%name
for i in %mofs; do
	$d/provider-register.sh -t sfcb -r $d/$i.registration -m $d/$i.mof
done

%preun provider
if [ "$1" = "0" ]; then
	d=%_datadir/%name
	for i in %mofs; do
		$d/provider-register.sh -t sfcb -d -r $d/$i.registration -m $d/$i.mof
	done
fi

%postun provider -p /sbin/ldconfig

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/gatherd.conf
%config(noreplace) %{_sysconfdir}/reposd.conf
%{_localstatedir}/run/gather
%{_bindir}/*
%{_sbindir}/*
%doc %{_docdir}/%{name}
%dir %{_libdir}/gather
%dir %{_libdir}/gather/mplug
%dir %{_libdir}/gather/rplug
%{_libdir}/gather/mplug/*.so
%{_libdir}/gather/rplug/*.so
%{_libdir}/*.so.*
%exclude %{_libdir}/libOSBase_MetricUtil.so

%files provider
%defattr(-,root,root,-)
%{_libdir}/cmpi/*.so
%{_libdir}/libOSBase_MetricUtil.so
%dir %{_libdir}/gather/cplug
%{_libdir}/gather/cplug/*.so
%{_datadir}/%{name}

%files devel
%defattr(-,root,root,-)
%{_includedir}/gather
%{_libdir}/libgather.so
%{_libdir}/libmcserv.so
%{_libdir}/librcserv.so
%{_libdir}/librepos.so
%{_libdir}/librgather.so
%{_libdir}/librrepos.so
%{_libdir}/libhypfs.so
%{_libdir}/liblparutil.so
%{_libdir}/libsysfswrapper.so
%{_libdir}/libchannelutil.so
%{_libdir}/libgatherutil.so

%files test
%defattr(-,root,root,-)
%{_datadir}/sblim-testsuite/*

%changelog
* Fri Sep 12 2008 mmarek@suse.cz
- switch to sfcb
* Mon Apr 14 2008 mmarek@suse.cz
- updated to 2.1.6
  Fixed sf.net#1845491: reposdump segfault without arguments.
- fixed build with glibc 2.8 (missing-includes.patch)
- added gather-reposdump.patch which is apparently missing in the
  2.1.6 release (see https://sourceforge.net/tracker/?func=detail&atid=712784&aid=1845491&group_id=128809)
* Thu Nov 01 2007 mmarek@suse.cz
- updated to version 2.1.5
  fixed upstream bugs:
  * 1808017 Added Lifecycle Indication Support
  * 1808022 Fixed false test script failure report
  * 1810856 Fixed data retrieval issue with variable intervals
  * 1815686 Added reposdump utility to offload historical data
* Wed Jul 11 2007 mrueckert@suse.de
- update to version 2.1.4:
  - 1736593 Fixed XEN gatherd is not running
  - 1744262 Fixed compilation problems with tog-pegasus headers
  - 1751133 Fixed gather indication provider not working properly
  - 1751173 Fixed potential memory problem in Xen plugin
- additional changes from 2.1.3
  - 1648800 Fixed gather testsuite start script fails with https
  - 1652565 Fixed build problem with libsysfs v2
- added sblim-gather-2.1.4-libtool_modules.patch:
  the plugins dont need a .so version. patched makefiles to avoid it
  and adapted the filelist
- removed sblim-gather-2.1.2-testscript_bug_240778.patch:
  included in 2.1.3
* Thu Mar 15 2007 mrueckert@suse.de
- synced requires/provides with upstream spec (#255052)
* Wed Feb 07 2007 mrueckert@suse.de
- Fix requires on cim server.
* Fri Feb 02 2007 mrueckert@suse.de
- added sblim-gather-2.1.2-testscript_bug_240778.patch:
  Fix testsuite for https only cim-server (#240778)
* Fri Feb 02 2007 mrueckert@suse.de
- split package into logical pieces (base package, provider,devel
  and test subpackages) (#240800)
- added /var/run/gather (#240800)
- marked config files as config(noreplace)
- removed unneeded .la files
- run ldconfig
* Fri Jan 12 2007 mrueckert@suse.de
- update to version 2.1.2:
  *  Changes in Version 2.1.2:
    - 1525914 Fixed repository overwrite by z channel plugin.
    - 1585629 Fixed z channel timestamp wrap
    - 1585628 Fixed invalid CPU values for z LPARs and CEC
    - 1565458 Fixed CIMOM crash after invalid getinstance ops
    - 1613105 Fixed handling of unsigned 32-bit integers
  * Changes  in Version 2.1.1:
    - 1468385 Fixed 32bit value display
    - 1474178 Fixed bogus file ownerships in RPM specfiles
    - 1506037 Fixed testsuite for https CIM server connections
    - 1509900 Fixed memory corruption in Xen Plugin
  Features added:
    - 1509902 Added plugins for IBM System z
  * Changes in Version 2.1.0
  Features added:
    - 1427714 Added new config properties for automatic plugin loading.
    - 1429155 Added new config option for sample interval override.
    - 1436488 Added top-N support for metric values.
    - 1436591 Added new config option to specify the repository expiration.
    - 1436671 New plugin for Xen.
    - 1441802 Added new config option for synchronized sampling.
    - 1450569 Multiple gather installations can coexist now on one system.
    - 1454734 Support for seperate devel package added.
  Bugs fixed:
    - 1395363 Removed provider postinstall location dependencies.
    - 1441804 Fixed spec file
    - 1446497 Removed metric instance number limit
    - 1449436 Enhanced metric repository performance for large data volumes
    - 1449628 Fixed segfault in Xen plugin
    - 1450216 Enhanced filter performance by adaptive sorting algorithms
    - 1454722 Fixed potential memory overwrite in local communications code
    - 1464845 Fixed potential repository failure for interval metrics
  * Changes in Version 2.0.4
  Bugs fixed:
    - 1430516 Fixed unrecoverable disconnect.
    - 1443997 Fixed handling of partially loaded repository plugin sets
    - 1444272 Fixed coredump for NULL unit fields
    - 1444711 Fixed CPU time display units (now milliseconds)
    - 1444826 Fix some portability issues
- updated sblim-gather-2.0.3_linkerpaths.patch for 2.1.2.
  new name sblim-gather-2.1.2_linkerpaths.patch.
- use upstream solution for sblim-gather-2.0.3_static_overflow.patch
- updated sblim-gather-2.0.3_pointers.patch for 2.1.2.
  new name sblim-gather-2.1.2_pointers.patch.
* Wed Mar 01 2006 mrueckert@suse.de
- update to version 2.0.3
  * 1422395 Fixed MetricInstance unidirectional misbehavior. (2.0.3)
  * 1426051 Fixed interoperability issues between 32 and 64 bit
  systems. (2.0.3)
  * 1376211 Fixed testsuite false failure reports. (2.0.2)
  * 1236584 Enhanced compatibility with tog-pegasus. (2.0.1)
  * Gatherer is now fully distributable: a central repository node
  can collect data from a large number of remote nodes running
  the gatherd daemon. (2.0.0)
- removed all patches -> no longer valid as the build system
  switched to auto*
- added patches
  * sblim-gather-2.0.3_linkerpaths.patch
  use .la files instead of -l on intree libraries
  * sblim-gather-2.0.3_static_overflow.patch
  fix a static buffer overflow
  * sblim-gather-2.0.3_pointers.patch
  fix a few warnings regarding mismatching pointer sizes
- compile with -fno-strict-aliasing
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Dec 14 2005 ro@suse.de
- fix filelist
* Tue Dec 13 2005 mrueckert@suse.de
- update to 1.0.11
- build against openwbem
- build with optflags
- use new syntax of loadmof/rmmof
* Thu Nov 11 2004 ro@suse.de
- fixed file list
* Thu May 20 2004 nashif@suse.de
- fixed #40885: sblim-gather provider hangs Pegasus and OpenWBEM
* Thu May 13 2004 nashif@suse.de
- Initial Release ( 0.7.4)
openSUSE Build Service is sponsored by