Switch to latest Python macros
This commit is contained in:
parent
6f736ecb57
commit
376ebe09d6
1 changed files with 6 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue