[python-lesscpy/f19] really use python2 interpreter for py2 package

Matthias Runge mrunge at fedoraproject.org
Thu Aug 29 07:21:44 UTC 2013


commit 1cc38b52b7d474a16929e4af79152b63823ca8c6
Author: Matthias Runge <mrunge at redhat.com>
Date:   Thu Aug 29 09:21:14 2013 +0200

    really use python2 interpreter for py2 package

 python-lesscpy.spec |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/python-lesscpy.spec b/python-lesscpy.spec
index e604a44..b3d5f53 100644
--- a/python-lesscpy.spec
+++ b/python-lesscpy.spec
@@ -1,4 +1,4 @@
-%if 0%{?fedora} > 12 || 0%{?rhel} > 6
+%if 0%{?fedora} > 12 || 0%{?rhel} > 7
 %global with_python3 1
 %else
 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
@@ -8,7 +8,7 @@
 
 Name:           python-%{pypi_name}
 Version:        0.9j
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Lesscss compiler
 
 License:        MIT
@@ -70,11 +70,13 @@ popd
 %if 0%{?with_python3}
 pushd %{py3dir}
 %{__python3} setup.py install --skip-build --root %{buildroot}
+mv %{buildroot}/%{_bindir}/lesscpy %{buildroot}/%{_bindir}/py3-lesscpy
 popd
 %endif # with_python3
 
 %{__python} setup.py install --skip-build --root %{buildroot}
 
+
 %check
 
 %{__python} lesscpy/test/__main__.py
@@ -92,12 +94,16 @@ popd
 %if 0%{?with_python3}
 %files -n python3-lesscpy
 %doc LICENSE
+%{_bindir}/py3-lesscpy
 %{python3_sitelib}/%{pypi_name}
 %{python3_sitelib}/%{pypi_name}*.egg-info
 %endif # with_python3
 
 
 %changelog
+* Thu Aug 29 2013 Matthias Runge <mrunge at redhat.com> - 0.9j-3
+- use python instead of python3 in python2 package
+
 * Wed Aug 21 2013 Matthias Runge <mrunge at redhat.com> - 0.9j-2
 - add br python-ply
 


More information about the scm-commits mailing list