%global srcname gunicorn %global _description %{expand: Gunicorn 'Green Unicorn' is a Python WSGI HTTP Server for UNIX. It is a pre-fork worker model. The Gunicorn server is broadly compatible with various web frameworks, simply implemented, light on server resources, and fairly speedy.} Name: python-%{srcname} Version: 20.1.0 Release: 7%{?dist} Summary: Python WSGI HTTP Server License: MIT URL: https://gunicorn.org/ Source: %pypi_source %{srcname} # distro-specific, not upstreamable Patch: 0001-use-dev-log-for-syslog.patch # Patch for newer eventlet # https://github.com/benoitc/gunicorn/commit/6a8ebb4844b2f28596ffe7421eb9f7d08c8dc4d8 Patch: 0002-eventlet-worker-ALREADY_HANDLED-WSGI_LOCAL.patch BuildArch: noarch %description %{_description} %package -n python3-%{srcname} Summary: %{summary} BuildRequires: python3-devel %description -n python3-%{srcname} %{_description} %package doc Summary: Documentation for the %{name} package BuildRequires: make %description doc Documentation for the %{name} package. %prep %autosetup -n %{srcname}-%{version} -p 1 # disable code coverage checks sed -e '/coverage/d' -e '/pytest-cov/d' -i requirements_test.txt sed -e '/addopts/d' -i setup.cfg %generate_buildrequires %pyproject_buildrequires requirements_dev.txt %build %pyproject_wheel %make_build -C docs html %install %pyproject_install %pyproject_save_files %{srcname} # symlink extra executable names ln -s %{_bindir}/gunicorn %{buildroot}%{_bindir}/gunicorn-3 ln -s %{_bindir}/gunicorn %{buildroot}%{_bindir}/gunicorn-%{python3_version} %check %pytest --verbose tests %files -n python3-%{srcname} -f %{pyproject_files} %doc NOTICE README.rst THANKS %{_bindir}/%{srcname} %{_bindir}/%{srcname}-3 %{_bindir}/%{srcname}-%{python3_version} %files doc %license LICENSE %doc docs/build/html/* %changelog * Wed Jul 27 2022 Carl George - 20.1.0-7 - Convert to pyproject macros - Build docs with make - Sync eventlet worker patch with upstream, resolves rhbz#2082925 * Fri Jul 22 2022 Fedora Release Engineering - 20.1.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 14 2022 Python Maint - 20.1.0-5 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 20.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 20.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 20.1.0-2 - Rebuilt for Python 3.10 * Sat May 22 2021 Kevin Fenzi - 20.1.0-1 - Update to 21.1.0. Fixed rhbz#1943746 * Wed Jan 27 2021 Fedora Release Engineering - 20.0.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 20.0.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 20.0.4-3 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 20.0.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Nov 26 2019 Fedora Release Monitoring - 20.0.4-1 - Update to 20.0.4 (#1771148) * Mon Nov 25 2019 Carl George - 20.0.2-1 - Upstream release 20.0.2: https://docs.gunicorn.org/en/20.0.2/news.html * Thu Oct 03 2019 Miro Hrončok - 19.9.0-7 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 19.9.0-6 - Rebuilt for Python 3.8 * Wed Aug 14 2019 Dan Callaghan - 19.9.0-5 - dropped python2-gunicorn subpackage (RHBZ#1741012) - /usr/bin/gunicorn is now the Python 3 version - fix logging of username with HTTP Basic auth (RHBZ#1730791) * Fri Jul 26 2019 Fedora Release Engineering - 19.9.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 19.9.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 19.9.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jul 10 2018 Dan Callaghan - 19.9.0-1 - upstream release 19.9.0: http://docs.gunicorn.org/en/19.9.0/news.html * Fri Jun 29 2018 Dan Callaghan - 19.8.1-3 - Fix for Python 3.7 (async is a reserved word now) * Tue Jun 19 2018 Miro Hrončok - 19.8.1-2 - Rebuilt for Python 3.7 * Tue May 29 2018 Dan Callaghan - 19.8.1-1 - upstream release 19.8.1: http://docs.gunicorn.org/en/19.8.1/news.html * Mon Apr 16 2018 Dan Callaghan - 19.7.1-4 - adjusted executable names to match Python packaging guidelines: gunicorn-2, gunicorn-2.7, gunicorn-3, gunicorn-3.6 (RHBZ#1567198) * Fri Feb 09 2018 Fedora Release Engineering - 19.7.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 19.7.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Wed Mar 29 2017 Dan Callaghan - 19.7.1-1 - upstream release 19.7.1: http://docs.gunicorn.org/en/19.7.1/news.html * Sat Feb 11 2017 Fedora Release Engineering - 19.6.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 19.6.0-3 - Rebuild for Python 3.6 * Mon Aug 15 2016 Dan Callaghan - 19.6.0-2 - updated to latest Python guidelines * Mon Aug 15 2016 Dan Callaghan - 19.6.0-1 - upstream release 19.6.0: http://docs.gunicorn.org/en/19.6.0/news.html * Tue Jul 19 2016 Fedora Release Engineering - 19.4.1-3 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 19.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Dec 10 2015 Dan Callaghan - 19.4.1-1 - upstream release 19.4.1: http://docs.gunicorn.org/en/19.4.1/news.html * Tue Nov 10 2015 Fedora Release Engineering - 19.3.0-4 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Thu Nov 05 2015 Dan Callaghan - 19.3.0-3 - handle expected HaltServer exception in manage_workers (RHBZ#1200041) * Thu Jun 18 2015 Fedora Release Engineering - 19.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Mar 09 2015 Dan Callaghan - 19.3.0-1 - upstream release 19.3.0: http://docs.gunicorn.org/en/19.3.0/news.html * Tue Aug 19 2014 Dan Callaghan - 19.1.1-2 - fixed build requirements, added -doc subpackage with HTML docs * Tue Aug 19 2014 Dan Callaghan - 19.1.1-1 - upstream release 19.1.1: http://docs.gunicorn.org/en/19.1.1/news.html * Mon Jun 23 2014 Dan Callaghan - 19.0.0-1 - upstream release 19.0: http://docs.gunicorn.org/en/19.0/news.html * Sat Jun 07 2014 Fedora Release Engineering - 18.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed May 28 2014 Kalev Lember - 18.0-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 * Fri Sep 06 2013 Dan Callaghan - 18.0-1 - upstream release 18.0: http://docs.gunicorn.org/en/latest/news.html * Sun Aug 04 2013 Fedora Release Engineering - 17.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Tue Jul 09 2013 Dan Callaghan - 17.5-1 - upstream release 17.5: http://docs.gunicorn.org/en/R17.5/2013-news.html#r17-5-2013-07-03 (version numbering scheme has changed to drop the initial 0) * Tue Apr 30 2013 Dan Callaghan - 0.17.4-1 - upstream release 0.17.4: http://docs.gunicorn.org/en/0.17.4/news.html * Thu Feb 14 2013 Fedora Release Engineering - 0.17.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Jan 17 2013 Dan Callaghan - 0.17.2-1 - upstream bug fix release 0.17.2 * Wed Jan 02 2013 Dan Callaghan - 0.17.0-2 - patch to use /dev/log for syslog by default * Wed Jan 02 2013 Dan Callaghan - 0.17.0-1 - new upstream release 0.17.0 * Mon Nov 26 2012 Dan Callaghan - 0.16.1-2 - fix test suite error with py.test on Python 3.3 * Mon Nov 26 2012 Dan Callaghan - 0.16.1-1 - new upstream release 0.16.1 (with Python 3 support) * Mon Oct 22 2012 Dan Callaghan - 0.15.0-1 - new upstream release 0.15.0 * Mon Aug 20 2012 Dan Callaghan - 0.14.6-2 - fix for LimitRequestLine test failure (upstream issue #390) * Wed Aug 01 2012 Dan Callaghan - 0.14.6-1 - upstream bugfix release 0.14.6 * Sat Jul 21 2012 Fedora Release Engineering - 0.14.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Mon Jun 25 2012 Dan Callaghan - 0.14.5-1 - upstream bugfix release 0.14.5 * Thu Jun 07 2012 Dan Callaghan - 0.14.3-1 - updated to upstream release 0.14.3 * Wed Feb 08 2012 Dan Callaghan - 0.13.4-3 - renamed package to python-gunicorn, and other minor fixes * Tue Jan 31 2012 Dan Callaghan - 0.13.4-2 - patch for failing test (gunicorn issue #294) * Mon Jan 30 2012 Dan Callaghan - 0.13.4-1 - initial version