99 lines
3.3 KiB
RPMSpec
99 lines
3.3 KiB
RPMSpec
Name: python-gunicorn
|
|
Version: 21.2.0
|
|
Release: 2mamba
|
|
Summary: WSGI HTTP Server for UNIX
|
|
Group: System/Libraries
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://gunicorn.org/
|
|
Source: https://pypi.debian.net/gunicorn/gunicorn-%{version}.tar.gz
|
|
License: MIT
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: libpython311-devel
|
|
BuildRequires: python3.11dist(packaging)
|
|
BuildRequires: python3.11dist(setuptools)
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: python3-devel >= 3.11.5-3mamba
|
|
|
|
%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
|
|
* Tue Sep 26 2023 Automatic Build System <autodist@mambasoft.it> 21.2.0-2mamba
|
|
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba
|
|
|
|
* Thu Jul 20 2023 Automatic Build System <autodist@mambasoft.it> 21.2.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Jul 19 2023 Automatic Build System <autodist@mambasoft.it> 21.1.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Jul 18 2023 Automatic Build System <autodist@mambasoft.it> 21.0.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Mar 27 2021 Automatic Build System <autodist@mambasoft.it> 20.1.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Feb 13 2020 Automatic Build System <autodist@mambasoft.it> 20.0.4-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Aug 06 2018 Automatic Build System <autodist@mambasoft.it> 19.9.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat May 05 2018 Automatic Build System <autodist@mambasoft.it> 19.8.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue May 01 2018 Automatic Build System <autodist@mambasoft.it> 19.8.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Jan 06 2018 Automatic Build System <autodist@mambasoft.it> 19.7.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Oct 12 2014 Automatic Build System <autodist@mambasoft.it> 19.1.1-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Sun Aug 10 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 19.1.0-1mamba
|
|
- package created using the webbuild interface
|