File python-pywbem.spec of Package python-pywbem

#
# spec file for package python-pywbem (Version 0.7)
#
# 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/
#

# norootforbuild

%define srcversion 0.7.0

Name:           python-pywbem
BuildRequires:  python-devel python-xml
Version:        0.7
Release:        9
Group:          System/Management
Summary:        Python module for making CIM operation calls using the WBEM protocol
License:        LGPL v2.1 or later
Url:            http://pywbem.sf.net/
Source0:        pywbem-%{srcversion}.tar.gz
Requires:       python-xml
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
PyWBEM is a Python module for making CIM operation calls using the WBEM
protocol to query and update managed objects.



Authors:
--------
    Tim Potter <tpot@hp.com>

%prep
%setup  -q -n pywbem-%{srcversion}

%build
ln -s . pywbem
python setup.py build

%install
%{__rm} -rf $RPM_BUILD_ROOT
python setup.py install --prefix=%{_prefix} \
		--root $RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
chmod +x $RPM_BUILD_ROOT%{python_sitelib}/pywbem/mof_compiler.py
chmod +x $RPM_BUILD_ROOT%{python_sitelib}/pywbem/wbemcli.py
install -d $RPM_BUILD_ROOT/usr/bin
ln -s %{python_sitelib}/pywbem/mof_compiler.py $RPM_BUILD_ROOT/usr/bin/mofcomp
ln -s %{python_sitelib}/pywbem/wbemcli.py $RPM_BUILD_ROOT/usr/bin/pywbemcli
# END OF INSTALL

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%files -f INSTALLED_FILES
%defattr(-,root,root,-)
/usr/bin/mofcomp
/usr/bin/pywbemcli
%doc README 

%changelog
openSUSE Build Service is sponsored by