%global srcname Rtree # Since the package has a history of arch-dependent bugs (see RHBZ#2055249), # the base package is arched to flush out any arch-dependent bugs by ensuring # the tests are run on every architecture. The binary package is still # pure-Python and correctly noarch. Since there is no compiled code, there is # no debuginfo to generate. %global debug_package %{nil} Name: python-%{srcname} Version: 0.9.7 Release: 4%{?dist} Summary: R-Tree spatial index for Python GIS %global _description \ Rtree is a ctypes Python wrapper of the spatialindex library, 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) License: LGPLv2 URL: https://pypi.python.org/pypi/%{srcname} Source0: https://files.pythonhosted.org/packages/source/R/%{srcname}/%{srcname}-%{version}.tar.gz # Since we are not bundling libspatialite as upstream does for PyPI wheel # distribution, do not force setuptools to treat the package as binary/arched # (which would cause it to be installed in %%python3_sitearch, and would mean # this package could not properly be noarch). # # Since upstream does want to bundle libspatialite, this is a downstream-only # patch. # # https://bugzilla.redhat.com/show_bug.cgi?id=2050010 Patch0: Rtree-0.9.7-no-bundled-spatialite.patch # Fix test failures on s390x by correcting C API mismatches vs. libspatialite # # https://bugzilla.redhat.com/show_bug.cgi?id=2055249 # https://github.com/Toblerity/rtree/issues/220 # https://github.com/Toblerity/rtree/pull/222 # # Rebased on release 0.9.7: Patch1: https://github.com/musicinmybrain/rtree/pull/1.patch#/Rtree-0.9.7-issue-220-pr-222.patch BuildRequires: spatialindex-devel BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pytest BuildRequires: python3-numpy BuildRequires: python3-wheel %description %{_description} %package -n python3-rtree Summary: %{summary} %{?python_provide:%python_provide python3-rtree} BuildArch: noarch Requires: spatialindex %description -n python3-rtree %{_description} %prep %autosetup -n Rtree-%{version} -p1 # Delete junk from tarball. rm -rf Rtree.egg-info find . -name '*.pyc' -delete rm setup.cfg rm -rf docs/build %build %py3_build %install %py3_install %check %pytest --doctest-modules # Note that there is no %%files section for the unversioned python module if we # are building for several python runtimes %files -n python3-rtree %license LICENSE.txt %doc README.md %{python3_sitelib}/rtree %{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info %changelog * Sat Feb 19 2022 Benjamin A. Beasley - 0.9.7-4 - Ensure tests run on all architectures - Fix RHBZ#2055249 with upstream PR#222, which includes fixes for additional C API mismatches. * Thu Feb 03 2022 Benjamin A. Beasley - 0.9.7-3 - Fix arch/noarch confusion (fix RHBZ#2050010) * Fri Jan 21 2022 Fedora Release Engineering - 0.9.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Aug 17 2021 Mukundan Ragavan - 0.9.7-1 - Update to 0.9.7 * Fri Jul 23 2021 Fedora Release Engineering - 0.9.4-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.9.4-5 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.9.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 0.9.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 0.9.4-2 - Rebuilt for Python 3.9 * Tue Feb 11 2020 Volker Fröhlich - 0.9.4-1 - New version * Thu Jan 30 2020 Fedora Release Engineering - 0.9.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Dec 11 2019 Volker Fröhlich - 0.9.3-1 - New version * Mon Dec 09 2019 Volker Fröhlich - 0.9.2-1 - New version * Mon Nov 25 2019 Volker Fröhlich - 0.9.1-1 - Remove meaningless comment - There's no point in building documentation we don't ship and it failed too - Remove outdated version constraints on R/BR - Remove upstreamed patch * Thu Oct 03 2019 Miro Hrončok - 0.8.3-12 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.8.3-11 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.8.3-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.8.3-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Oct 17 2018 Zbigniew Jędrzejewski-Szmek - 0.8.3-8 - Subpackage python2-rtree has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Fri Jul 13 2018 Fedora Release Engineering - 0.8.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.8.3-6 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 0.8.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Tue Aug 22 2017 Volker Fröhlich - 0.8.3-4 - Remove meaningless comment * Thu Aug 17 2017 Zbigniew Jędrzejewski-Szmek - 0.8.3-4 - Rename binary packages to lowercase * Sat Aug 12 2017 Elliott Sales de Andrade 0.8.3-3 - New upstream release - Update spec to new guidelines - Add Python 3 subpackage (#1481100) - Add documentation - Simplify spec with more macros - NumPy is needed for testing as well * Thu Jul 27 2017 Fedora Release Engineering - 0.7.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.7.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Jul 19 2016 Fedora Release Engineering - 0.7.0-9 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 0.7.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 0.7.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.7.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Feb 08 2014 Volker Fröhlich - 0.7.0-5 - Remove hard-coded library extension (BZ#1001840) - Ignore harmless test failure to fix FTBFS - Remove obsolete version requirements * Sun Aug 04 2013 Fedora Release Engineering - 0.7.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0.7.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Oct 12 2012 Volker Fröhlich - 0.7.0-2 - BR python-setuptools instead of ...-devel - Delete pre-built egg info * Sat Apr 14 2012 Volker Fröhlich - 0.7.0-1 - Initial package for Fedora