File omc-simple-identity-management-provider.spec of Package omc-simple-identity
#
# spec file for package omc-simple-identity-management-provider (Version 1.0)
#
# norootforbuild
#
Name: omc-simple-identity-management-provider
BuildRequires: python-devel
BuildRequires: openwbem
BuildRequires: cmpi-pywbem-base
%if 0%{?fedora} == 17
BuildRequires: -pywbem
%endif
BuildRequires: python-pywbem
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Version: 1.0
Release: 0
Group: System/Management
Summary: An open-source instrumentation of DMTF Simple Identity Management SMASH profiles providers used by the OpenWBEM CIMOM
License: Commercial, Other License(s), see package
URL: http://developer.novell.com/wiki/index.php/OMC/
Packager: Sriram Rajamani <rsriram@novell.com>
# "yes" is the default, but we put it here explicitly to avoid someone setting it to "no"
AutoReqProv: yes
PreReq: /usr/bin/loadmof.sh
Requires: rpm-python
Requires: python-pywbem
Requires: openwbem openwbem-python-providerifc
Requires: cim-schema >= 2.14
Requires: cmpi-pywbem-base
Source0: %{name}-%{version}.tar.bz2
%description
An Open-Source Linux instrumentation of the Distributed Management Task Force
(DMTF) Systems Managements Architecture for Server Hardware (SMASH)
profile providers used by the OpenWBEM (Web Based Enterprise
Management) Common Information Model Object Manager (CIMOM) for
OpenWBEM (Web Based Enterprise Management).
This suite of specifications delivers architectural semantics, along
with industry standard protocols and profiles, to unify management of
the data center. This profile is written for the Simple Identity Management
Profile.
Authors:
--------
Sriram Rajamani
Shaily Goel
Periyasamy Palanisamy
Amudhan Gunasekaran
Balasubramanyam
%prep
%setup
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root %{buildroot} \
--install-lib=/usr/lib/pycim -O1
install -d %{buildroot}/usr/share/mof/%{name}
install *.mof %{buildroot}/usr/share/mof/%{name}
install *.reg %{buildroot}/usr/share/mof/%{name}
# END OF INSTALL
%clean
%files
%defattr(-,root,root,-)
/usr/lib/pycim/*
%dir /usr/share/mof/%{name}
/usr/share/mof/%{name}/*.mof
/usr/share/mof/%{name}/*.reg
%post
loadmof.sh -n root/cimv2 /usr/share/mof/%{name}/OMC_UserAccountManagementService.mof
loadmof.sh -n root/cimv2 /usr/share/mof/%{name}/OMC_UserAccntMgmtHostedService.mof
loadmof.sh -n root/cimv2 /usr/share/mof/%{name}/OMC_AccountManagementCapabilities.mof
loadmof.sh -n root/cimv2 /usr/share/mof/%{name}/OMC_AccountElementCapabilities.mof
loadmof.sh -n root/cimv2 /usr/share/mof/%{name}/OMC_Account.mof
loadmof.sh -n root/cimv2 /usr/share/mof/%{name}/OMC_AccountOnSystem.mof
loadmof.sh -n root/cimv2 /usr/share/mof/%{name}/OMC_Identity.mof
loadmof.sh -n root/cimv2 /usr/share/mof/%{name}/OMC_AssignedIdentity.mof
loadmof.sh -n Interop /usr/share/mof/%{name}/*.reg
%preun
rmmof.sh -n root/cimv2 /usr/share/mof/%{name}/OMC_UserAccountManagementService.mof > /dev/null 2>&1 || :
rmmof.sh -n root/cimv2 /usr/share/mof/%{name}/OMC_UserAccntMgmtHostedService.mof > /dev/null 2>&1 || :
rmmof.sh -n root/cimv2 /usr/share/mof/%{name}/OMC_AccountManagementCapabilities.mof > /dev/null 2>&1 || :
rmmof.sh -n root/cimv2 /usr/share/mof/%{name}/OMC_AccountElementCapabilities.mof > /dev/null 2>&1 || :
rmmof.sh -n root/cimv2 /usr/share/mof/%{name}/OMC_Account.mof > /dev/null 2>&1 || :
rmmof.sh -n root/cimv2 /usr/share/mof/%{name}/OMC_AccountOnSystem.mof > /dev/null 2>&1 || :
rmmof.sh -n root/cimv2 /usr/share/mof/%{name}/OMC_Identity.mof > /dev/null 2>&1 || :
rmmof.sh -n root/cimv2 /usr/share/mof/%{name}/OMC_AssignedIdentity.mof > /dev/null 2>&1 || :
rmmof.sh -n Interop /usr/share/mof/%{name}/*.reg > /dev/null 2>&1 || :
%changelog -n omc-simple-identity-management-provider
* Fri Aug 03 2007 - rsriram@novell.com
- First build