## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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 %global srcname mapclassify Name: python-%{srcname} Version: 2.5.0 Release: %autorelease Summary: Classification Schemes for Choropleth Maps License: BSD-3-Clause URL: https://github.com/pysal/mapclassify Source0: %pypi_source %{srcname} BuildArch: noarch BuildRequires: python3-devel # Tests BuildRequires: python3dist(rtree) %description mapclassify is an open-source python library for Choropleth map classification. It is part of PySAL the Python Spatial Analysis Library. %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} mapclassify is an open-source python library for Choropleth map classification. It is part of PySAL the Python Spatial Analysis Library. %prep %autosetup -n %{srcname}-%{version} %generate_buildrequires %pyproject_buildrequires -x tests %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{srcname} %check # This test is flaky due to networkx: # https://github.com/pysal/mapclassify/pull/77 %{pytest} -k 'not test_smallest_last' %files -n python3-%{srcname} -f %{pyproject_files} %license LICENSE.txt %doc README.md %changelog * Mon Feb 20 2023 Elliott Sales de Andrade 2.5.0-1 - Update to latest version (#2160844) * Mon Feb 20 2023 Elliott Sales de Andrade 2.4.3-7 - Switch to latest Python macros * Fri Jan 20 2023 Fedora Release Engineering 2.4.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering 2.4.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jul 04 2022 Python Maint 2.4.3-4 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering 2.4.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 2.4.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 2.4.2-2 - Rebuilt for Python 3.10 * Sat Feb 06 2021 Elliott Sales de Andrade - 2.4.2-1 - Update to latest version (#1910171) * Wed Jan 27 2021 Fedora Release Engineering - 2.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Dec 14 2020 Elliott Sales de Andrade - 2.4.0-1 - Update to latest version (#1907273) * Wed Jul 29 2020 Fedora Release Engineering - 2.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jul 02 2020 Elliott Sales de Andrade - 2.3.0-1 - Update to latest version * Tue May 26 2020 Miro HronĨok - 2.2.0-2 - Rebuilt for Python 3.9 * Thu Feb 13 2020 Elliott Sales de Andrade - 2.2.0-1 - Initial package.