File sblim-cmpi-syslog.spec of Package sblim-cmpi-syslog

#
# spec file for package sblim-cmpi-syslog (Version 0.7.11)
#
# 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-cmpi-syslog
Url:            http://sblim.wiki.sourceforge.net/
BuildRequires:  gcc-c++ openslp-devel openssl-devel pam-devel sblim-cmpi-base-devel sblim-indication_helper-devel sblim-sfcb
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        SBLIM Syslog Instrumentation
Version:        0.7.11
Release:        109
Group:          System/Management
License:        IBM Public License
Requires:       sblim-cmpi-base >= 1.2.3 
Requires:       syslog-ng sblim-sfcb
Source0:        http://www-126-ibm.com/pub/sblim/sblim-cmpi-syslog/%{name}-%{version}.tar.bz2
Patch0:         sblim-cmpi-syslog-0.7.9_testsuite_random_return.patch
Patch1:         sblim-cmpi-syslog-shebang.patch
PreReq:         /usr/bin/loadmof.sh, /usr/bin/rmmof.sh

%description
- Syslog Configuration Instrumentation This instrumentation allows
   management of syslog configuration file via CIM.

- Syslog Service Instrumentation This instrumentation allows to
   manage the syslog service via CIM.

- Syslog Logfile Instrumentation This instrumentation allows viewing of
syslog logfiles via CIM.



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

%prep
%setup
%patch0
%patch1 -b .sblim-cmpi-syslog-shebang.patch

%build
%configure --with-pic --disable-static
%{__make}

%install
%makeinstall docdir=%{_docdir}/%{name}
for i in */README AUTHORS ChangeLog NEWS ; do
    %{__install} -m 0644 $i %{buildroot}%{_docdir}/%{name}/README.${i%%/README} ;
