From b9f795b8b9196c42d93d9d0022d2c4a02377844e Mon Sep 17 00:00:00 2001 From: Michal Minar Date: Tue, 6 Aug 2013 16:38:29 +0200 Subject: providers: fixed installation of python lmi namespace package Setuptools do not install __init__ module of top-level namespace module, which prevents user installed eggs from being loaded. This commit adds installation statements to spec itself. --- openlmi-providers.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'openlmi-providers.spec') diff --git a/openlmi-providers.spec b/openlmi-providers.spec index 84a3c56..edcd312 100644 --- a/openlmi-providers.spec +++ b/openlmi-providers.spec @@ -2,7 +2,7 @@ Name: openlmi-providers Version: 0.1.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Set of basic CIM providers License: LGPLv2+ @@ -239,6 +239,7 @@ rm -rf "$RPM_BUILD_ROOT"/usr/lib/python* pushd src/python %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT +cp -p lmi/__init__.* $RPM_BUILD_ROOT%{python2_sitelib}/lmi popd # src/python # for software providers @@ -331,6 +332,8 @@ mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/lib/%{name} %files -n openlmi-python-base %doc README COPYING %dir %{python_sitelib}/lmi +%{python_sitelib}/lmi/__init__.py +%{python_sitelib}/lmi/__init__.py[co] %{python_sitelib}/lmi-* %dir %{python_sitelib}/lmi/base %{python_sitelib}/lmi/base/*.py @@ -679,6 +682,9 @@ if [ "$1" -eq 0 ]; then fi >> %logfile 2>&1 %changelog +* Tue Aug 06 2013 Michal Minar 0.1.0-2 +- Make lmi namespace directory compatible for user installed python eggs. + * Wed Jul 31 2013 Radek Novacek 0.1.0-1 - Version 0.1.0 -- cgit