[openlmi-storage/f20] Fixed python namespace registration.
Jan Šafránek
jsafrane at fedoraproject.org
Mon Sep 2 10:34:16 UTC 2013
commit 195410d1151858002eab853f61b1500689ac1ebc
Author: Jan Safranek <jsafrane at redhat.com>
Date: Mon Sep 2 12:33:59 2013 +0200
Fixed python namespace registration.
openlmi-storage-0.5.3-sfcb.patch | 541 ---------------------------------
openlmi-storage-0.6.0-namespace.patch | 12 +
openlmi-storage.spec | 9 +-
3 files changed, 20 insertions(+), 542 deletions(-)
---
diff --git a/openlmi-storage-0.6.0-namespace.patch b/openlmi-storage-0.6.0-namespace.patch
new file mode 100644
index 0000000..bf6b761
--- /dev/null
+++ b/openlmi-storage-0.6.0-namespace.patch
@@ -0,0 +1,12 @@
+diff -up openlmi-storage-0.6.0/setup.py.orig openlmi-storage-0.6.0/setup.py
+--- openlmi-storage-0.6.0/setup.py.orig 2013-09-02 12:23:00.730891006 +0200
++++ openlmi-storage-0.6.0/setup.py 2013-09-02 12:23:07.481869700 +0200
+@@ -28,7 +28,7 @@ setup(
+ url='https://fedorahosted.org/openlmi/',
+ version='0.6.0',
+ package_dir={'': 'src'},
+- namespace_packages = ['lmi.storage'],
++ namespace_packages = ['lmi'],
+ packages=['lmi', 'lmi.storage', 'lmi.storage.util'],
+ classifiers=[
+ 'License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)',
diff --git a/openlmi-storage.spec b/openlmi-storage.spec
index 53b71d6..d0ceb15 100644
--- a/openlmi-storage.spec
+++ b/openlmi-storage.spec
@@ -2,7 +2,7 @@
Name: openlmi-storage
Version: 0.6.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: CIM providers for storage management
License: LGPLv2+
@@ -26,6 +26,9 @@ Requires(post): openlmi-providers >= 0.2.0
# For LMI_LogicalFile:
Requires: openlmi-logicalfile
+# Fix the python package namespaces
+Patch0: openlmi-storage-0.6.0-namespace.patch
+
%description
The openlmi-storage package contains CMPI providers for management of storage
using Common Information Managemen (CIM) protocol.
@@ -44,6 +47,7 @@ Summary: Documentation for %{name}
%prep
%setup -q
+%patch0 -p1 -b .namespace
%build
%{__python} setup.py build
@@ -142,6 +146,9 @@ fi >> %logfile 2>&1
%{_docdir}/%{name}/admin_guide
%changelog
+* Mon Sep 2 2013 Jan Safranek <jsafrane at redhat.com> - 0.6.0-2
+- Fixed python namespace registration.
+
* Thu Aug 29 2013 Jan Safranek <jsafrane at redhat.com> - 0.6.0-1
- New upstrem version.
- Added documentation to openlmi-storage-doc subpackage.
More information about the scm-commits
mailing list