diff --git a/python39.changes b/python39.changes index 6720133..eea04f2 100644 --- a/python39.changes +++ b/python39.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Apr 9 19:37:17 UTC 2024 - Matej Cepl + +- (bsc#1222509) Remove *.exe and *.dll files from bundled wheels. + ------------------------------------------------------------------- Sun Mar 24 00:43:14 UTC 2024 - Matej Cepl diff --git a/python39.spec b/python39.spec index 786fb25..b25747b 100644 --- a/python39.spec +++ b/python39.spec @@ -190,6 +190,7 @@ BuildRequires: netcfg BuildRequires: openssl-devel BuildRequires: pkgconfig BuildRequires: xz +BuildRequires: zip BuildRequires: pkgconfig(bzip2) BuildRequires: pkgconfig(expat) BuildRequires: pkgconfig(libffi) @@ -447,6 +448,12 @@ other applications. %patch -P 42 -p1 %patch -P 43 -p1 +# Remove *.exe files from bundled wheels +for ziparch in Lib/ensurepip/_bundled/pip-23.0.1-py3-none-any.whl \ + Lib/ensurepip/_bundled/setuptools-58.1.0-py3-none-any.whl ; do + zip -vd $ziparch '*.exe' '*.dll' +done + # drop Autoconf version requirement sed -i 's/^AC_PREREQ/dnl AC_PREREQ/' configure.ac