## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %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 contextily # Some tests require the network. %bcond_with network Name: python-%{srcname} Version: 1.4.0 Release: %autorelease Summary: Context geo-tiles in Python License: BSD-3-Clause URL: https://github.com/geopandas/contextily Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(pytest) %description contextily is a small Python 3 package to retrieve and write to disk tile maps from the internet into geospatial raster files. Bounding boxes can be passed in both WGS84 (EPSG:4326) and Spheric Mercator (EPSG:3857). %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} contextily is a small Python 3 package to retrieve and write to disk tile maps from the internet into geospatial raster files. Bounding boxes can be passed in both WGS84 (EPSG:4326) and Spheric Mercator (EPSG:3857). %prep %autosetup -n %{srcname}-%{version} -p1 %generate_buildrequires export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_buildrequires %build export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_wheel %install %pyproject_install %pyproject_save_files %{srcname} %check %if %{with network} %{pytest} %else %{pytest} -m 'not network' %endif %files -n python3-%{srcname} -f %{pyproject_files} %license LICENSE.txt %doc README.md %changelog * Mon Oct 09 2023 Elliott Sales de Andrade - 1.4.0-1 - Update to latest version (#2242101) * Fri Jul 21 2023 Fedora Release Engineering - 1.3.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jul 04 2023 Python Maint - 1.3.0-3 - Rebuilt for Python 3.12 * Sun Apr 09 2023 Elliott Sales de Andrade - 1.3.0-2 - Switch to SPDX license * Sun Feb 19 2023 Elliott Sales de Andrade - 1.3.0-1 - Update to latest version (#2167425) * Sun Jan 22 2023 Elliott Sales de Andrade - 1.2.0-4 - Backport fix for tests * Fri Jan 20 2023 Fedora Release Engineering - 1.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sat Jan 29 2022 Elliott Sales de Andrade - 1.2.0-1 - Update to latest version (#2014773) * Sat Jan 29 2022 Elliott Sales de Andrade - 1.0.1-7 - Switch to latest Python macros * Fri Jan 21 2022 Fedora Release Engineering - 1.0.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 1.0.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.0.1-3 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 1.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Oct 17 2020 Elliott Sales de Andrade - 1.0.1-1 - Update to latest version (#1888933) * Wed Jul 29 2020 Fedora Release Engineering - 1.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro HronĨok - 1.0.0-2 - Rebuilt for Python 3.9 * Wed Apr 08 2020 Elliott Sales de Andrade - 1.0.0-1 - Update to latest version * Sat Feb 22 2020 Elliott Sales de Andrade - 1.0~rc2-1 - Update to latest release candidate * Fri Feb 14 2020 Elliott Sales de Andrade - 0.99.0-1 - Initial package.