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

#
# spec file for package sblim-cmpi-fsvol (Version 1.4.4)
#
# 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-fsvol
BuildRequires:  gcc-c++ sblim-cmpi-base-devel sblim-cmpi-devel sblim-indication_helper-devel sblim-sfcb sblim-testsuite
Version:        1.4.4
Release:        80
Group:          System/Management
License:        IBM Public License
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       sblim-cmpi-base, cim-server
Url:            http://sblim.wiki.sourceforge.net/
Source:         http://prdownloads.sourceforge.net/sblim/%{name}-%{version}.tar.bz2
Summary:        SBLIM File System & Volume Mgmt. Instrumentation for CMPI

%description
The Filesystem & Volume Management Instrumentation allows you to get
information about mounted ( /etc/mtab ) and unmounted ( /etc/fstab )
filesystems via CIMOM technology/infrastructure.



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

%prep
%setup -n %{name}-%{version}

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

%install
%makeinstall docdir=%{_docdir}/%{name}
rm %buildroot%_libdir/cmpi/*.la
rm %buildroot%_libdir/*.la

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

%pre
# If upgrading/not new install/not removing, deregister old version
if [ $1 -gt 1 ]
then
  %{_datadir}/%{name}/provider-register.sh -d -r %{_datadir}/%{name}/*.registration -m %{_datadir}/%{name}/*.mof
fi

%post
# compile MOF
/sbin/ldconfig
%{_datadir}/%{name}/provider-register.sh -r %{_datadir}/%{name}/*.registration -m %{_datadir}/%{name}/*.mof

%preun
if [ "$1" = "0" ]; then
  %{_datadir}/%{name}/provider-register.sh -d -r %{_datadir}/%{name}/*.registration -m %{_datadir}/%{name}/*.mof
fi

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root) 
%{_libdir}/cmpi/*.so
%{_libdir}/*.so
%{_libdir}/*.so.*
%doc %{_docdir}/%{name}
%dir %{_datadir}/sblim-cmpi-fsvol/
%{_datadir}/sblim-cmpi-fsvol/
# split out to devel pkg?
%{_includedir}/sblim/*.h
# %files testsuite
# %defattr(-,root,root)
%{_datadir}/sblim-testsuite/*

%changelog
* Mon Aug 25 2008 npaxton@novell.com
- Switch from provider-register.sh from sblim-cmpi-base to
  locally-provided provider-register.sh
* Wed Jul 09 2008 npaxton@novell.com
- Added BuildRequires dependency on sblim-sfcb so can control the
  cimom used for testing install of resulting rpm's
* Wed Jul 09 2008 npaxton@novell.com
- switch from loadmof.sh to provider-register.sh to add support for
  sfcb cimom
- minor spec file changes to bring sles10-sp2 and stable in sync
* Thu Nov 01 2007 mmarek@suse.cz
- updated to 1.4.4
  fixed upstream bugs:
  - 1597688 Fixed data gathering that caused seg faults
  - 1601706 Fixed unresolved symbols in shared lib
- removed static libs
* Wed Mar 15 2006 mrueckert@suse.de
- update to version 1.4.3  (#142308)
  (fixing the following upstream bugs)
  o Bugs 1199129, 1203849: Updates for warning-free compilation
  with CMPI headers >= 1.0.0.
  o Bugs 1353262: Better support for Fedora/RH RPM environment.
  o Bugs 1328734: Fixed range for kb_read and kb_transfered
  o Bugs 1285011: 1285324: Fixed portability issues.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Nov 02 2005 mrueckert@suse.de
- update to 1.4.2
* Thu Nov 11 2004 ro@suse.de
- fixed file list
* Wed May 12 2004 nashif@suse.de
- Do not De-register when updating package
* Mon May 10 2004 nashif@suse.de
- De-register providers when package is uninstalled (#39667)
* Tue May 04 2004 nashif@suse.de
- Remove binaries from tar archive (#39844)
* Thu Apr 29 2004 nashif@suse.de
- Update to 1.2.5
* Wed Apr 14 2004 nashif@suse.de
- Added PreReq for loadmof.sh
* Tue Apr 06 2004 nashif@suse.de
- Initial Release
openSUSE Build Service is sponsored by