forked from pool/python39
Accepting request 915024 from home:mcepl:python-libmpdec
- Add decimal.patch to add building with --with-system-libmpdec option (bsc#1189356). OBS-URL: https://build.opensuse.org/request/show/915024 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python39?expand=0&rev=82
This commit is contained in:
@@ -76,6 +76,12 @@
|
||||
%if "%{_arch}" == "arm"
|
||||
%define armsuffix hf
|
||||
%endif
|
||||
# Decide whether we want to use mpdecimal
|
||||
%if 0%{?suse_version} >= 1550
|
||||
%bcond_without mpdecimal
|
||||
%else
|
||||
%bcond_with mpdecimal
|
||||
%endif
|
||||
# pyexpat.cpython-35m-x86_64-linux-gnu
|
||||
# pyexpat.cpython-35m-powerpc64le-linux-gnu
|
||||
# pyexpat.cpython-35m-armv7-linux-gnueabihf
|
||||
@@ -120,6 +126,10 @@ Patch02: F00251-change-user-install-location.patch
|
||||
# PATCH-FEATURE-UPSTREAM distutils-reproducible-compile.patch gh#python/cpython#8057 mcepl@suse.com
|
||||
# Improve reproduceability
|
||||
Patch06: distutils-reproducible-compile.patch
|
||||
# PATCH-FEATURE-UPSTREAM decimal.patch bsc#1189356 mcepl@suse.com
|
||||
# fix building with mpdecimal
|
||||
# https://www.bytereef.org/contrib/decimal.diff
|
||||
Patch05: decimal.patch
|
||||
# support finding packages in /usr/local, install to /usr/local by default
|
||||
Patch07: python-3.3.0b1-localpath.patch
|
||||
# replace DATE, TIME and COMPILER by fixed definitions to aid reproducible builds
|
||||
@@ -159,6 +169,9 @@ BuildRequires: pkgconfig(zlib)
|
||||
BuildRequires: pkgconfig(libnsl)
|
||||
BuildRequires: pkgconfig(libtirpc)
|
||||
%endif
|
||||
%if %{with mpdecimal}
|
||||
BuildRequires: mpdecimal-devel
|
||||
%endif
|
||||
%if %{with doc}
|
||||
%if 0%{?suse_version} >= 1550
|
||||
BuildRequires: %{python_pkg_name}-Sphinx
|
||||
@@ -389,6 +402,9 @@ other applications.
|
||||
%if 0%{?sle_version} && 0%{?sle_version} <= 150300
|
||||
%patch34 -p1
|
||||
%endif
|
||||
%if %{with mpdecimal}
|
||||
%patch05 -p1
|
||||
%endif
|
||||
|
||||
# drop Autoconf version requirement
|
||||
sed -i 's/^AC_PREREQ/dnl AC_PREREQ/' configure.ac
|
||||
@@ -450,6 +466,9 @@ export CFLAGS="%{optflags} -IVendor/"
|
||||
--with-lto \
|
||||
%if %{with profileopt}
|
||||
--enable-optimizations \
|
||||
%endif
|
||||
%if %{with mpdecimal}
|
||||
--with-system-libmpdec \
|
||||
%endif
|
||||
--enable-loadable-sqlite-extensions
|
||||
|
||||
|
||||
Reference in New Issue
Block a user