File python-geoalchemy2.spec of Package python-geoalchemy2
#
# spec file for package python-geoalchemy2
#
# 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
# 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-%{**}}
Name: python-geoalchemy2
Version: 0.8.4
Release: 0
Summary: Spatial Database toolkit based on SQLAlchemy
License: MIT
Group: Development/Languages/Python
URL: http://geoalchemy.org/
Source0: https://files.pythonhosted.org/packages/source/G/GeoAlchemy2/GeoAlchemy2-%{version}.tar.gz
BuildRequires: %{python_module SQLAlchemy >= 0.9}
BuildRequires: %{python_module Shapely >= 1.3.0}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-SQLAlchemy >= 0.9
Requires: python-Shapely >= 1.3.0
# Test requirements: there's no upstream tests in pypi tar.
Provides: python-GeoAlchemy2
BuildArch: noarch
%python_subpackages
%description
GeoAlchemy2 is a Python toolkit for working with spatial databases. It is
based on the gorgeous SQLAlchemy.
Documentation is on Read the Docs: http://geoalchemy-2.rtfd.org.
GeoAlchemy2 focuses on PostgreSQL/PostGIS only.
PostGIS 1.5 and PostGIS 2 are supported.
GeoAlchemy 2 aims to be simpler than its predecessor, GeoAlchemy.
Simpler to use, and simpler to maintain.
%prep
%setup -q -n GeoAlchemy2-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
#%%check
# We don't want to run the tests here as it would impose to
# install a full postgresql server instance + postgis
# see https://github.com/geoalchemy/geoalchemy2/blob/master/TEST.rst
%files %python_files
%defattr(-,root,root,-)
%license COPYING.rst
%doc README.rst
%{python_sitelib}/*
%changelog