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 - 0.9j-3 +- use python instead of python3 in python2 package + * Wed Aug 21 2013 Matthias Runge - 0.9j-2 - add br python-ply