File python-papyrus.spec of Package python-papyrus

#
# spec file for package python-papyrus
#
# Copyright (c) 2018 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-papyrus
Version:        2.4
Release:        0
Summary:        Geospatial Extensions for Pyramid web framework
License:        BSD-2-Clause
Group:          Development/Languages/Python
URL:            https://github.com/elemoine/papyrus
Source:         https://files.pythonhosted.org/packages/source/p/papyrus/papyrus-%{version}.tar.gz
BuildRequires:  %{python_module GeoAlchemy2}
BuildRequires:  %{python_module SQLAlchemy}
BuildRequires:  %{python_module Shapely}
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module geojson}
BuildRequires:  %{python_module mock}
BuildRequires:  %{python_module nose}
BuildRequires:  %{python_module pbr}
BuildRequires:  %{python_module psycopg2}
BuildRequires:  %{python_module pyramid_handlers}
BuildRequires:  %{python_module pyramid}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module simplejson}
BuildRequires:  %{python_module six}
BuildRequires:  %{python_module traceback2}
BuildRequires:  fdupes
BuildRequires:  geos-devel
BuildRequires:  python-rpm-macros
Requires:       python-GeoAlchemy2
Requires:       python-Shapely
Requires:       python-geojson
Requires:       python-psycopg2
Requires:       python-pyramid
Requires:       python-pyramid_handlers
Requires:       python-six
BuildArch:      noarch
%python_subpackages

%description
Papyrus provides geospatial extensions for the Pyramid web framework.

Papyrus includes an implementation of the MapFish Protocol.
The MapFish Protocol defines a HTTP interface for creating, reading, updating,
and deleting (CRUD) geographic objects (a.k.a. features).

Papyrus includes lower-level objects, like the GeoJSON renderer, that may
come in handy for your apps even if you don’t need or want MapFish views.

Documentation for stable is located at
http://papyrus.readthedocs.org/en/stable/

%prep
%setup -q -n papyrus-%{version}

%build
%python_build

%install
%python_install
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}

%check
%if 0%{?suse_version} < 1550
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} nosetests-%{$python_version}
%endif

%files %python_files
%defattr(-,root,root)
%license LICENSE.txt
%doc TODO.rst README.rst CHANGES.rst
%{python_sitelib}/papyrus/
%{python_sitelib}/papyrus-%{version}-py%%{python_version}.egg-info

%changelog