File python-papyrus.spec of Package python-papyrus
#
# spec file for package python-papyrus
#
# Copyright (c) 2024 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/
#
%define skip_python2 1
Name: python-papyrus
Version: 2.5
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 devel}
BuildRequires: %{python_module geojson}
BuildRequires: %{python_module pyramid}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module simplejson}
BuildRequires: %{python_module six}
BuildRequires: fdupes
BuildRequires: geos-devel
BuildRequires: python-rpm-macros
Requires: python-GeoAlchemy2
Requires: python-geojson
Requires: python-pyramid
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
https://papyrus.readthedocs.org/en/stable/
%prep
%setup -q -n papyrus-%{version}
# Fix new syntax on python 3.8
sed -i 's,ST_DWITHIN,ST_DWithin,g' papyrus/tests/*.py
%build
%python_build
%install
%python_install
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
%files %python_files
%defattr(-,root,root)
%license LICENSE.txt
%doc TODO.rst README.rst CHANGES.rst
%{python_sitelib}/papyrus/
%{python_sitelib}/papyrus-*.egg-info
%changelog