2011-06-22 09:59:46 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-Paste
|
|
|
|
#
|
2018-03-20 14:49:00 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-06-22 09:59:46 +00:00
|
|
|
#
|
|
|
|
# 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.
|
2011-08-04 12:59:36 +00:00
|
|
|
|
2018-10-18 09:20:20 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-06-22 09:59:46 +00:00
|
|
|
#
|
|
|
|
|
2011-08-04 12:59:36 +00:00
|
|
|
|
2017-04-19 02:23:58 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2017-05-05 22:00:20 +00:00
|
|
|
%define oldpython python
|
2011-06-22 09:59:46 +00:00
|
|
|
Name: python-Paste
|
2018-12-17 21:10:44 +00:00
|
|
|
Version: 3.0.5
|
2012-11-22 15:37:12 +00:00
|
|
|
Release: 0
|
2011-06-22 09:59:46 +00:00
|
|
|
Summary: Tools for using a Web Server Gateway Interface stack
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/Python
|
2018-10-18 09:20:20 +00:00
|
|
|
URL: http://pythonpaste.org
|
2017-04-19 02:23:58 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/P/Paste/Paste-%{version}.tar.gz
|
2018-10-18 09:20:20 +00:00
|
|
|
# Test build requirements:
|
|
|
|
BuildRequires: %{python_module nose}
|
2018-12-17 21:10:44 +00:00
|
|
|
BuildRequires: %{python_module pytest-runner}
|
|
|
|
BuildRequires: %{python_module pytest}
|
2017-04-19 02:23:58 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module six > 1.4.0}
|
2017-08-10 07:12:15 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2012-11-22 15:37:12 +00:00
|
|
|
# Documentation build requirements:
|
2017-04-19 02:23:58 +00:00
|
|
|
BuildRequires: python3-Sphinx
|
2016-06-06 11:12:17 +00:00
|
|
|
Requires: python-six > 1.4.0
|
2018-10-18 09:20:20 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
Suggests: python-flup
|
2017-04-19 02:23:58 +00:00
|
|
|
%ifpython2
|
2017-05-05 22:00:20 +00:00
|
|
|
Provides: %{oldpython}-paste = %{version}
|
|
|
|
Obsoletes: %{oldpython}-paste < %{version}
|
2018-10-18 09:20:20 +00:00
|
|
|
Suggests: python-python-openid
|
2017-04-19 02:23:58 +00:00
|
|
|
%endif
|
|
|
|
%ifpython3
|
2017-08-10 07:12:15 +00:00
|
|
|
Suggests: python3-python3-openid
|
2017-04-19 02:23:58 +00:00
|
|
|
%endif
|
|
|
|
%python_subpackages
|
2011-06-22 09:59:46 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
These provide several pieces of "middleware" (or filters) that can be nested
|
|
|
|
to build web applications. Each piece of middleware uses the WSGI (PEP 333)
|
|
|
|
interface, and should be compatible with other middleware based on those
|
|
|
|
interfaces.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Paste-%{version}
|
2015-05-12 21:32:52 +00:00
|
|
|
# remove test requiring internet access
|
|
|
|
rm tests/test_proxy.py
|
2011-06-22 09:59:46 +00:00
|
|
|
|
|
|
|
%build
|
2017-04-19 02:23:58 +00:00
|
|
|
%python_build
|
2018-10-18 09:20:20 +00:00
|
|
|
python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
2011-06-22 09:59:46 +00:00
|
|
|
|
|
|
|
%install
|
2017-04-19 02:23:58 +00:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2011-06-22 09:59:46 +00:00
|
|
|
|
2015-05-12 21:32:52 +00:00
|
|
|
%check
|
2017-04-19 02:23:58 +00:00
|
|
|
%python_exec setup.py -q test
|
2011-06-22 09:59:46 +00:00
|
|
|
|
2017-04-19 02:23:58 +00:00
|
|
|
%files %{python_files}
|
2018-10-18 09:20:20 +00:00
|
|
|
%license docs/license.txt
|
2017-04-19 02:23:58 +00:00
|
|
|
%doc build/sphinx/html/
|
2011-06-22 09:59:46 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|