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

# norootforbuild

Name:           sblim-cmpi-params
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
#!BuildIgnore:  tog-pegasus

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.

    SBLIM Project

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

%configure --disable-static

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

%{__rm} -rf %{buildroot}

%define mofs Linux_ABIParameter Linux_KernelParameter Linux_FileSystemParameter Linux_NetworkCoreParameter Linux_NetworkIPv4Parameter Linux_NetworkUnixParameter Linux_VirtualMemoryParameter
# compile MOF
for i in %mofs; do
	$d/ -r $d/$i.registration -m $d/$i.mof

if [ "$1" = 0 ]; then
	for i in %mofs; do
		$d/ -d -r $d/$i.registration -m $d/$i.mof

%doc %{_docdir}/%{name}

openSUSE Build Service is sponsored by