- fixed distutils test
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python?expand=0&rev=75
This commit is contained in:
committed by
Git OBS Bridge
parent
53002793e3
commit
074122cee8
@@ -46,7 +46,8 @@ Patch3: Python-2.7rc2-multilib.patch
|
||||
Patch4: python-2.7rc2-canonicalize2.patch
|
||||
Patch5: python-2.7rc2-configure.patch
|
||||
Patch6: python-2.6-gettext-plurals.patch
|
||||
Patch7: sparc_longdouble.patch
|
||||
Patch7: python-2.6.5-distutils_test_path.patch
|
||||
Patch8: sparc_longdouble.patch
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%define python_version %(echo %{version} | head -c 3)
|
||||
@@ -133,6 +134,7 @@ Authors:
|
||||
%patch5
|
||||
%patch6
|
||||
%patch7 -p1
|
||||
%patch8 -p1
|
||||
|
||||
# some cleanup
|
||||
find . -name .cvsignore -type f -print0 | xargs -0 rm -f
|
||||
@@ -148,9 +150,11 @@ export SUSE_ASNEEDED=0
|
||||
########################################
|
||||
export OPT="$RPM_OPT_FLAGS"
|
||||
########################################
|
||||
# regenerate
|
||||
# regenerate (only on > 11.2 because of autoconf version)
|
||||
########################################
|
||||
%if %{?suse_version: %{suse_version} > 1120} %{!?suse_version:1}
|
||||
autoreconf -f -i . # Modules/_ctypes/libffi
|
||||
%endif
|
||||
# prevent make from trying to rebuild asdl stuff, which requires existing
|
||||
# python installation
|
||||
touch Parser/asdl* Python/Python-ast.c Include/Python-ast.h
|
||||
|
||||
Reference in New Issue
Block a user