- (bsc#1222509) Remove *.exe and *.dll files from bundled wheels.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python39?expand=0&rev=180
This commit is contained in:
Matej Cepl 2024-04-09 19:38:17 +00:00 committed by Git OBS Bridge
parent f0704e96b5
commit db43d93a80
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Apr 9 19:37:17 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- (bsc#1222509) Remove *.exe and *.dll files from bundled wheels.
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Mar 24 00:43:14 UTC 2024 - Matej Cepl <mcepl@cepl.eu> Sun Mar 24 00:43:14 UTC 2024 - Matej Cepl <mcepl@cepl.eu>

View File

@ -190,6 +190,7 @@ BuildRequires: netcfg
BuildRequires: openssl-devel BuildRequires: openssl-devel
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: xz BuildRequires: xz
BuildRequires: zip
BuildRequires: pkgconfig(bzip2) BuildRequires: pkgconfig(bzip2)
BuildRequires: pkgconfig(expat) BuildRequires: pkgconfig(expat)
BuildRequires: pkgconfig(libffi) BuildRequires: pkgconfig(libffi)
@ -447,6 +448,12 @@ other applications.
%patch -P 42 -p1 %patch -P 42 -p1
%patch -P 43 -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 # drop Autoconf version requirement
sed -i 's/^AC_PREREQ/dnl AC_PREREQ/' configure.ac sed -i 's/^AC_PREREQ/dnl AC_PREREQ/' configure.ac