From 557e3ebe051fe30df50395a0fa4049f7b24f446f4aa0e4a3d35e8c295f6ce940 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 19 May 2021 11:53:51 +0000 Subject: [PATCH] Accepting request 894295 from home:bnavigator:branches:devel:languages:python - Use a more sophisticated approach in order to find the correct runtime dependency for libspatialindex OBS-URL: https://build.opensuse.org/request/show/894295 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Rtree?expand=0&rev=2 --- python-Rtree.changes | 6 ++++++ python-Rtree.spec | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/python-Rtree.changes b/python-Rtree.changes index 7a8e91b..8ae06cc 100644 --- a/python-Rtree.changes +++ b/python-Rtree.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed May 19 10:29:54 UTC 2021 - Ben Greiner + +- Use a more sophisticated approach in order to find the correct + runtime dependency for libspatialindex + ------------------------------------------------------------------- Mon May 17 22:22:43 UTC 2021 - Ben Greiner diff --git a/python-Rtree.spec b/python-Rtree.spec index edebe34..b52021e 100644 --- a/python-Rtree.spec +++ b/python-Rtree.spec @@ -32,9 +32,10 @@ BuildRequires: %{python_module numpy} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes -BuildRequires: libspatialindex4 +# only for the shlib requirement, no headers needed +BuildRequires: spatialindex-devel BuildRequires: python-rpm-macros -Requires: libspatialindex4 +Requires: %(rpm -q --queryformat "%%{NAME}" -f $(readlink -f %{_libdir}/libspatialindex.so)) Provides: python-rtree = %{version}-%{release} BuildArch: noarch %python_subpackages