## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: python-Rtree Version: 1.3.0 Release: %autorelease Summary: R-Tree spatial index for Python GIS # 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} %global _description %{expand: 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)} # SPDX License: MIT URL: https://github.com/Toblerity/rtree Source: %{pypi_source rtree} # Treat as pure Python since libspatialindex is not bundled # # Since we are not bundling libspatialindex 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 libspatialindex, this is a downstream-only # patch. # # https://bugzilla.redhat.com/show_bug.cgi?id=2050010 Patch: 0001-Treat-as-pure-Python-since-libspatialindex-is-not-bu.patch BuildRequires: spatialindex-devel BuildRequires: python3-devel # For testing: BuildRequires: %{py3_dist pytest} BuildRequires: %{py3_dist numpy} %description %{_description} %package -n python3-rtree Summary: %{summary} BuildArch: noarch Requires: spatialindex %description -n python3-rtree %{_description} %prep %autosetup -n rtree-%{version} -p1 %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l rtree %check %pytest --doctest-modules tests rtree %files -n python3-rtree -f %{pyproject_files} %doc README.md %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 1.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jul 12 2024 Benjamin A. Beasley - 1.3.0-1 - Update to 1.3.0 (close RHBZ#2297064) * Sat Jun 08 2024 Python Maint - 1.2.0-3 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 1.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Benjamin A. Beasley - 1.2.0-1 - Update to 1.2.0 (close RHBZ#2259376) * Sun Jan 21 2024 Fedora Release Engineering - 1.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Dec 18 2023 Benjamin A. Beasley - 1.1.0-2 - Assert that %%pyproject_files contains a license file * Tue Oct 24 2023 Benjamin A. Beasley - 1.1.0-1 - Update to 1.1.0 (close RHBZ#2244705) * Thu Sep 21 2023 Benjamin A. Beasley - 1.0.1-2 - Ensure the release number still upgrades F39 * Thu Aug 24 2023 Benjamin A. Beasley - 1.0.1-1 - Update to 1.0.1 * Fri Jul 21 2023 Fedora Release Engineering - 1.0.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 1.0.0-7 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 1.0.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Nov 30 2022 Benjamin A. Beasley - 1.0.0-5 - Correct license from LGPLv2 to (SPDX) MIT * Fri Jul 22 2022 Fedora Release Engineering - 1.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 1.0.0-3 - Rebuilt for Python 3.11 * Sat Apr 16 2022 Benjamin A. Beasley - 1.0.0-2 - Fix spatialite→spatialindex typo in patch name/description * Wed Apr 06 2022 Benjamin A. Beasley - 1.0.0-1 - Update to 1.0.0 - Tidy up spec file macros and other trivia - Use pyproject-rpm-macros * 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 ## END: Generated by rpmautospec