Accepting request 745290 from home:StevenK:branches:devel:languages:python:Factory

- Add adapted-from-F00251-change-user-install-location.patch fixing
  pip/distutils to install into /usr/local.

OBS-URL: https://build.opensuse.org/request/show/745290
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python?expand=0&rev=257
This commit is contained in:
Tomáš Chvátal
2019-11-05 07:55:07 +00:00
committed by Git OBS Bridge
parent 5167eaaa6a
commit 00800c2a14
3 changed files with 53 additions and 0 deletions

View File

@@ -74,6 +74,12 @@ Patch49: CVE-2019-5010-null-defer-x509-cert-DOS.patch
Patch50: bpo36160-init-sysconfig_vars.patch
# PATCH-FIX-UPSTREAM https://github.com/python/cpython/pull/12341
Patch55: bpo36302-sort-module-sources.patch
# Fix installation in /usr/local (boo#1071941), adapted from Fedora
# https://src.fedoraproject.org/rpms/python3/blob/master/f/00251-change-user-install-location.patch
# Set values of prefix and exec_prefix in distutils install command
# to /usr/local if executable is /usr/bin/python* and RPM build
# is not detected to make pip and distutils install into separate location
Patch56: adapted-from-F00251-change-user-install-location.patch
# COMMON-PATCH-END
%define python_version %(echo %{tarversion} | head -c 3)
BuildRequires: automake
@@ -186,6 +192,7 @@ other applications.
%patch49 -p1
%patch50 -p1
%patch55 -p1
%patch56 -p1
# drop Autoconf version requirement
sed -i 's/^version_required/dnl version_required/' configure.ac