Add virtual provides for the bundled libmpdec (rhbz#1943359)
This commit is contained in:
parent
cf6fda7857
commit
d3f5befac1
@ -17,7 +17,7 @@ URL: https://www.python.org/
|
|||||||
#global prerel ...
|
#global prerel ...
|
||||||
%global upstream_version %{general_version}%{?prerel}
|
%global upstream_version %{general_version}%{?prerel}
|
||||||
Version: %{general_version}%{?prerel:~%{prerel}}
|
Version: %{general_version}%{?prerel:~%{prerel}}
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: Python
|
License: Python
|
||||||
|
|
||||||
|
|
||||||
@ -171,6 +171,13 @@ License: Python
|
|||||||
# foo/__pycache__/bar.cpython-%%{pyshortver}.opt-2.pyc
|
# foo/__pycache__/bar.cpython-%%{pyshortver}.opt-2.pyc
|
||||||
%global bytecode_suffixes .cpython-%{pyshortver}*.pyc
|
%global bytecode_suffixes .cpython-%{pyshortver}*.pyc
|
||||||
|
|
||||||
|
# libmpdec (mpdecimal package in Fedora) is tightly coupled with the
|
||||||
|
# decimal module. We keep it bundled as to avoid incompatibilities
|
||||||
|
# with the packaged version.
|
||||||
|
# The version information can be found at Modules/_decimal/libmpdec/mpdecimal.h
|
||||||
|
# defined as MPD_VERSION.
|
||||||
|
%global libmpdec_version 2.5.0
|
||||||
|
|
||||||
# Python's configure script defines SOVERSION, and this is used in the Makefile
|
# Python's configure script defines SOVERSION, and this is used in the Makefile
|
||||||
# to determine INSTSONAME, the name of the libpython DSO:
|
# to determine INSTSONAME, the name of the libpython DSO:
|
||||||
# LDLIBRARY='libpython$(VERSION).so'
|
# LDLIBRARY='libpython$(VERSION).so'
|
||||||
@ -511,6 +518,10 @@ Provides: bundled(python3dist(pip)) = %{pip_version}
|
|||||||
Provides: bundled(python3dist(setuptools)) = %{setuptools_version}
|
Provides: bundled(python3dist(setuptools)) = %{setuptools_version}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# Provides for the bundled libmpdec
|
||||||
|
Provides: bundled(mpdecimal) = %{libmpdec_version}
|
||||||
|
Provides: bundled(libmpdec) = %{libmpdec_version}
|
||||||
|
|
||||||
# There are files in the standard library that have python shebang.
|
# There are files in the standard library that have python shebang.
|
||||||
# We've filtered the automatic requirement out so libs are installable without
|
# We've filtered the automatic requirement out so libs are installable without
|
||||||
# the main package. This however makes it pulled in by default.
|
# the main package. This however makes it pulled in by default.
|
||||||
@ -704,6 +715,10 @@ Provides: bundled(python3dist(pip)) = %{pip_version}
|
|||||||
Provides: bundled(python3dist(setuptools)) = %{setuptools_version}
|
Provides: bundled(python3dist(setuptools)) = %{setuptools_version}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# Provides for the bundled libmpdec
|
||||||
|
Provides: bundled(mpdecimal) = %{libmpdec_version}
|
||||||
|
Provides: bundled(libmpdec) = %{libmpdec_version}
|
||||||
|
|
||||||
# The zoneinfo module needs tzdata
|
# The zoneinfo module needs tzdata
|
||||||
Requires: tzdata
|
Requires: tzdata
|
||||||
|
|
||||||
@ -1190,6 +1205,11 @@ for Module in %{buildroot}/%{dynload_dir}/*.so ; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Verify that the bundled libmpdec version python was compiled with, is the same version we have virtual
|
||||||
|
# provides for in the SPEC.
|
||||||
|
test "$($(pwd)/build/optimized/python -c 'import decimal; print(decimal.__libmpdec_version__)')" = \
|
||||||
|
"%{libmpdec_version}"
|
||||||
|
|
||||||
|
|
||||||
# ======================================================
|
# ======================================================
|
||||||
# Running the upstream test suite
|
# Running the upstream test suite
|
||||||
@ -1758,6 +1778,9 @@ CheckPython optimized
|
|||||||
# ======================================================
|
# ======================================================
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri May 14 2021 Charalampos Stratakis <cstratak@redhat.com> - 3.9.5-2
|
||||||
|
- Add virtual provides for the bundled libmpdec (rhbz#1943359)
|
||||||
|
|
||||||
* Tue May 04 2021 Tomas Hrnciar <thrnciar@redhat.com> - 3.9.5-1
|
* Tue May 04 2021 Tomas Hrnciar <thrnciar@redhat.com> - 3.9.5-1
|
||||||
- Update to 3.9.5
|
- Update to 3.9.5
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user