1
0
Files
python-Shapely/python-Shapely.spec
Martin Pluskal 67cea74428 Accepting request 838103 from home:frispete:python
- update to 1.7.1
 * ``STRtree`` now safely implements the pickle protocol (#915).^
 * Documentation has been added for ``minimum_clearance`` (#875, #874).
 * In ``STRtree.__del__()`` we guard against calling ``GEOSSTRtree_destroy``
   when the lgeos module has already been torn down on exit (#897, #830).
 * Documentation for the ``overlaps()`` method has been corrected (#920).
 * Correct the test in ``shapely.geometry.base.BaseGeometry.empty()`` to
   eliminate memory leaks like the one reported in #745.
 * Get free() not from libc but from the processes global symbols (#891),
   fixing a bug that manifests on OS X 10.15 and 10.16.
 * Extracting substrings from complex lines has been made more correct (#848,
   #849).
 * Splitting of complex geometries has been sped up by preparing the input
   geometry (#871).
 * Fix bug in concatenation of function argtypes (#866).
 * Improved documentation of STRtree usage (#857).
 * Improved handling for empty list or list of lists in GeoJSON coordinates
   (#852).
 * The polylabel algorithm now accounts for polygon holes (#851, #817).

OBS-URL: https://build.opensuse.org/request/show/838103
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-Shapely?expand=0&rev=17
2020-09-29 05:58:17 +00:00

89 lines
2.7 KiB
RPMSpec

#
# spec file for package python-Shapely
#
# Copyright (c) 2020 SUSE LLC
#
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
%bcond_without test
Name: python-Shapely
Version: 1.7.1
Release: 0
Summary: Geospatial geometries, predicates, and operations
License: BSD-3-Clause
URL: https://github.com/Toblerity/Shapely
Source: https://files.pythonhosted.org/packages/source/S/Shapely/Shapely-%{version}.tar.gz
BuildRequires: %{python_module Cython >= 0.19}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module numpy-devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: geos-devel >= 3.3
BuildRequires: python-rpm-macros
Requires: geos >= 3.3
# SECTION test requirements
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest}
%if 0%{?suse_version} > 1320
BuildRequires: %{python_module matplotlib}
%endif
# /SECTION
%ifpython2
Obsoletes: %{oldpython}-shapely < %{version}
Provides: %{oldpython}-shapely = %{version}
%endif
%ifpython3
Obsoletes: python3-shapely < %{version}
Provides: python3-shapely = %{version}
%endif
%python_subpackages
%description
Shapely is a Python package for manipulation and analysis of
planar geometric objects. It is based on the GEOS (the
engine of PostGIS) and JTS (from which GEOS is ported) libraries.
Shapely is not concerned with data formats or coordinate systems,
but can be readily integrated with packages that are like WorldMill
and pyproj.
%prep
%setup -q -n Shapely-%{version}
%build
CFLAGS="%{optflags} `geos-config --cflags` LDFLAGS=`geos-config --clibs`"
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
# Those are just needed to build cython extension
# Not for distribute
rm -fv %{buildroot}%{_prefix}/shapely/_geos.pxi
rm -frv %{buildroot}%{_prefix}/shapely
%check
mv shapely shapely_temp
%pytest_arch
mv shapely_temp shapely
%files %{python_files}
%license LICENSE.txt
%doc CREDITS.txt README.rst docs/*
%{python_sitearch}/*
%changelog