python-geopandas/python-geopandas.spec
Elliott Sales de Andrade 6f736ecb57 Convert to rpmautospec
2021-10-03 15:53:50 -04:00

74 lines
2.1 KiB
RPMSpec

%global srcname geopandas
Name: python-%{srcname}
Version: 0.9.0
Release: %autorelease
Summary: Geographic Pandas extensions
%global _description \
GeoPandas is a project to add support for geographic data to Pandas objects. \
\
The goal of GeoPandas is to make working with geospatial data in Python easier. \
It combines the capabilities of Pandas and Shapely, providing geospatial \
operations in Pandas and a high-level interface to multiple geometries to \
Shapely. GeoPandas enables you to easily do operations in Python that would \
otherwise require a spatial database such as PostGIS.
License: BSD
URL: https://pypi.python.org/pypi/%{srcname}
Source0: https://github.com/%{srcname}/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz
Patch0001: 0001-Skip-test_overlay_nybb-on-broken-platforms.patch
# https://github.com/geopandas/geopandas/pull/1958
Patch0002: 0002-TST-fix-proj4strings-test-for-PROJ-8.0.1-1958.patch
# https://github.com/geopandas/geopandas/pull/1878
Patch0003: 0003-TST-skip-pandas-master-fillna-test-1878.patch
# https://github.com/geopandas/geopandas/issues/1975
Patch0004: 0004-TST-adapt-GPKG-tests-with-undefined-CRS-1986.patch
BuildArch: noarch
%description %{_description}
%package -n python3-%{srcname}
Summary: %{summary}
BuildRequires: python3-devel
BuildRequires: python3dist(setuptools)
BuildRequires: python3dist(fiona) >= 1.8
BuildRequires: python3dist(numpy) >= 1.15
BuildRequires: python3dist(pandas) >= 0.24
BuildRequires: python3dist(pyproj) >= 2.2
BuildRequires: python3dist(shapely) >= 1.6
BuildRequires: python3dist(pytest)
BuildRequires: python3dist(rtree) >= 0.8
BuildRequires: python3dist(matplotlib) >= 2.0.1
%description -n python3-%{srcname} %{_description}
%prep
%autosetup -n %{srcname}-%{version} -p1
%build
%py3_build
%install
%py3_install
%check
%{pytest} -ra geopandas -m 'not web'
%files -n python3-%{srcname}
%license LICENSE.txt
%doc README.md CHANGELOG.md
%{python3_sitelib}/%{srcname}/
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/
%changelog
%autochangelog