101 lines
3.4 KiB
RPMSpec
101 lines
3.4 KiB
RPMSpec
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
|
Name: python-gunicorn
|
|
Version: 23.0.0
|
|
Release: 1mamba
|
|
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)
|
|
## 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} -m build --no-isolation --wheel
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
|
|
|
|
#%if "%{?with_pyver}" != "3"
|
|
## Rename any conflicting file outside of python site packages tree
|
|
#for f in %{_bindir}/pdm; do
|
|
# mv %{buildroot}${f}{,-%{?pyappend}}
|
|
#done
|
|
#%endif
|
|
|
|
%files %{?pyappend}
|
|
%defattr(-,root,root)
|
|
%{_bindir}/gunicorn
|
|
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
|
|
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
|
|
%dir %{python_sitelib}/%{pkgname}
|
|
%{python_sitelib}/%{pkgname}/*
|
|
%doc LICENSE THANKS
|
|
|
|
%changelog
|
|
* Sun Aug 11 2024 Automatic Build System <autodist@openmamba.org> 23.0.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Jul 21 2024 Automatic Build System <autodist@openmamba.org> 22.0.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* 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
|