From a07a374ff95f2fe3922802017a68b5403b5513d2 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Sat, 6 Jan 2024 11:13:09 +0100 Subject: [PATCH] automatic version update by autodist [release 20.1.0-1mamba;Sat Mar 27 2021] --- README.md | 4 +++ python-gunicorn.spec | 84 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 python-gunicorn.spec diff --git a/README.md b/README.md index 3db84a5..d1fb31f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # python-gunicorn +WSGI HTTP Server for UNIX. +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, simply implemented, light on server resource usage, and fairly speedy. + diff --git a/python-gunicorn.spec b/python-gunicorn.spec new file mode 100644 index 0000000..babd05a --- /dev/null +++ b/python-gunicorn.spec @@ -0,0 +1,84 @@ +Name: python-gunicorn +Version: 20.1.0 +Release: 1mamba +Summary: WSGI HTTP Server for UNIX +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://gunicorn.org/ +Source: https://pypi.debian.net/gunicorn/gunicorn-%{version}.tar.gz +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython310-devel +BuildRequires: python3.10dist(setuptools) +## AUTOBUILDREQ-END + +%description +%{summary}. +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, simply implemented, light on server resource usage, and fairly speedy. + +%if 0%{?with_pyver} +%if "%{with_pyver}" == "3" +%define py_requires_append \ +Provides: gunicorn \ +Obsoletes: gunicorn <= 20.1.0-1mamba +%endif +%pyver_package +%endif + +%prep +%setup -q -n gunicorn-%{version} + +%build +CFLAGS="%{optflags}" %{__python} setup.py build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} setup.py install \ + -O1 --skip-build \ + --root="%{buildroot}" \ + --install-headers=%{_includedir}/python \ + --install-lib=%{python_sitearch} \ + --record=%{name}.filelist + +sed -i "s,.*/man/.*,&.gz," %{name}.filelist +sed -i "/_gaiohttp.pyc/d;/_gaiohttp.pyo/d" %{name}.filelist +sed -i "/_gaiohttp.pyc/d;/_gaiohttp.pyo/d" %{name}.filelist + +ln -s gunicorn %{buildroot}%{_bindir}/run_gunicorn + +sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist + +%files %{?pyappend} -f %{name}.filelist +%defattr(-,root,root) +%{_bindir}/run_gunicorn +%dir %{python_sitearch}/gunicorn-%{version}-py*.egg-info +%{python_sitearch}/gunicorn-%{version}-py*.egg-info/* +%doc LICENSE THANKS + +%changelog +* Sat Mar 27 2021 Automatic Build System 20.1.0-1mamba +- automatic version update by autodist + +* Thu Feb 13 2020 Automatic Build System 20.0.4-1mamba +- automatic version update by autodist + +* Mon Aug 06 2018 Automatic Build System 19.9.0-1mamba +- automatic version update by autodist + +* Sat May 05 2018 Automatic Build System 19.8.1-1mamba +- automatic version update by autodist + +* Tue May 01 2018 Automatic Build System 19.8.0-1mamba +- automatic version update by autodist + +* Sat Jan 06 2018 Automatic Build System 19.7.1-1mamba +- automatic version update by autodist + +* Sun Oct 12 2014 Automatic Build System 19.1.1-1mamba +- automatic update by autodist + +* Sun Aug 10 2014 Silvan Calarco 19.1.0-1mamba +- package created using the webbuild interface