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
Source0: http://prdownloads.sourceforge.net/sblim/sblim-cmpi-rpm-%{version}.tar.bz2
Patch0: link-with-libdl.patch
Patch1: page_size.patch
PreReq: sblim-sfcb
#!BuildIgnore: tog-pegasus
%description
Standards Based Linux Instrumentation Base RPM CMPI Providers for
System-related CIM classes
%prep
%setup -q -n %{name}-%{version}
%patch0 -p1
%patch1 -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
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%post
%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
%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
/usr/include/sblim/cimrpm.h
/usr/include/sblim/cimrpmfp.h
%changelog