Accepting request 989742 from home:bnavigator:branches:devel:languages:python

- Work around vendored distutils in setuptools >= 60 incorrectly
  installing pkgconfig files into the wrong libdir

OBS-URL: https://build.opensuse.org/request/show/989742
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/python-gobject?expand=0&rev=139
This commit is contained in:
Frederic Crozat 2022-07-21 13:05:16 +00:00 committed by Git OBS Bridge
parent 3462bad259
commit 5a76cf23cf
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Jul 16 22:53:44 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Work around vendored distutils in setuptools >= 60 incorrectly
installing pkgconfig files into the wrong libdir
-------------------------------------------------------------------
Thu Jun 9 12:51:17 UTC 2022 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -124,6 +124,12 @@ export CFLAGS="%{optflags}"
%install
%python_install
# Incorrectly installed by a python38-setuptools vendored distutils
# which does not play well with the distro patched python38.
# Later flavors installed the correct files into lib64 as well
if [ "%{_libdir}" != "%{_prefix}/lib" -a -d %{buildroot}%{_prefix}/lib/pkgconfig ]; then
rm -r %{buildroot}%{_prefix}/lib/pkgconfig
fi
%{python_expand # delete unwanted python scripts and their compiled cache files
# Drop pygtkcompat layer - It's useless and we lack other stuff for it to work