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

#
# spec file for package sblim-cmpi-service (Version 0.8.2)
#
# Copyright (c) 2009 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/
#



Name:           sblim-cmpi-service
BuildRequires:  gcc-c++ openssl-devel pam-devel sblim-cmpi-base-devel sblim-indication_helper-devel sblim-testsuite
%if 0%{?rhel_version} + 0%{?centos_version} == 0
BuildRequires:  openslp-devel
%endif
Url:            http://sblim.wiki.sourceforge.net/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        SBLIM Linux Service Instrumentation for CMPI
Version:        0.8.2
Release:        86
Group:          System/Management
License:        IBM Public License
Requires:       sblim-cmpi-base >= 1.2.3, cim-server
Source0:        http://prdownloads.sourceforge.net/sblim/sblim-cmpi-service-%{version}.tar.bz2
PreReq:         sblim-sfcb
#!BuildIgnore:  tog-pegasus

%description
Standards Based Linux Instrumentation Base Service CMPI Providers for
System-related CIM classes


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

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

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

%install
%if 0%{?suse_version}
%makeinstall docdir=%{_docdir}/%{name}
%else
make install DESTDIR=%{buildroot} docdir=%{_docdir}/%{name}-%{version}
%endif
rm %buildroot%_libdir/cmpi/*.la
rm %buildroot%_libdir/*.la

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%post
%define mof Linux_Service
# compile MOF
d=%_datadir/%name
$d/provider-register.sh -t sfcb -r $d/%{mof}.registration -m $d/%{mof}.mof

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

%files
%defattr(-,root,root)
# skip-check-libtool-deps
%{_libdir}/cmpi/*.so*
%{_libdir}/*.so*
%{_datadir}/%{name}
%if 0%{?suse_version}
%doc %{_docdir}/%{name}
%else
%doc %{_docdir}/%{name}-%{version}
%endif
/usr/include/sblim/cimlxs.h
/usr/bin/listservices

%changelog
openSUSE Build Service is sponsored by