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

#
# spec file for package sblim-cmpi-params (Version 1.3.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 http://bugs.opensuse.org/
#

# norootforbuild


Name:           sblim-cmpi-params
Url:            http://sblim.wiki.sourceforge.net/
BuildRequires:  gcc-c++ openslp-devel openssl-devel pam-devel sblim-cmpi-base-devel sblim-indication_helper-devel sblim-sfcb sblim-testsuite
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        SBLIM Linux Kernel Parameter Instrumentation for CMPI
Version:        1.3.0
Release:        1
Group:          System/Management
License:        Eclipse Public License 1.0
Requires:       sblim-cmpi-base >= 1.2.3, cim-server
Source0:        http://prdownloads.sourceforge.net/sblim/sblim-cmpi-params-%{version}.tar.bz2
#!BuildIgnore:  tog-pegasus

%description
The various kernel parameter providers in this package expose the Linux
kernel parameters that are accessible under subdirs of /proc/sys/. Each
subdir contains kernel parameters for the respective kernel function,
and is implemented as a separate CIM_Setting subclass. Each provider
acts as instrumentation for that particular kernel parameter subclass.

The respective kernel parameter providers allow an administrator to
view and possibly modify the many different kernel parameters of a
Linux system via the CIMOM. All kernel parameters settings can be
viewed, however only those parameters whose associated file is
writeable can be modified.



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

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

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

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

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

%post
%define mofs Linux_ABIParameter Linux_KernelParameter Linux_FileSystemParameter Linux_NetworkCoreParameter Linux_NetworkIPv4Parameter Linux_NetworkUnixParameter Linux_VirtualMemoryParameter
# compile MOF
d=%_datadir/%name
for i in %mofs; do
	$d/provider-register.sh -r $d/$i.registration -m $d/$i.mof
done

%preun
if [ "$1" = 0 ]; then
	d=%_datadir/%name
	for i in %mofs; do
		$d/provider-register.sh -d -r $d/$i.registration -m $d/$i.mof
	done
fi

%files
%defattr(-,root,root)
%{_libdir}/cmpi/*.so
%{_datadir}/sblim-testsuite/*
%{_datadir}/%{name}
%doc %{_docdir}/%{name}

%changelog