Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37623961
en ru br
Репозитории ALT

Группа :: Development/Python3
Пакет: python3-module-rtree

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define oname rtree
%define srcname Rtree

# check failed on i586

%ifarch %ix86
%def_disable check
%endif

Name: python3-module-%oname
Version: 0.9.4
Release: alt1

Summary: R-Tree spatial index for Python GIS

License: LGPLv2.1
Group: Development/Python3
Url: https://pypi.python.org/pypi/Rtree/

# https://github.com/Toblerity/rtree.git

# Source-url: https://files.pythonhosted.org/packages/source/R/%srcname/%srcname-%version.tar.gz
Source: %name-%version.tar

BuildArch: noarch

BuildRequires: spatialindex-devel
BuildRequires(pre): rpm-build-python3
BuildRequires(pre): rpm-macros-sphinx3
BuildRequires: python3-devel python3-module-setuptools
BuildRequires: python3-module-sphinx
BuildRequires: python3-module-pytest
BuildRequires: python3-module-numpy

Requires: spatialindex

%description
Rtree is a ctypes Python wrapper of libspatialindex that provides a
number of advanced spatial indexing features for the spatially curious
Python user. These features include:

* 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)

%package docs
Summary: Documentation for %oname
Group: Development/Documentation
BuildArch: noarch

%description docs
Rtree is a ctypes Python wrapper of libspatialindex that provides a
number of advanced spatial indexing features for the spatially curious
Python user.

This package contains documentation for %oname.

%prep
%setup

# Delete junk from tarball.

rm -rf Rtree.egg-info
find . -name '*.pyc' -delete
rm setup.cfg
rm -rf docs/build

%prepare_sphinx3 docs
ln -s ../objects.inv docs/source/

%build
%python3_build

%install
%python3_install

%make -C docs html SPHINXBUILD=sphinx-build-3

%check
export LC_ALL=en_US.UTF-8

PYTHONPATH="%buildroot%python3_sitelibdir" \
   py.test3 -ra tests
PYTHONPATH="%buildroot%python3_sitelibdir" \
   py.test3 -ra --doctest-modules rtree

%files
%doc *.txt *.md
%python3_sitelibdir/*

%files docs
%doc docs/build/html/*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin