Extend the expat requirement to differentiate between 32 and 64 arches

(cherry picked from python3.15 commit a5ca170d3f1e6e19f5df66f21482c2b10593af42)
This commit is contained in:
Karolina Surma 2026-01-12 11:55:39 +01:00 committed by Miro Hrončok
commit 311900d817

View file

@ -508,7 +508,7 @@ Requires: tzdata
# was used during the build time.
# Other subpackages (like -debug) also need this, but they all depend on -libs.
%global expat_version %(LANG=C rpm -q --qf '%%{version}' expat.%{_target_cpu} | sed 's/.*not installed/0/')
Requires: expat >= %{expat_version}
Requires: expat%{?_isa} >= %{expat_version}
# Since patch 251 changed from distutils to sysconfig, pip needed to be adapted