forked from pool/python-CherryPy
- conditionally disable python2 - update for singlespec - update to version 10.2.1 * too many changes to list - add many new requirements and recommends - update to version 3.6.0: * Fixed HTTP range headers for negative length larger than content size * Disabled universal wheel generation as wsgiserver has Python duality * Pull Request #42: Correct TypeError in ``check_auth`` when encrypt is used * Pull Request #59: Correct signature of HandlerWrapperTool * Pull Request #60: Fix error in SessionAuth where login_screen was incorrectly used * Issue #1077: Support keyword-only arguments in dispatchers (Python 3) * Issue #1019: Allow logging host name in the access log * Pull Request #50: Fixed race condition in session cleanup - changes from version 3.5.0: * Issue #1301: When the incoming queue is full, now reject additional connections. This functionality was added to CherryPy 3.0, but unintentionally lost in 3.1 - changes from version 3.4.0: * Miscellaneous quality improvements - remove CFLAGS export - use update-alternatives for cherryd binary - Update to version 3.3.0 + No changelog available - Update to version 3.2.6 + No changelog available - Update to version 3.2.5 + No changelog available - Update to version 3.2.4 + No changelog available - Remove redundant %clean section - update to 3.2.2 - python3 package added - minor spec improvement - Renamed package to python-CherryPy to match upstream PyPi name * Added Provides/Obsoletes for python-cherrypy - Update to 3.2: * WSGI-1.0.1 compliance, support for Python's builtin SSL module * Much improved FastCGI support * Python 3 support - Spec file cleanup: * Added proper license header * Added changelog section - Repacked tarball as tar.bz2 - the INSTALLED_FILES file name had a little typo - fix changelog to be in chronological order (an error that I probably introduced during the conversion) - add dos2unix to BuildRequires - convert the package changelog from the in-specfile text to a .changes file, to be edited with "osc vc" - Update to 3.1.1 - Update to 3.0.3 - Update to 3.0.2: * Some bugfixes - Update to 3.0.1: * More docstrings. help() is more helpful than ever * The WSGI server has been moved into its own package to allow for easier use outside of CherryPy * Session locking can now be "implicit" (before_handler), "early" (before_request_body), or "explicit" (none) * Moved checker back to cherrypy.checker from engine, and also added a new check_config_types method. There's also a new checker config namespace, so you can turn off the checker with "checker.on = False", or turn off specific methods with "checker.check_method_foo = None" - Update to 3.0.0 - Update - Update to final release - Update - Build for SL10 - Initial release OBS-URL: https://build.opensuse.org/request/show/561647 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-CherryPy?expand=0&rev=19
106 lines
3.2 KiB
RPMSpec
106 lines
3.2 KiB
RPMSpec
#
|
|
# spec file for package python-CherryPy
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
%bcond_without python2
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%define oldpython python
|
|
Name: python-CherryPy
|
|
Version: 10.2.1
|
|
Release: 0
|
|
Url: http://www.cherrypy.org
|
|
Summary: Object-Oriented HTTP framework
|
|
License: BSD-3-Clause
|
|
Group: Development/Languages/Python
|
|
Source: https://files.pythonhosted.org/packages/source/C/CherryPy/CherryPy-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: %{python_module setuptools_scm}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module cheroot >= 5.2.0}
|
|
BuildRequires: %{python_module nose}
|
|
BuildRequires: %{python_module portend >= 1.6.1}
|
|
BuildRequires: %{python_module pytest-runner}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module six}
|
|
%if %{with python2}
|
|
BuildRequires: python2-backports.unittest_mock
|
|
%endif
|
|
# /SECTION
|
|
BuildRequires: python-rpm-macros
|
|
Requires(post): update-alternatives
|
|
Requires(postun): update-alternatives
|
|
Requires: python-cheroot >= 5.2.0
|
|
Requires: python-portend >= 1.6.1
|
|
Requires: python-six
|
|
Recommends: python-simplejson
|
|
Recommends: python-Routes
|
|
Recommends: python-pyOpenSSL
|
|
Recommends: python-memcached >= 1.58
|
|
Recommends: python-flup
|
|
BuildArch: noarch
|
|
%ifpython2
|
|
Provides: %{oldpython}-cherrypy = %{version}
|
|
Obsoletes: %{oldpython}-cherrypy < %{version}
|
|
%endif
|
|
|
|
%python_subpackages
|
|
|
|
%description
|
|
CherryPy is a pythonic, object-oriented HTTP framework.
|
|
|
|
CherryPy allows developers to build web applications in much the same way they
|
|
would build any other object-oriented Python program. This usually results in
|
|
smaller source code developed in less time.
|
|
|
|
CherryPy is now more than three years old and it is has proven very fast and
|
|
stable. It is being used in production by many sites, from the simplest ones
|
|
to the most demanding ones.
|
|
|
|
Oh, and most importantly: CherryPy is fun to work with :-)
|
|
|
|
%prep
|
|
%setup -q -n CherryPy-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_clone -a %{buildroot}%{_bindir}/cherryd
|
|
%fdupes %{buildroot}%{_prefix}
|
|
|
|
%check
|
|
%python_exec -m pytest cherrypy/test
|
|
|
|
%post
|
|
%python_install_alternative cherryd
|
|
|
|
%postun
|
|
%python_uninstall_alternative cherryd
|
|
|
|
%files %{python_files}
|
|
%defattr(-,root,root,-)
|
|
%doc README.rst LICENSE.md CHANGES.rst
|
|
%python_alternative %{_bindir}/cherryd
|
|
%{python_sitelib}/cherrypy/
|
|
%{python_sitelib}/CherryPy-%{version}-py%{python_version}.egg-info
|
|
|
|
%changelog
|