Accepting request 915060 from home:mcepl:python-libmpdec

- Switch on option --with-system-libmpdec (bsc#1189356).

OBS-URL: https://build.opensuse.org/request/show/915060
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python310?expand=0&rev=16
This commit is contained in:
Matej Cepl 2021-08-30 13:24:05 +00:00 committed by Git OBS Bridge
parent 06f448d744
commit fd4563b720
2 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Aug 30 12:48:25 UTC 2021 - Matej Cepl <mcepl@suse.com>
- Switch on option --with-system-libmpdec (bsc#1189356).
-------------------------------------------------------------------
Fri Aug 27 13:15:03 UTC 2021 - Andreas Schwab <schwab@suse.de>

View File

@ -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