Accepting request 709776 from Application:Geo

OBS-URL: https://build.opensuse.org/request/show/709776
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Shapely?expand=0&rev=13
This commit is contained in:
2019-06-14 18:42:16 +00:00
committed by Git OBS Bridge
parent 778f7f4238
commit 0171addfe2
2 changed files with 12 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jun 13 16:01:29 UTC 2019 - Todd R <toddrme2178@gmail.com>
- Run full unit tests
-------------------------------------------------------------------
Sat Dec 22 05:20:11 UTC 2018 - Todd R <toddrme2178@gmail.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-Shapely
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -35,13 +35,13 @@ BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: geos-devel >= 3.3
BuildRequires: python-rpm-macros
%if %{with test}
# SECTION test requirements
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest}
%if 0%{?suse_version} > 1320
BuildRequires: %{python_module matplotlib}
%endif
%endif
# /SECTION
Requires: geos >= 3.3
%ifpython2
Obsoletes: %{oldpython}-shapely < %{version}
@@ -51,6 +51,7 @@ Provides: %{oldpython}-shapely = %{version}
Obsoletes: python3-shapely < %{version}
Provides: python3-shapely = %{version}
%endif
%python_subpackages
%description
@@ -77,10 +78,10 @@ CFLAGS="%{optflags} `geos-config --cflags` LDFLAGS=`geos-config --clibs`"
rm -fv %{buildroot}%{_prefix}/shapely/_geos.pxi
rm -frv %{buildroot}%{_prefix}/shapely
%if %{with test}
%check
%python_exec setup.py test
%endif
mv shapely shapely_temp
%pytest_arch
mv shapely_temp shapely
%files %{python_files}
%defattr(-,root,root,-)