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

# spec file for package sblim-cmpi-fsvol (Version 1.5.0)
# Copyright (c) 2010 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

# 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.5.0
Release:        2
Group:          System/Management
License:        Eclipse Public License
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       sblim-cmpi-base, cim-server
Summary:        SBLIM File System & Volume Mgmt. Instrumentation for CMPI
#!BuildIgnore:  tog-pegasus

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

    SBLIM Project

%package devel
License:        Eclipse Public License
Summary:        SBLIM File System & Volume Mgmt. Instrumentation Header Development Files
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}

%description devel
SBLIM File System & Volume Mgmt. Provider Development Package

    SBLIM Project

%package testsuite
License:        Eclipse Public License 1.0
Summary:        SBLIM File System & Volume Mgmt. Instrumentation (test suite)
Group:          System/Management
Requires:       %{name} = %{version}
Requires:       sblim-testsuite

%description testsuite
Test suite for the Standards Based Linux Instrumentation File System & Volume Mgmt. Providers

    SBLIM Project

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

%configure TESTSUITEDIR=%{_datadir}/sblim-testsuite --disable-static

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

%{__rm} -rf %{buildroot}
%define PEGASUS_MOF CIM_UnixLocalFileSystem,CIM_NFS,CIM_HostedFileSystem,CIM_BootOSFromFS

if [ "$1" -gt 1 ]; then
  $d/ -d -r $d/*.registration -m $d/*.mof

# compile MOF
# Register Schema and Provider - this is higly provider specific  
# tog-pegasus needs some schemes registered first  
if [ -x /usr/bin/ ]; then -n root/cimv2 /usr/share/mof/cim-current/*/{%{PEGASUS_MOF}}.mof  
    rctog-pegasus try-restart  
# and then following script can handle registration for various providers  
$d/ -r $d/*.registration -m $d/*.mof

if [ "$1" = "0" ]; then
  $d/ -d -r $d/*.registration -m $d/*.mof

%postun -p /sbin/ldconfig

%doc %{_docdir}/%{name}
%dir %{_datadir}/%{name}/

%files devel

%files testsuite
%dir %{_datadir}/sblim-testsuite

openSUSE Build Service is sponsored by