## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 6; 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.4.3 Release: %autorelease Summary: Classification Schemes for Choropleth Maps License: BSD URL: https://github.com/pysal/mapclassify Source0: %pypi_source BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(networkx) BuildRequires: python3dist(numpy) >= 1.3 BuildRequires: python3dist(pandas) >= 1 BuildRequires: python3dist(scikit-learn) BuildRequires: python3dist(scipy) >= 1 BuildRequires: python3dist(setuptools) # Tests BuildRequires: python3dist(geopandas) BuildRequires: python3dist(libpysal) BuildRequires: python3dist(rtree) BuildRequires: python3dist(pytest) # Docs #BuildRequires: python3dist(numpydoc) #BuildRequires: python3dist(sphinx) >= 1.4.3 #BuildRequires: python3dist(sphinx-bootstrap-theme) #BuildRequires: python3dist(sphinx-gallery) #BuildRequires: python3dist(sphinxcontrib-bibtex) %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} %{?python_provide:%python_provide python3-%{srcname}} %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} # Remove bundled egg-info rm -rf %{srcname}.egg-info %build %py3_build %install %py3_install %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} %license LICENSE.txt %doc README.md %{python3_sitelib}/%{srcname}/ %{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/ %changelog * 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.