X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ta%2Fconfig-manager.git;a=blobdiff_plain;f=config-manager.spec;fp=config-manager.spec;h=eae2d5832b476677e5ab820f3893fca132f1cdf2;hp=6620c8a0ce0f4b0a44d84ed8a17bf47f68af3ed2;hb=8a3f88d0dbf6afdb0130b9d35e563f8a54d15d44;hpb=87d5aa1e6151010af819612a0a953ee90431607e diff --git a/config-manager.spec b/config-manager.spec index 6620c8a..eae2d58 100644 --- a/config-manager.spec +++ b/config-manager.spec @@ -21,8 +21,9 @@ Source0: %{name}-%{version}.tar.gz Vendor: %{_platform_vendor} BuildArch: noarch -BuildRequires: python -BuildRequires: python-setuptools +BuildRequires: python2 +BuildRequires: python2-setuptools +Requires: python2, redis, python2-eventlet, python2-routes, python2-redis, python2-setuptools, python2-prettytable, python2-requests, python2-netaddr %description This RPM contains source code for the config manager. @@ -50,7 +51,7 @@ cp cmframework/systemd/cmagent.service %{buildroot}/usr/lib/systemd/system mkdir -p %{buildroot}/%{_python_site_packages_path}/cmframework/ set -e -cd cmframework/src && python setup.py install --root %{buildroot} --no-compile --install-purelib %{_python_site_packages_path} --install-scripts %{_platform_bin_path} && cd - +cd cmframework/src && python2 setup.py install --root %{buildroot} --no-compile --install-purelib %{_python_site_packages_path} --install-scripts %{_platform_bin_path} && cd - cd cmdatahandlers && python setup.py install --root %{buildroot} --no-compile --install-purelib %{_python_site_packages_path} --install-scripts %{_platform_bin_path} && cd - @@ -80,6 +81,7 @@ cd hostcli && python setup.py install --root %{buildroot} --no-compile --install %pre %post +mkdir -p /opt/openstack-ansible/inventory/ ln -sf /opt/cmframework/scripts/inventory.sh /opt/openstack-ansible/inventory/ chmod -x /usr/lib/systemd/system/config-manager.service chmod -x /usr/lib/systemd/system/cmagent.service