forked from pool/python-pycairo
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:
commit
f6dcfc8e32
@ -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>
|
Thu Aug 12 08:07:16 UTC 2021 - Frederic Crozat <fcrozat@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pycairo
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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 pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: cairo-devel >= 1.15.10
|
BuildRequires: cairo-devel >= 1.15.10
|
||||||
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Provides: python-cairo = %{version}
|
Provides: python-cairo = %{version}
|
||||||
Obsoletes: python-cairo < %{version}
|
Obsoletes: python-cairo < %{version}
|
||||||
@ -77,6 +78,13 @@ packages that depend on Pycairo.
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_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
|
%check
|
||||||
# this is not the deprecated setuptools test call but a custom setup compiling stuff and running pytest
|
# this is not the deprecated setuptools test call but a custom setup compiling stuff and running pytest
|
||||||
|
Loading…
x
Reference in New Issue
Block a user