%if 0%{?fedora} || 0%{?rhel} > 7 %global with_python3 1 %endif %global upstream_name gunicorn %bcond_with docs Name: python-%{upstream_name} Version: 19.9.0 Release: 5%{?dist} Summary: Python WSGI application server License: MIT URL: http://gunicorn.org/ Source0: https://files.pythonhosted.org/packages/source/g/%{upstream_name}/%{upstream_name}-%{version}.tar.gz # distro-specific, not upstreamable Patch101: 0001-use-dev-log-for-syslog.patch # upstream version requirements are unnecessarily strict Patch102: 0002-relax-version-requirements.patch BuildArch: noarch %description Gunicorn ("Green Unicorn") is a Python WSGI HTTP server for UNIX. It uses the pre-fork worker model, ported from Ruby's Unicorn project. It supports WSGI, Django, and Paster applications. %if 0%{?with_python3} %package -n python3-%{upstream_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{upstream_name}} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pytest BuildRequires: python3-pytest-cov %if %{with docs} BuildRequires: python3-sphinx BuildRequires: python3-sphinx_rtd_theme %endif Requires: python3-setuptools %description -n python3-%{upstream_name} Gunicorn ("Green Unicorn") is a Python WSGI HTTP server for UNIX. It uses the pre-fork worker model, ported from Ruby's Unicorn project. It supports WSGI, Django, and Paster applications. %endif %if %{with docs} %package doc Summary: Documentation for the %{name} package %description doc Documentation for the %{name} package. %endif %prep %setup -q -n %{upstream_name}-%{version} %patch101 -p1 %patch102 -p1 %build %if 0%{?with_python3} %py3_build %if %{with docs} %{__python3} setup.py build_sphinx %endif %endif %install %if 0%{?with_python3} %py3_install # rename executables in /usr/bin so they don't collide mv %{buildroot}%{_bindir}/gunicorn{,-3} mv %{buildroot}%{_bindir}/gunicorn_paster{,-3} # symlink extra executable names ln -s %{_bindir}/gunicorn-3 %{buildroot}%{_bindir}/gunicorn-%{python3_version} ln -s %{_bindir}/gunicorn_paster-3 %{buildroot}%{_bindir}/gunicorn_paster-%{python3_version} %if ! (0%{?fedora} >= 29) ln -s %{_bindir}/gunicorn-3 %{buildroot}%{_bindir}/python3-gunicorn ln -s %{_bindir}/gunicorn_paster-3 %{buildroot}%{_bindir}/python3-gunicorn_paster %endif %endif %check %if 0%{?with_python3} %{__python3} setup.py test %endif %if 0%{?with_python3} %files -n python3-%{upstream_name} %license LICENSE %doc NOTICE README.rst THANKS %{python3_sitelib}/%{upstream_name}* %{_bindir}/%{upstream_name}-3 %{_bindir}/%{upstream_name}_paster-3 %{_bindir}/%{upstream_name}-%{python3_version} %{_bindir}/%{upstream_name}_paster-%{python3_version} %if ! (0%{?fedora} >= 29) %{_bindir}/python3-%{upstream_name} %{_bindir}/python3-%{upstream_name}_paster %endif %endif %if %{with docs} %if 0%{?with_python3} %files doc %license LICENSE %doc build/sphinx/html/* %endif %endif %changelog * Mon Sep 30 2019 Shreshtha Joshi - 19.9.0-5 - Update to 19.9.0 * 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