15
0
forked from pool/python-Rtree

Accepting request 1245774 from devel:languages:python

- Switch to pyproject macros.
- Stop using libdir macro, which now doesn't return /usr/lib64.

OBS-URL: https://build.opensuse.org/request/show/1245774
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Rtree?expand=0&rev=3
This commit is contained in:
2025-02-14 18:20:56 +00:00
committed by Git OBS Bridge
2 changed files with 12 additions and 5 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Feb 14 03:17:29 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
- Stop using libdir macro, which now doesn't return /usr/lib64.
-------------------------------------------------------------------
Tue Sep 17 11:34:46 UTC 2024 - Nico Krapp <nico.krapp@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-Rtree
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -36,7 +36,8 @@ BuildRequires: fdupes
# only for the shlib requirement, no headers needed
BuildRequires: spatialindex-devel
BuildRequires: python-rpm-macros
Requires: %(rpm -q --queryformat "%%{NAME}" -f $(readlink -f %{_libdir}/libspatialindex.so))
# Since this is noarch, _libdir doesn't work for 64 bit arches
Requires: %(rpm -q --queryformat "%%{NAME}" -f $(readlink -f /usr/lib*/libspatialindex.so))
Provides: python-rtree = %{version}-%{release}
BuildArch: noarch
%python_subpackages
@@ -59,10 +60,10 @@ spatial indexing features for the spatially curious Python user.
%autosetup -p1 -n rtree-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -72,6 +73,6 @@ spatial indexing features for the spatially curious Python user.
%doc README.md
%license LICENSE.txt
%{python_sitelib}/rtree
%{python_sitelib}/Rtree-%{version}*-info
%{python_sitelib}/Rtree-%{version}.dist-info
%changelog