Accepting request 989741 from home:bnavigator:branches:devel:languages:python
- Work around vendored distutils in setuptools >= 60 incorrectly installing pkgconfig files into the wrong libdir - Deduplicate files in python_sitearch OBS-URL: https://build.opensuse.org/request/show/989741 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycairo?expand=0&rev=14
This commit is contained in:
parent
96870147f6
commit
dea75cdaf6
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user