From 49017e9d4d324f57fa667a72fef6b9275542bb50 Mon Sep 17 00:00:00 2001 From: Haikel Guemar Date: Mon, 20 Jun 2016 14:42:55 +0200 Subject: [PATCH] python-keystoneclient: Use versioned python macros Change-Id: Ic5388c5ec8f2fa80784438a3aad1cda2ba421663 --- .../python-keystoneclient.spec.j2 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/openstack/python-keystoneclient/python-keystoneclient.spec.j2 b/openstack/python-keystoneclient/python-keystoneclient.spec.j2 index 6eed0b501..7cd9d9735 100644 --- a/openstack/python-keystoneclient/python-keystoneclient.spec.j2 +++ b/openstack/python-keystoneclient/python-keystoneclient.spec.j2 @@ -71,7 +71,7 @@ sed '/^html_last_updated_fmt.*/,/.)/ s/^/#/' -i doc/source/conf.py %build -%{__python} setup.py build +%{__python2} setup.py build # Build HTML docs and man page %{__python2} setup.py build_sphinx @@ -79,11 +79,11 @@ sed '/^html_last_updated_fmt.*/,/.)/ s/^/#/' -i doc/source/conf.py %install -%{__python} setup.py install -O1 --skip-build --root %{buildroot} +%{__python2} setup.py install -O1 --skip-build --root %{buildroot} install -p -D -m 644 tools/keystone.bash_completion %{buildroot}%{_sysconfdir}/bash_completion.d/keystone.bash_completion # Delete tests -rm -fr %{buildroot}%{python_sitelib}/tests +rm -fr %{buildroot}%{python2_sitelib}/tests # Install man page install -p -D -m 644 doc/build/man/keystone.1 %{buildroot}%{_mandir}/man1/keystone.1 @@ -102,8 +102,8 @@ export PYTHONPATH="%{python2_sitearch}:%{python2_sitelib}:%{buildroot}%{python2_ %license LICENSE %{_bindir}/keystone %{_sysconfdir}/bash_completion.d/keystone.bash_completion -%{python_sitelib}/keystoneclient -%{python_sitelib}/*.egg-info +%{python2_sitelib}/keystoneclient +%{python2_sitelib}/*.egg-info %{_mandir}/man1/keystone.1*