diff --git a/python310.changes b/python310.changes index 5dd153f..4d15475 100644 --- a/python310.changes +++ b/python310.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Aug 30 12:48:25 UTC 2021 - Matej Cepl + +- Switch on option --with-system-libmpdec (bsc#1189356). + ------------------------------------------------------------------- Fri Aug 27 13:15:03 UTC 2021 - Andreas Schwab diff --git a/python310.spec b/python310.spec index 21e485f..def0180 100644 --- a/python310.spec +++ b/python310.spec @@ -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 @@ -158,6 +164,9 @@ BuildRequires: pkgconfig(zlib) BuildRequires: pkgconfig(libnsl) BuildRequires: pkgconfig(libtirpc) %endif +%if %{with mpdecimal} +BuildRequires: mpdecimal-devel +%endif %if %{with doc} BuildRequires: python3-Sphinx %if 0%{?suse_version} >= 1500 @@ -444,6 +453,9 @@ export CFLAGS="%{optflags} -IVendor/" --with-lto \ %if %{with profileopt} --enable-optimizations \ +%endif +%if %{with mpdecimal} + --with-system-libmpdec \ %endif --enable-loadable-sqlite-extensions