2021-05-18 10:54:04 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-Rtree
|
|
|
|
|
#
|
2025-02-14 03:18:09 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2021-05-18 10:54:04 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2024-09-17 12:25:26 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2021-05-18 10:54:04 +00:00
|
|
|
Name: python-Rtree
|
2024-09-17 12:25:26 +00:00
|
|
|
Version: 1.3.0
|
2021-05-18 10:54:04 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: R-Tree spatial index for Python GIS
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/Toblerity/rtree
|
2024-09-17 12:25:26 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/R/Rtree/rtree-%{version}.tar.gz
|
2021-05-18 10:54:04 +00:00
|
|
|
Source99: python-Rtree-rpmlintrc
|
|
|
|
|
# PATCH-FIX-OPENSUSE Rtree-opensuse-noarch.patch -- we don't put spatialindex into a wheel so the module is kept pure. <code@bnavigator.de>
|
|
|
|
|
Patch0: Rtree-opensuse-noarch.patch
|
|
|
|
|
BuildRequires: %{python_module numpy}
|
2024-09-17 12:25:26 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2021-05-18 10:54:04 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2024-09-17 12:25:26 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2021-05-18 10:54:04 +00:00
|
|
|
BuildRequires: fdupes
|
2021-05-19 11:53:51 +00:00
|
|
|
# only for the shlib requirement, no headers needed
|
|
|
|
|
BuildRequires: spatialindex-devel
|
2021-05-18 10:54:04 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2025-02-14 03:18:09 +00:00
|
|
|
# Since this is noarch, _libdir doesn't work for 64 bit arches
|
|
|
|
|
Requires: %(rpm -q --queryformat "%%{NAME}" -f $(readlink -f /usr/lib*/libspatialindex.so))
|
2021-05-18 10:54:04 +00:00
|
|
|
Provides: python-rtree = %{version}-%{release}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
A ctypes Python wrapper of libspatialindex that provides a number of advanced
|
|
|
|
|
spatial indexing features for the spatially curious Python user.
|
|
|
|
|
|
|
|
|
|
* Nearest neighbor search
|
|
|
|
|
* Intersection search
|
|
|
|
|
* Multi-dimensional indexes
|
|
|
|
|
* Clustered indexes (store Python pickles directly with index entries)
|
|
|
|
|
* Bulk loading
|
|
|
|
|
* Deletion
|
|
|
|
|
* Disk serialization
|
|
|
|
|
* Custom storage implementation (to implement spatial indexing in ZODB,
|
|
|
|
|
for example)
|
|
|
|
|
|
|
|
|
|
%prep
|
2024-09-17 12:25:26 +00:00
|
|
|
%autosetup -p1 -n rtree-%{version}
|
2021-05-18 10:54:04 +00:00
|
|
|
|
|
|
|
|
%build
|
2025-02-14 03:18:09 +00:00
|
|
|
%pyproject_wheel
|
2021-05-18 10:54:04 +00:00
|
|
|
|
|
|
|
|
%install
|
2025-02-14 03:18:09 +00:00
|
|
|
%pyproject_install
|
2021-05-18 10:54:04 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%pytest
|
|
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
|
%doc README.md
|
|
|
|
|
%license LICENSE.txt
|
|
|
|
|
%{python_sitelib}/rtree
|
2025-03-25 08:02:29 +00:00
|
|
|
%{python_sitelib}/rtree-%{version}.dist-info
|
2021-05-18 10:54:04 +00:00
|
|
|
|
|
|
|
|
%changelog
|