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

#
# spec file for package sblim-cmpi-base (Version 1.5.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-cmpi-base
BuildRequires:  gcc-c++ sblim-cmpi-devel sblim-indication_helper-devel sblim-sfcb sblim-testsuite
Version:        1.5.6
Release:        95
Group:          System/Management
License:        IBM Public License
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       cim-server cim-schema
Url:            http://sblim.wiki.sourceforge.net/
Source0:        http://prdownloads.sourceforge.net/sblim/%{name}-%{version}.tar.bz2
Source1:        sblim-cmpi-base-rpmlintrc
#Patch0:         provider-register-with-ns.patch
#Patch1:         provider-register-with-ow-loadmof.patch
Summary:        SBLIM Base Instrumentation

%description
Standards Based Linux Instrumentation Base Providers



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

%package devel
License:        IBM Public License
Summary:        SBLIM Base Instrumentation Header Development Files
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}

%description devel
SBLIM Base Provider Development Package



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

%package testsuite
License:        IBM Public License
Summary:        SBLIM Base Instrumentation (test suite)
Group:          System/Management
Requires:       %{name} = %{version}
Requires:       sblim-testsuite

%description testsuite
Test suite for the Standards Based Linux Instrumentation Base Providers



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

%prep
%setup -T -b 0 -n %{name}-%{version}
#%patch0 -b .provider-register-with-ns.patch
#%patch1 -b .provider-register-with-ow-loadmof.patch

%build
autoreconf -fi
%configure TESTSUITEDIR=%{_datadir}/sblim-testsuite --disable-static
%{__make}

