Accepting request 209414 from openSUSE:Factory:PowerLE
Fix python for ppc64le, please forward to factory asap OBS-URL: https://build.opensuse.org/request/show/209414 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python?expand=0&rev=156
This commit is contained in:
committed by
Git OBS Bridge
parent
5b3091d163
commit
ea9eb9ef07
@@ -29,7 +29,7 @@ Source0: http://www.python.org/ftp/python/%{version}/%{tarname}.tar.xz
|
||||
Source1: macros.python
|
||||
Source2: baselibs.conf
|
||||
Source3: README.SUSE
|
||||
Source5: _local.pth
|
||||
Source5: local.pth
|
||||
# COMMON-PATCH-BEGIN
|
||||
Patch1: python-2.7-dirs.patch
|
||||
Patch2: python-distutils-rpm-8.patch
|
||||
@@ -50,6 +50,8 @@ Patch20: python-bundle-lang.patch
|
||||
Patch22: python-2.7.4-aarch64.patch
|
||||
Patch23: python-2.7.4-no-REUSEPORT.patch
|
||||
Patch24: python-bsddb6.diff
|
||||
# PATCH-FIX-OPENSUSE Properly support ppc64le in _ctypes module
|
||||
Patch25: libffi-ppc64le.diff
|
||||
# COMMON-PATCH-END
|
||||
%define python_version %(echo %{tarversion} | head -c 3)
|
||||
BuildRequires: automake
|
||||
@@ -132,7 +134,7 @@ other applications.
|
||||
%patch10 -p1
|
||||
%patch13 -p1
|
||||
#skip test_io test for ppc,ppc64 as it is broken.
|
||||
%ifarch ppc ppc64
|
||||
%ifarch ppc ppc64 ppc64le
|
||||
%patch15 -p1
|
||||
%endif
|
||||
%patch17 -p1
|
||||
@@ -141,6 +143,7 @@ other applications.
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
%patch24 -p1
|
||||
%patch25 -p0
|
||||
|
||||
# drop Autoconf version requirement
|
||||
sed -i 's/^version_required/dnl version_required/' configure.ac
|
||||
@@ -209,7 +212,7 @@ find . -wholename "./Parser" -prune -o -name '*.py' -type f -print0 | xargs -0 g
|
||||
# install it
|
||||
########################################
|
||||
%make_install OPT="%{optflags} -fPIC"
|
||||
install -m 644 %{SOURCE5} %{buildroot}%{_libdir}/python%{python_version}/site-packages
|
||||
install -m 644 %{SOURCE5} %{buildroot}%{_libdir}/python%{python_version}/site-packages/_local.pth
|
||||
install -d -m 755 %{buildroot}%{_sysconfdir}/rpm
|
||||
install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm
|
||||
# make sure /usr/lib/python/site-packages exists even on lib64 machines
|
||||
@@ -377,7 +380,7 @@ cp Makefile Makefile.pre.in Makefile.pre %{buildroot}%{_libdir}/python%{python_v
|
||||
%{_libdir}/python%{python_version}/lib-dynload/_multibytecodec.so
|
||||
%{_libdir}/python%{python_version}/lib-dynload/Python-%{tarversion}-py%{python_version}.egg-info
|
||||
# these modules don't support 64-bit arches (disabled by setup.py)
|
||||
%ifnarch alpha ia64 x86_64 s390x ppc64 sparc64 aarch64
|
||||
%ifnarch alpha ia64 x86_64 s390x ppc64 ppc64le sparc64 aarch64
|
||||
# requires sizeof(int) == sizeof(long) == sizeof(char*)
|
||||
%{_libdir}/python%{python_version}/lib-dynload/dl.so
|
||||
%endif
|
||||
|
Reference in New Issue
Block a user