File python-papyrus.spec of Package python-papyrus
#
# spec file for package python-papyrus
#
# Copyright (c) 2017 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 http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-papyrus
Version: 2.2
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
# Fix tests (upstream)
Patch0: upstream-post-2.2.patch
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}
%patch0 -p1
%build
%python_build
%install
%python_install
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
%check
%python_exec %{_bindir}/nosetests
%files %python_files
%defattr(-,root,root)
%if 0%{?leap_version} >= 420200 || 0%{?suse_version} > 1320
%license LICENSE.txt
%else
%doc LICENSE.txt
%endif
%doc TODO.rst README.rst CHANGES.rst
%{python_sitelib}/papyrus/
%{python_sitelib}/papyrus-%{version}-py%%{python_version}.egg-info
%changelog