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

#
# spec file for package sblim-cmpi-rpm (Version 1.0.1)
#
# 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-rpm
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gcc-c++
BuildRequires:  libtool
BuildRequires:  openssl-devel
BuildRequires:  pam-devel
BuildRequires:  sblim-cmpi-base-devel
BuildRequires:  sblim-indication_helper-devel
BuildRequires:  sblim-testsuite
%if 0%{?suse_version}
BuildRequires:  openslp-devel
%endif
Url:            http://sblim.wiki.sourceforge.net/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        SBLIM Linux RPM Instrumentation for CMPI
Version:        1.0.1
Release:        86
Group:          System/Management
License:        CPL-1.0
Requires:       sblim-cmpi-base >= 1.2.3, cim-server
Requires(post): /sbin/ldconfig
Source0:        http://prdownloads.sourceforge.net/sblim/sblim-cmpi-rpm-%{version}.tar.bz2
Patch1:         0001-link-with-libdl.patch
Patch2:         0002-Define-PAGE_SIZE.patch
Patch3:         0003-Make-dependencies-explicit.patch
Patch4:         0004-Fix-prototypes.patch
PreReq:         sblim-sfcb
#!BuildIgnore:  tog-pegasus

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

%package devel
Summary: Devel side of sblim-cmpi-rpm

%description devel
Development files of sblim-cmpi-rpm

%prep
%setup -q -n %{name}-%{version}
%patch -P1 -p1
%patch -P2 -p1
%patch -P3 -p1
%patch -P4 -p1
autoreconf -f -i

%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

%post
/sbin/ldconfig
%define mof Linux_RpmPackage
# 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

%postun
/sbin/ldconfig

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

%files devel
%defattr(-,root,root)
%{_libdir}/cmpi/*.so
%{_libdir}/*.so
/usr/include/sblim/cimrpm.h
/usr/include/sblim/cimrpmfp.h
      
%changelog
openSUSE Build Service is sponsored by