2022-10-11 08:31:47 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-pygeos
|
|
|
|
|
#
|
2023-09-04 09:19:10 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2022-10-11 08:31:47 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2023-09-04 09:19:10 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2022-10-11 08:31:47 +00:00
|
|
|
Name: python-pygeos
|
2023-09-04 09:19:10 +00:00
|
|
|
Version: 0.14
|
2022-10-11 08:31:47 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: GEOS wrapped in numpy ufuncs
|
|
|
|
|
License: BSD-3-Clause
|
|
|
|
|
URL: https://github.com/pygeos/pygeos
|
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/pygeos/pygeos-%{version}.tar.gz
|
2023-09-04 09:19:10 +00:00
|
|
|
BuildRequires: %{python_module Cython with %python-Cython < 3}
|
|
|
|
|
BuildRequires: %{python_module devel >= 3.7}
|
2022-10-11 08:31:47 +00:00
|
|
|
BuildRequires: %{python_module numpy-devel}
|
2023-09-04 09:19:10 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
|
BuildRequires: %{python_module setuptools >= 61}
|
|
|
|
|
BuildRequires: %{python_module wheel}
|
2022-10-11 08:31:47 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: libgeos-devel
|
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
Requires: python-numpy >= 1.13
|
|
|
|
|
# SECTION test requirements
|
2023-09-04 09:19:10 +00:00
|
|
|
BuildRequires: %{python_module numpy}
|
2022-10-11 08:31:47 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
|
# /SECTION
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
PyGEOS is a C/Python library with vectorized geometry functions.
|
|
|
|
|
The geometry operations are done in the open-source geometry library GEOS.
|
|
|
|
|
PyGEOS wraps these operations in NumPy ufuncs providing a performance
|
|
|
|
|
improvement when operating on arrays of geometries.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n pygeos-%{version}
|
|
|
|
|
mv pygeos/tests/ .
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
export CFLAGS="%{optflags}"
|
2023-09-04 09:19:10 +00:00
|
|
|
%pyproject_wheel
|
2022-10-11 08:31:47 +00:00
|
|
|
|
|
|
|
|
%install
|
2023-09-04 09:19:10 +00:00
|
|
|
%pyproject_install
|
2022-10-11 08:31:47 +00:00
|
|
|
%python_expand rm %{buildroot}%{$python_sitearch}/pygeos/_{geometry,geos}.c
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
mv pygeos .pygeos
|
|
|
|
|
%pytest_arch -rs -k 'not test_float_arg_array'
|
|
|
|
|
mv .pygeos pygeos
|
|
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%license LICENSE
|
2023-09-04 09:19:10 +00:00
|
|
|
%{python_sitearch}/pygeos
|
|
|
|
|
%{python_sitearch}/pygeos-%{version}.dist-info
|
2022-10-11 08:31:47 +00:00
|
|
|
|
|
|
|
|
%changelog
|