2011-06-22 09:59:46 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-Paste
|
|
|
|
#
|
2021-02-23 19:01:00 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
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
|
2020-11-26 09:07:35 +00:00
|
|
|
Version: 3.5.0
|
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
|
2019-01-03 07:23:25 +00:00
|
|
|
URL: https://github.com/cdent/paste
|
2017-04-19 02:23:58 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/P/Paste/Paste-%{version}.tar.gz
|
2019-03-08 11:22:11 +00:00
|
|
|
Patch0: test_modified-fixup.patch
|
2018-12-17 21:10:44 +00:00
|
|
|
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
|
2016-06-06 11:12:17 +00:00
|
|
|
Requires: python-six > 1.4.0
|
2018-10-18 09:20:20 +00:00
|
|
|
Suggests: python-flup
|
2019-09-24 09:25:46 +00:00
|
|
|
BuildArch: noarch
|
2017-04-19 02:23:58 +00:00
|
|
|
%ifpython2
|
2019-09-24 09:25:46 +00:00
|
|
|
Suggests: python-python-openid
|
2017-05-05 22:00:20 +00:00
|
|
|
Provides: %{oldpython}-paste = %{version}
|
|
|
|
Obsoletes: %{oldpython}-paste < %{version}
|
2017-04-19 02:23:58 +00:00
|
|
|
%endif
|
2021-02-23 19:01:00 +00:00
|
|
|
%if %{python_version_nodots} >= 30
|
|
|
|
Suggests: python-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}
|
2019-03-08 11:22:11 +00:00
|
|
|
%patch0 -p1
|
|
|
|
sed -i '/pytest-runner/d' setup.py
|
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
|
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
|
2019-09-24 09:25:46 +00:00
|
|
|
%pytest
|
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
|
2019-03-05 19:13:36 +00:00
|
|
|
%doc README.rst
|
2011-06-22 09:59:46 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|