From 376ebe09d6b79163e67deff4f7209815c6b145e3 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Sun, 3 Oct 2021 16:01:21 -0400 Subject: [PATCH] Switch to latest Python macros --- python-geopandas.spec | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/python-geopandas.spec b/python-geopandas.spec index 27b118c..a6e86e6 100644 --- a/python-geopandas.spec +++ b/python-geopandas.spec @@ -33,12 +33,7 @@ BuildArch: noarch 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 @@ -46,29 +41,25 @@ BuildRequires: python3dist(matplotlib) >= 2.0.1 %description -n python3-%{srcname} %{_description} - %prep %autosetup -n %{srcname}-%{version} -p1 +%generate_buildrequires +%pyproject_buildrequires -r %build -%py3_build - +%pyproject_wheel %install -%py3_install - +%pyproject_install +%pyproject_save_files %{srcname} %check %{pytest} -ra geopandas -m 'not web' - -%files -n python3-%{srcname} +%files -n python3-%{srcname} -f %{pyproject_files} %license LICENSE.txt %doc README.md CHANGELOG.md -%{python3_sitelib}/%{srcname}/ -%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/ - %changelog %autochangelog