forked from pool/python-Rtree
new requirement of spyder 5.0.3 OBS-URL: https://build.opensuse.org/request/show/894008 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Rtree?expand=0&rev=1
76 lines
2.3 KiB
RPMSpec
76 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package python-Rtree
|
|
#
|
|
# Copyright (c) 2021 SUSE LLC
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%define skip_python36 1
|
|
Name: python-Rtree
|
|
Version: 0.9.7
|
|
Release: 0
|
|
Summary: R-Tree spatial index for Python GIS
|
|
License: MIT
|
|
URL: https://github.com/Toblerity/rtree
|
|
Source: https://files.pythonhosted.org/packages/source/R/Rtree/Rtree-%{version}.tar.gz
|
|
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}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: libspatialindex4
|
|
BuildRequires: python-rpm-macros
|
|
Requires: libspatialindex4
|
|
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
|
|
%autosetup -p1 -n Rtree-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%doc README.md
|
|
%license LICENSE.txt
|
|
%{python_sitelib}/rtree
|
|
%{python_sitelib}/Rtree-%{version}*-info
|
|
|
|
%changelog
|