done
%{__install} -Dd -m 0755 %{buildroot}/var/log/
touch %{buildroot}/var/log/testlog
rm -rf %{buildroot}%{_datadir}/sblim-testsuite
rm -f %{buildroot}%{_libdir}/cmpi/*.la
rm -f %{buildroot}%{_libdir}/*.la
rm -f %{buildroot}%{_libdir}/*.so

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

%post
/sbin/ldconfig
# compile MOF
for i in Syslog_Configuration Syslog_Log Syslog_Service; do
  %{_datadir}/%{name}/provider-register.sh -t sfcb \
	-r %{_datadir}/%{name}/$i.registration \
	-m %{_datadir}/%{name}/$i.mof
done

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

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%ghost /var/log/testlog
%doc %{_docdir}/%{name}
%{_bindir}/syslog-service.sh
%{_libdir}/cmpi/libSyslog_Configuration.so
%{_libdir}/cmpi/libSyslog_LogRecord.so
%{_libdir}/cmpi/libSyslog_MessageLog.so
%{_libdir}/cmpi/libSyslog_RecordInLog.so
%{_libdir}/cmpi/libSyslog_Service.so
%{_libdir}/cmpi/libSyslog_ServiceProcess.so
%{_libdir}/cmpi/libSyslog_Setting.so
%{_libdir}/cmpi/libSyslog_SettingContext.so
%{_libdir}/libSyslog_ConfUtils.so.0
%{_libdir}/libSyslog_ConfUtils.so.0.0.0
%{_libdir}/libSyslog_LogUtils.so.0
%{_libdir}/libSyslog_LogUtils.so.0.0.0
%{_libdir}/libSyslog_ServiceUtils.so.0
%{_libdir}/libSyslog_ServiceUtils.so.0.0.0
%{_libdir}/libsyslogconfutil.so.0
%{_libdir}/libsyslogconfutil.so.0.0.0
%{_libdir}/libsysloglogutil.so.0
%{_libdir}/libsysloglogutil.so.0.0.0
%{_libdir}/libsyslogserviceutil.so.0
%{_libdir}/libsyslogserviceutil.so.0.0.0
%{_libdir}/libsyslogsettingparse.so.0
%{_libdir}/libsyslogsettingparse.so.0.0.0
%{_libdir}/libsyslogtimeparse.so.0
%{_libdir}/libsyslogtimeparse.so.0.0.0
%dir %{_datadir}/sblim-cmpi-syslog/
%{_datadir}/sblim-cmpi-syslog/Syslog_Configuration.mof
%{_datadir}/sblim-cmpi-syslog/Syslog_Configuration.registration
%{_datadir}/sblim-cmpi-syslog/Syslog_Log.mof
%{_datadir}/sblim-cmpi-syslog/Syslog_Log.registration
%{_datadir}/sblim-cmpi-syslog/Syslog_Service.mof
%{_datadir}/sblim-cmpi-syslog/Syslog_Service.registration
%{_datadir}/sblim-cmpi-syslog/provider-register.sh

%changelog
* Wed Aug 13 2008 bwhiteley@suse.de
- Remove testsuite due to RPMLINT errors.
- Use provider-register.sh with SFCB.
- Fix other RPMLINT errors.
* Wed Dec 26 2007 crrodriguez@suse.de
- fix library-without-ldconfig-post* rpmlint warnings
* Tue Jan 23 2007 mrueckert@suse.de
- update to version 0.7.11: (#184758)
  o Bug 1411000: syslog provider should not depend on cmpi-base
  internal functions.
  o Bug 1615180: check mallocs for success
  o Bug 1605178: CreateInstance must return an valid object path
  in case of success.
  o Bug 1605163: Configuration enumeration does not clean up /tmp
  files.
  o Bug 1538474: Fixed memory leaks in parsing syslog
  configuration information.
  o Bug 1472978 : Updated TmpConfFile as "/etc/syslog.conf" and
  added code to send SIGHUP to syslogd AFTER a create/delete
  instance in syslog-conf.
- removed sblim-cmpi-syslog-0.7.9_sig_hup_syslogd.patch:
  patch included in 0.7.11
* Mon May 08 2006 mrueckert@suse.de
- added sblim-cmpi-syslog-0.7.9_syslog_sig_hup.patch:
  syslog-conf should use config file directly (#173452)
- removed handling for /etc/syslogtest.conf
- added ghostified file /var/log/testlog
* Wed Apr 19 2006 mrueckert@suse.de
- copy the syslog.conf to syslogtest.conf in %%post
  and add it as %%ghost in the files section (#163535)
* Mon Mar 27 2006 mrueckert@suse.de
- sblim-cmpi-syslog-0.7.9_testsuite_random_return.patch
  fix main() without return statement
* Mon Mar 27 2006 mrueckert@suse.de
- update to version 0.7.9
  includes the following upstream fixes:
  o 1183805 : Autoconf support added.
  o 1199129 : Some warning messages were also fixed.
  o 1449220 : Fixed testsuite failure.
  o 1449954 : Replaced printfs with debug macro (syslog_debug)
- minimize the %%build/%%install
* Thu Jan 26 2006 mrueckert@suse.de
- removed unneeded build requires
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Jan 19 2006 mrueckert@suse.de
- update to version 0.7.8
- adapt new scripts in openwbem
- fix test suite installation.
* Mon Apr 04 2005 ro@suse.de
- added syslogd to neededforbuild
* Wed Nov 24 2004 ro@suse.de
- fixed file list (again)
* Mon Nov 22 2004 nashif@suse.de
- syslog_log core dumps with Pegasus cimserver when a log
  file has junk characters (#48393)
* Thu Nov 11 2004 ro@suse.de
- fixed file list
* Fri May 21 2004 nashif@suse.de
- Fix #40934: syslog-conf provider testsuite testcases fail
- Fix #40995: Syslog-log provider hangs in testsuite test
- Fix #40993: syslog-log provider memory leaks
* Wed May 12 2004 nashif@suse.de
- Do not De-register when updating package
* Mon May 10 2004 nashif@suse.de
- #40302: install provider tests
* Fri May 07 2004 nashif@suse.de
- Deregister provider with pegasus when uninstalling (#39667)
- #40013: syslog-service provider does not have the right
  version of the syslogserviceutil.c file
* Wed Apr 14 2004 nashif@suse.de
- Added PreReq for loadmof.sh
* Tue Apr 06 2004 nashif@suse.de
- Initial version
openSUSE Build Service is sponsored by