From da277b0c4e600ad4b96809f1130865295117b019 Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: May 26 2021 10:42:28 +0000 Subject: Use the system installed mpdecimal instead of the bundled copy (#1943359) --- diff --git a/python3.10.spec b/python3.10.spec index 6ebed67..9972b33 100644 --- a/python3.10.spec +++ b/python3.10.spec @@ -17,7 +17,7 @@ URL: https://www.python.org/ %global prerel b1 %global upstream_version %{general_version}%{?prerel} Version: %{general_version}%{?prerel:~%{prerel}} -Release: 1%{?dist} +Release: 2%{?dist} License: Python @@ -197,6 +197,7 @@ BuildRequires: libGL-devel BuildRequires: libuuid-devel BuildRequires: libX11-devel BuildRequires: make +BuildRequires: mpdecimal-devel BuildRequires: ncurses-devel BuildRequires: openssl-devel @@ -610,6 +611,7 @@ find -name '*.exe' -print -delete # Remove bundled libraries to ensure that we're using the system copy. rm -r Modules/expat +rm -r Modules/_decimal/libmpdec # Remove files that should be generated by the build # (This is after patching, so that we can use patches directly from upstream) @@ -695,6 +697,7 @@ BuildPython() { --with-dbmliborder=gdbm:ndbm:bdb \ --with-system-expat \ --with-system-ffi \ + --with-system-libmpdec \ --enable-loadable-sqlite-extensions \ --with-dtrace \ --with-lto \ @@ -1575,6 +1578,9 @@ CheckPython optimized # ====================================================== %changelog +* Fri May 14 2021 Charalampos Stratakis - 3.10.0~b1-2 +- Use the system installed mpdecimal instead of the bundled copy (#1943359) + * Tue May 04 2021 Tomas Hrnciar - 3.10.0~b1-1 - Update to 3.10.0b1