2011-06-22 09:59:46 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-Paste
|
|
|
|
#
|
2016-03-13 20:57:57 +00:00
|
|
|
# Copyright (c) 2016 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
|
|
|
|
2011-06-22 09:59:46 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-08-04 12:59:36 +00:00
|
|
|
|
2011-06-22 09:59:46 +00:00
|
|
|
Name: python-Paste
|
2016-06-06 11:12:17 +00:00
|
|
|
Version: 2.0.3
|
2012-11-22 15:37:12 +00:00
|
|
|
Release: 0
|
2011-06-22 09:59:46 +00:00
|
|
|
Url: http://pythonpaste.org
|
|
|
|
Summary: Tools for using a Web Server Gateway Interface stack
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/Python
|
2016-06-06 11:29:54 +00:00
|
|
|
Source: https://pypi.io/packages/source/P/Paste/Paste-%{version}.tar.gz
|
2011-06-22 09:59:46 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: python-devel
|
2013-10-24 11:09:47 +00:00
|
|
|
BuildRequires: python-setuptools
|
2012-11-22 15:37:12 +00:00
|
|
|
# Documentation build requirements:
|
|
|
|
BuildRequires: python-Sphinx
|
|
|
|
# Test build requirements:
|
2015-05-12 21:32:52 +00:00
|
|
|
BuildRequires: python-flup
|
|
|
|
BuildRequires: python-nose
|
|
|
|
BuildRequires: python-python-openid
|
|
|
|
BuildRequires: python-six
|
2011-06-22 09:59:46 +00:00
|
|
|
Requires: python-flup
|
2012-11-22 15:37:12 +00:00
|
|
|
Requires: python-python-openid
|
2016-06-06 11:12:17 +00:00
|
|
|
Requires: python-six > 1.4.0
|
2011-06-22 09:59:46 +00:00
|
|
|
Provides: python-paste = %{version}
|
|
|
|
Obsoletes: python-paste < %{version}
|
2012-11-22 15:37:12 +00:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
%else
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
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
|
2016-06-06 11:12:17 +00:00
|
|
|
# remove .orig files (see https://bitbucket.org/ianb/paste/issues/11/pypi-tarball-of-version-202-contains-orig)
|
|
|
|
rm paste/urlmap.py.orig
|
|
|
|
rm paste/httpserver.py.orig
|
|
|
|
rm paste/util/template.py.orig
|
2011-06-22 09:59:46 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
python setup.py build
|
2012-11-22 15:37:12 +00:00
|
|
|
python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
2011-06-22 09:59:46 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
|
2015-05-12 21:32:52 +00:00
|
|
|
%check
|
|
|
|
python setup.py -q test
|
2011-06-22 09:59:46 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2016-03-13 20:57:57 +00:00
|
|
|
%doc build/sphinx/html docs/license.txt
|
2011-06-22 09:59:46 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|