The previous patch didn't contain the pushd/popd call
which could cause some problems from Bohuslav Kabrda
This commit is contained in:
parent
b6e23b3794
commit
bf4865f455
@ -49,21 +49,27 @@ cp -a . %{py3dir}
|
|||||||
%{__python} setup.py build
|
%{__python} setup.py build
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
|
pushd %{py3dir}
|
||||||
LANG=en_US.utf8 %{__python3} setup.py build
|
LANG=en_US.utf8 %{__python3} setup.py build
|
||||||
|
popd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{__python} setup.py install --skip-build --root %{buildroot}
|
%{__python} setup.py install --skip-build --root %{buildroot}
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
|
pushd %{py3dir}
|
||||||
LANG=en_US.utf8 %{__python3} setup.py install --skip-build --root %{buildroot}
|
LANG=en_US.utf8 %{__python3} setup.py install --skip-build --root %{buildroot}
|
||||||
|
popd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__python} tests.py
|
%{__python} tests.py
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
|
pushd %{py3dir}
|
||||||
%{__python3} tests.py
|
%{__python3} tests.py
|
||||||
|
popd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
Loading…
Reference in New Issue
Block a user