diff --git a/python-openstackclient.spec b/python-openstackclient.spec index 2cdb1ef..ac6721f 100644 --- a/python-openstackclient.spec +++ b/python-openstackclient.spec @@ -10,7 +10,7 @@ Name: python-openstackclient Version: 3.14.1 -Release: 4%{?dist} +Release: 5%{?dist} Summary: OpenStack Command-line Client License: ASL 2.0 @@ -178,15 +178,13 @@ rm -rf requirements.txt test-requirements.txt %endif %install +%{__python2} setup.py install -O1 --skip-build --root %{buildroot} + %if 0%{?with_python3} +rm -rf %{buildroot}%{_bindir}/* %py3_install -mv %{buildroot}%{_bindir}/openstack %{buildroot}%{_bindir}/openstack-%{python3_version} -ln -s ./openstack-%{python3_version} %{buildroot}%{_bindir}/openstack-3 %endif -%{__python2} setup.py install -O1 --skip-build --root %{buildroot} -ln -s ./openstack %{buildroot}%{_bindir}/openstack-2 -ln -s ./openstack %{buildroot}%{_bindir}/openstack-%{python2_version} sphinx-build -b html doc/source doc/build/html sphinx-build -b man doc/source doc/build/man @@ -220,12 +218,12 @@ PYTHON=python3 %{__python3} setup.py test || true %files -n python2-%{client} %license LICENSE %doc README.rst -%{_bindir}/openstack -%{_bindir}/openstack-2 -%{_bindir}/openstack-%{python2_version} %{python2_sitelib}/openstackclient %{python2_sitelib}/*.egg-info +%if ! 0%{?with_python3} +%{_bindir}/openstack %{_mandir}/man1/openstack.1* +%endif %files -n python-%{client}-doc %license LICENSE @@ -238,13 +236,16 @@ PYTHON=python3 %{__python3} setup.py test || true %files -n python3-%{client} %license LICENSE %doc README.rst -%{_bindir}/openstack-3 -%{_bindir}/openstack-%{python3_version} +%{_bindir}/openstack +%{_mandir}/man1/openstack.1* %{python3_sitelib}/openstackclient %{python3_sitelib}/*.egg-info %endif %changelog +* Wed Sep 19 2018 Miro Hrončok - 3.14.1-5 +- Only ship one /usr/bin/openstack + * Mon Aug 13 2018 Javier Peña - 3.14.1-4 - Fix build for Rawhide (bz#1605807)