Accepting request 989819 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/989819
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pycairo?expand=0&rev=7
This commit is contained in:
Dominique Leuenberger 2022-08-04 11:23:08 +00:00 committed by Git OBS Bridge
commit f6dcfc8e32
2 changed files with 16 additions and 1 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sat Jul 16 22:51:05 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Work around vendored distutils in setuptools >= 60 incorrectly
installing pkgconfig files into the wrong libdir
- Deduplicate files in python_sitearch
-------------------------------------------------------------------
Thu Aug 12 08:07:16 UTC 2021 - Frederic Crozat <fcrozat@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-pycairo
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -30,6 +30,7 @@ BuildRequires: %{python_module devel}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: cairo-devel >= 1.15.10
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Provides: python-cairo = %{version}
Obsoletes: python-cairo < %{version}
@ -77,6 +78,13 @@ packages that depend on Pycairo.
%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 %fdupes %{buildroot}%{$python_sitearch}
%check
# this is not the deprecated setuptools test call but a custom setup compiling stuff and running pytest