Fix module imports in /usr/bin/mofcomp
This commit is contained in:
parent
5f26681e28
commit
f0a508380c
22
pywbem-20130411-mof_compiler-import.patch
Normal file
22
pywbem-20130411-mof_compiler-import.patch
Normal file
@ -0,0 +1,22 @@
|
||||
diff -up pywbem-20130411/mof_compiler.py.bak pywbem-20130411/mof_compiler.py
|
||||
--- pywbem-20130411/mof_compiler.py.bak 2009-07-30 00:55:26.000000000 +0200
|
||||
+++ pywbem-20130411/mof_compiler.py 2013-05-24 17:40:16.684813502 +0200
|
||||
@@ -20,12 +20,12 @@
|
||||
|
||||
import sys
|
||||
import os
|
||||
-import lex
|
||||
-import yacc
|
||||
-from lex import TOKEN
|
||||
-from cim_operations import CIMError, WBEMConnection
|
||||
-from cim_obj import *
|
||||
-from cim_constants import *
|
||||
+from pywbem import lex
|
||||
+from pywbem import yacc
|
||||
+from pywbem.lex import TOKEN
|
||||
+from pywbem.cim_operations import CIMError, WBEMConnection
|
||||
+from pywbem.cim_obj import *
|
||||
+from pywbem.cim_constants import *
|
||||
from getpass import getpass
|
||||
|
||||
_optimize = 1
|
||||
@ -4,7 +4,7 @@
|
||||
|
||||
Name: pywbem
|
||||
Version: 0.7.0
|
||||
Release: 9.%{revdate}svn%{svnrev}%{?dist}
|
||||
Release: 10.%{revdate}svn%{svnrev}%{?dist}
|
||||
Summary: Python WBEM Client and Provider Interface
|
||||
Group: Development/Libraries
|
||||
License: LGPLv2
|
||||
@ -19,6 +19,9 @@ BuildArch: noarch
|
||||
Requires: python-twisted-core
|
||||
Requires: python-twisted-web
|
||||
|
||||
# fix module imports in /usr/bin/mofcomp
|
||||
Patch0: pywbem-20130411-mof_compiler-import.patch
|
||||
|
||||
%description
|
||||
A Python library for making CIM (Common Information Model) operations over HTTP
|
||||
using the WBEM CIM-XML protocol. It is based on the idea that a good WBEM
|
||||
@ -35,6 +38,7 @@ easiest way to write providers on the planet.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{revdate}
|
||||
%patch0 -p1 -b .mofcomp-imports
|
||||
|
||||
%build
|
||||
CFLAGS="%{optflags}" %{__python} setup.py build
|
||||
@ -58,6 +62,9 @@ rm -rf %{buildroot}
|
||||
%doc README
|
||||
|
||||
%changelog
|
||||
* Fri May 24 2013 Tomas Bzatek <tbzatek@redhat.com> 0.7.0-10.20130411svn619
|
||||
- Fix module imports in /usr/bin/mofcomp
|
||||
|
||||
* Thu Apr 11 2013 Jan Safranek <jsafrane@redhat.com> 0.7.0-9.20130411svn619
|
||||
- New upstream version.
|
||||
- Removed debug 'print' statements.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user