diff options
author | Michal Minar <miminar@redhat.com> | 2013-08-06 16:38:29 +0200 |
---|---|---|
committer | Michal Minar <miminar@redhat.com> | 2013-08-06 17:06:02 +0200 |
commit | b9f795b8b9196c42d93d9d0022d2c4a02377844e (patch) | |
tree | 24f0ff11eb31a08cbe43f9080e13db42d0c1fecb /openlmi-providers.spec | |
parent | 7bcc322fc674dcbf902a8989b0de183caeaad5d9 (diff) | |
download | openlmi-providers-b9f795b8b9196c42d93d9d0022d2c4a02377844e.tar.gz openlmi-providers-b9f795b8b9196c42d93d9d0022d2c4a02377844e.tar.xz openlmi-providers-b9f795b8b9196c42d93d9d0022d2c4a02377844e.zip |
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.
Diffstat (limited to 'openlmi-providers.spec')
-rw-r--r-- | openlmi-providers.spec | 8 |
1 files changed, 7 insertions, 1 deletions
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 <miminar@redhat.com> 0.1.0-2 +- Make lmi namespace directory compatible for user installed python eggs. + * Wed Jul 31 2013 Radek Novacek <rnovacek@redhat.com> 0.1.0-1 - Version 0.1.0 |