No more py3dir
This commit is contained in:
parent
96823de2c5
commit
d29e6e08f8
@ -60,23 +60,12 @@ supported (JavaScript evaluation).
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n %{pypi_name}-%{version}
|
%setup -q -n %{pypi_name}-%{version}
|
||||||
|
|
||||||
rm -rf %{py3dir}
|
|
||||||
cp -a . %{py3dir}
|
|
||||||
#fix utf8 encoding issue occurring only under py3
|
|
||||||
pushd %{py3dir}
|
|
||||||
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!/usr/bin/python|#!%{__python3}|'
|
|
||||||
popd
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if %{with python2}
|
%if %{with python2}
|
||||||
%py2_build
|
%py2_build
|
||||||
%endif # with python2
|
%endif # with python2
|
||||||
|
|
||||||
pushd %{py3dir}
|
|
||||||
export LANG=en_US.utf8
|
|
||||||
env
|
|
||||||
%py3_build
|
%py3_build
|
||||||
popd
|
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -85,20 +74,16 @@ popd
|
|||||||
rm %{buildroot}/%{_bindir}/lesscpy
|
rm %{buildroot}/%{_bindir}/lesscpy
|
||||||
%endif # with python2
|
%endif # with python2
|
||||||
|
|
||||||
pushd %{py3dir}
|
|
||||||
%py3_install
|
%py3_install
|
||||||
# link for backwards compatibility. consider removal in Fedora 30+
|
# link for backwards compatibility. consider removal in Fedora 30+
|
||||||
ln -s ./lesscpy %{buildroot}/%{_bindir}/py3-lesscpy
|
ln -s ./lesscpy %{buildroot}/%{_bindir}/py3-lesscpy
|
||||||
popd
|
|
||||||
|
|
||||||
|
|
||||||
#%check
|
#%check
|
||||||
#%%if %{with python2}
|
#%%if %{with python2}
|
||||||
#nosetests -v
|
#nosetests -v
|
||||||
#%%endif # with python2
|
#%%endif # with python2
|
||||||
#pushd %{py3dir}
|
|
||||||
#nosetests-3.3 -v
|
#nosetests-3.3 -v
|
||||||
#popd
|
|
||||||
|
|
||||||
%if %{with python2}
|
%if %{with python2}
|
||||||
%files -n python2-lesscpy
|
%files -n python2-lesscpy
|
||||||
|
Loading…
Reference in New Issue
Block a user