[python-oslo-vmware/el6: 3/4] Use %{__python} macro in el6

Jon Bernard jbernard at fedoraproject.org
Wed Jul 2 21:00:20 UTC 2014


commit da8bc8c943bea732cd3589085c84705d270371f7
Author: Jon Bernard <jobernar at redhat.com>
Date:   Wed Jul 2 16:58:18 2014 -0400

    Use %{__python} macro in el6
    
    Even though it's deprecated, %{__python} must be used here since
    %{__python2} is not available.

 python-oslo-vmware.spec |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/python-oslo-vmware.spec b/python-oslo-vmware.spec
index c7a32be..c21f958 100644
--- a/python-oslo-vmware.spec
+++ b/python-oslo-vmware.spec
@@ -11,7 +11,7 @@ Source0:        https://pypi.python.org/packages/source/o/%{sname}/%{sname}-%{ve
 
 BuildArch:      noarch
 
-BuildRequires:  python-devel
+BuildRequires:  python2-devel
 BuildRequires:  python-pbr
 BuildRequires:  python-stevedore
 BuildRequires:  python-netaddr
@@ -51,7 +51,7 @@ rm -rf %{sname}.egg-info
 sed -i 's/oslosphinx/oslo.sphinx/' doc/source/conf.py
 
 %build
-%{__python2} setup.py build
+%{__python} setup.py build
 
 # generate html docs
 sphinx-build doc/source html
@@ -60,14 +60,14 @@ sphinx-build doc/source html
 rm -rf html/.{doctrees,buildinfo}
 
 %install
-%{__python2} setup.py install --skip-build --root %{buildroot}
+%{__python} setup.py install --skip-build --root %{buildroot}
 
 %files
 %doc README.rst LICENSE
-%{python2_sitelib}/oslo
-%{python2_sitelib}/
-%{python2_sitelib}/%{sname}-%{version}-py?.?-*.pth
-%{python2_sitelib}/%{sname}-%{version}-py?.?.egg-info
+%{python_sitelib}/oslo
+%{python_sitelib}/
+%{python_sitelib}/%{sname}-%{version}-py?.?-*.pth
+%{python_sitelib}/%{sname}-%{version}-py?.?.egg-info
 
 %files doc
 %doc html doc/source/readme.rst


More information about the scm-commits mailing list