Fix nova-api-proxy install directories

Install nova-api-proxy under {pythonroot}/nova_api_proxy/.

Story: 2003021
Task: 23045

Change-Id: I3e419d25c8d95dbc8bb5d7c666337c2b7eef1985
Signed-off-by: Jack Ding <jack.ding@windriver.com>
This commit is contained in:
Jack Ding 2018-07-16 08:05:40 -04:00
parent 597e7bb29b
commit 1348e0ad59
22 changed files with 7 additions and 6 deletions

View File

@ -1,2 +1,2 @@
SRC_DIR="$PKG_BASE/nova_api_proxy" SRC_DIR="$PKG_BASE/nova-api-proxy"
TIS_PATCH_VER=10 TIS_PATCH_VER=10

View File

@ -40,13 +40,13 @@ Nova Computer API Proxy
--single-version-externally-managed --single-version-externally-managed
install -d -m 755 %{buildroot}%{local_etc_systemd} install -d -m 755 %{buildroot}%{local_etc_systemd}
install -p -D -m 644 scripts/api-proxy.service %{buildroot}%{local_etc_systemd}/api-proxy.service install -p -D -m 644 nova_api_proxy/scripts/api-proxy.service %{buildroot}%{local_etc_systemd}/api-proxy.service
install -d -m 755 %{buildroot}%{local_initddir} install -d -m 755 %{buildroot}%{local_initddir}
install -p -D -m 755 scripts/api-proxy %{buildroot}%{local_initddir}/api-proxy install -p -D -m 755 nova_api_proxy/scripts/api-proxy %{buildroot}%{local_initddir}/api-proxy
install -d -m 755 %{buildroot}%{local_proxy_conf} install -d -m 755 %{buildroot}%{local_proxy_conf}
install -p -D -m 700 nova-api-proxy.conf %{buildroot}%{local_proxy_conf}/nova-api-proxy.conf install -p -D -m 700 nova_api_proxy/nova-api-proxy.conf %{buildroot}%{local_proxy_conf}/nova-api-proxy.conf
install -p -D -m 700 api-proxy-paste.ini %{buildroot}%{local_proxy_conf}/api-proxy-paste.ini install -p -D -m 700 nova_api_proxy/api-proxy-paste.ini %{buildroot}%{local_proxy_conf}/api-proxy-paste.ini
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -61,5 +61,6 @@ rm -rf $RPM_BUILD_ROOT
%{local_etc_systemd}/* %{local_etc_systemd}/*
%config(noreplace) %{local_proxy_conf}/nova-api-proxy.conf %config(noreplace) %{local_proxy_conf}/nova-api-proxy.conf
%{local_proxy_conf}/api-proxy-paste.ini %{local_proxy_conf}/api-proxy-paste.ini
%{pythonroot}/* %dir %{pythonroot}/nova_api_proxy
%{pythonroot}/nova_api_proxy/*
%{pythonroot}/api_proxy-%{version}.0-py2.7.egg-info/* %{pythonroot}/api_proxy-%{version}.0-py2.7.egg-info/*