%install
%makeinstall docdir=%{_docdir}/%{name}
# don't delete .la's until we sort out if sfcb/openwbem/pegasus use ltdlopen()
# %{__rm} %{buildroot}%{_libdir}/{libcmpiOSBase_Common,libdmiinfo}.la
# remove unused libtool files
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.a
rm -f $RPM_BUILD_ROOT/%{_libdir}/cmpi/*.a
rm -f $RPM_BUILD_ROOT/%{_libdir}/cmpi/*.la

%clean

%pre
# definition of schema and registration files
%define SCHEMA %{_datadir}/%{name}/Linux_Base.mof %{_datadir}/%{name}/Linux_BaseIndication.mof
%define REGISTRATION %{_datadir}/%{name}/Linux_BaseIndication.registration
# If upgrading, deregister old version
if [ $1 -gt 1 ]
then
  %{_datadir}/%{name}/provider-register.sh -d \
	-r %{REGISTRATION} -m %{SCHEMA} > /dev/null ||:
fi

%post
# Register Schema and Provider - this is higly provider specific
%{_datadir}/%{name}/provider-register.sh \
	-r %{REGISTRATION} -m %{SCHEMA} > /dev/null ||:
/sbin/ldconfig

%preun
# Deregister only if not upgrading 
if [ $1 -eq 0 ]
then
  %{_datadir}/%{name}/provider-register.sh -d \
	-r %{REGISTRATION} -m %{SCHEMA} > /dev/null ||:
fi

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root) 
%doc %{_docdir}/%{name}
%dir %{_libdir}/cmpi/
%{_libdir}/cmpi/libcmpiOSBase*.so
%{_libdir}/libcmpiOSBase_Common.so.*
%{_libdir}/libdmiinfo.so.*
%dir %{_datadir}/%{name}/
%{_datadir}/%{name}/provider-register.sh
%{_datadir}/%{name}/Linux_Base*
#possibly needed atm, as per above comment... leaving for now
%{_libdir}/libcmpiOSBase_Common.la
%{_libdir}/libdmiinfo.la

%files devel
%defattr(-,root,root)
%dir %{_includedir}/sblim
%{_includedir}/sblim/*
%{_libdir}/libcmpiOSBase_Common.so
%{_libdir}/libdmiinfo.so

%files testsuite
%defattr(-,root,root)
%dir %{_datadir}/sblim-testsuite
%dir %{_datadir}/sblim-testsuite/cim
%dir %{_datadir}/sblim-testsuite/system
%dir %{_datadir}/sblim-testsuite/system/linux
%{_datadir}/sblim-testsuite/test-cmpi-base.sh
%{_datadir}/sblim-testsuite/cim/Linux*.cim
%{_datadir}/sblim-testsuite/system/linux/*.pl
%{_datadir}/sblim-testsuite/system/linux/*.system
%{_datadir}/sblim-testsuite/system/linux/Linux_OperatingSystem.version.sh
%{_datadir}/sblim-testsuite/system/linux/createKeyFiles.sh

%changelog
* Mon Aug 25 2008 npaxton@novell.com
- Revert back some of changes:
  remove symlink in /usr/sbin
  remove namespace and ow-loadmof patches in provider-register.sh
* Wed Jul 09 2008 npaxton@novell.com
- Fix docdir issues in spec file
* Wed Jul 09 2008 npaxton@novell.com
- Minor spec file cleanup
  -remove 'rm -rf buildroot'
  -move .la back to main pkg
* Mon Jul 07 2008 npaxton@novell.com
- Sync spec file between sle10-sp2 and stable
- Add symlink to this package's provider-register.sh from
  /usr/sbin : several other packages will use this package's
  provider-register script, and can't access script in
  fully-qualified path in /usr/share
* Fri May 30 2008 npaxton@novell.com
- change registration from loadmof to provider-register to support
  multiple cimoms, then modified provider-register.sh to use
  ow-loadmof.sh and ow-rmmof.sh for openwbem cimom
- added dependency on sblim-indication_helper-devel so will build
  indication support
* Sun Aug 05 2007 mrueckert@suse.de
- update to version 1.5.6
  o Bugs
    - 1626832 Test cases for class Linux_BaseBoard and association
  Linux_CSBaseBoard added
- additional changes from 1.5.5
  o Bugs
    - 1368636 Fixed infinite recursion with trace level 4.
    - 1395363 Fixed postinstall step location dependence.
- removed included patches:
  cmpi-base-proc-ia64.patch
  sblim-cmpi-base-processutil.patch
- fixed and ignored a few rpmlint warnings
- no longer build static libs
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Jan 19 2006 mrueckert@suse.de
- replaced my header patch with a patch from upstream
* Sun Jan 15 2006 mrueckert@suse.de
- fixed Makefile to install all headers. some headers where missing
  but required for other modules.
* Mon Nov 14 2005 mrueckert@suse.de
- Fix CPU detecion on ia64.[#95989]
* Wed Oct 26 2005 mrueckert@suse.de
- Use openwbem instead of pegasuswbem.
- Update to version 1.5.4.
* Mon Sep 26 2005 mls@suse.de
- make devel package require base package
* Mon Nov 15 2004 ro@suse.de
- fixed file list
* Tue May 18 2004 nashif@suse.de
- Fix issue with empty dnsdomainname resulting in grep errors
* Mon May 17 2004 ro@suse.de
- fix spec file
* Wed May 12 2004 nashif@suse.de
- Do not deregister providers when updating package
* Mon May 10 2004 nashif@suse.de
- #40275: consistence test for class Linux_Processor fails
  on Linux on S390
- Dereigster providers when uninstalling (#39667)
* Thu Apr 29 2004 nashif@suse.de
- Install testsuite files
* Fri Apr 16 2004 nashif@suse.de
- Update version with bugfixes from IBM
* Wed Apr 14 2004 nashif@suse.de
- Added PreReq for loadmof.sh (#38891)
* Tue Apr 06 2004 nashif@suse.de
- Update to latest version from the sblim project
- register providers in %%post
- Requires cim-server
* Mon Mar 29 2004 ro@suse.de
- add x86_64/ia64 to platform.sh that code is just looking
  at proc/cpuinfo anyway
* Tue Mar 23 2004 meissner@suse.de
- really apply fpic patch.
* Tue Mar 23 2004 meissner@suse.de
- fixed lib64 handling, added -fPIC and RPM_OPT_FLAGS.
* Mon Mar 22 2004 nashif@suse.de
- Initial Release
openSUSE Build Service is sponsored by