Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
SUSE:ALP:Source:Standard:0.1
python-gunicorn
python-gunicorn.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-gunicorn.spec of Package python-gunicorn
# # spec file # # Copyright (c) 2021 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/ # %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" %define psuffix -test %bcond_without test %else %define psuffix %{nil} %bcond_with test %endif %define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-gunicorn%{psuffix} Version: 20.1.0 Release: 0 Summary: WSGI HTTP Server for UNIX License: MIT Group: Development/Languages/Python URL: https://gunicorn.org Source: https://files.pythonhosted.org/packages/source/g/gunicorn/gunicorn-%{version}.tar.gz Patch0: support-eventlet-30-3.patch BuildRequires: %{python_module setuptools >= 3.0} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: python3-Sphinx %if %{with test} BuildRequires: %{python_module eventlet} BuildRequires: %{python_module gevent >= 1.4} BuildRequires: %{python_module gunicorn} BuildRequires: %{python_module pytest} %endif Requires: python-setuptools >= 3.0 Requires(post): update-alternatives Requires(postun):update-alternatives Suggests: python-evenlet Suggests: python-gevent Suggests: python-gthread Suggests: python-setproctitle Suggests: python-tornado BuildArch: noarch %python_subpackages %description Gunicorn 'Green Unicorn' is a Python WSGI HTTP Server for UNIX. It's a pre-fork worker model ported from Ruby's Unicorn_ project. The Gunicorn server is broadly compatible with various web frameworks. %package -n python-gunicorn-doc Summary: Documentation for %{name} Group: Documentation/Other Provides: %{python_module gunicorn-doc = %{version}} %description -n python-gunicorn-doc Gunicorn 'Green Unicorn' is a Python WSGI HTTP Server for UNIX. It's a pre-fork worker model ported from Ruby's Unicorn_ project. The Gunicorn server is broadly compatible with various web frameworks. This package contains the documentation. %prep %setup -q -n gunicorn-%{version} # remove version pinning for test requirements sed -i 's/==.*//' requirements_test.txt sed -i -e '/cover/d' requirements_test.txt # do not check coverage sed -i -e 's/--cov[^ ]*//' -e 's/--cov-report[^ ]*//' setup.cfg %autopatch -p1 %if %{with test} %check %pytest %else # without test %build %python_build sphinx-build -b html -d docs/build/doctrees docs/source docs/build/html %install %python_install %python_clone -a %{buildroot}%{_bindir}/gunicorn %python_expand %fdupes %{buildroot}%{$python_sitelib} %post %python_install_alternative gunicorn %postun %python_uninstall_alternative gunicorn %files %{python_files} %license LICENSE %python_alternative %{_bindir}/gunicorn %{python_sitelib}/* %files -n python-gunicorn-doc %license LICENSE %doc README.rst NOTICE THANKS docs/build/html %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor