diff --git a/python-gunicorn.spec b/python-gunicorn.spec index 4f5b07b..94c99e4 100644 --- a/python-gunicorn.spec +++ b/python-gunicorn.spec @@ -1,6 +1,7 @@ +%define pkgname %(echo %name | cut -d- -f2- | tr - _) Name: python-gunicorn -Version: 21.2.0 -Release: 2mamba +Version: 22.0.0 +Release: 1mamba Summary: WSGI HTTP Server for UNIX Group: System/Libraries Vendor: openmamba @@ -12,7 +13,6 @@ License: MIT ## AUTOBUILDREQ-BEGIN BuildRequires: libpython311-devel BuildRequires: python3.11dist(packaging) -BuildRequires: python3.11dist(setuptools) ## AUTOBUILDREQ-END BuildRequires: python3-devel >= 3.11.5-3mamba @@ -34,33 +34,32 @@ Obsoletes: gunicorn <= 20.1.0-1mamba %setup -q -n gunicorn-%{version} %build -CFLAGS="%{optflags}" %{__python} setup.py build +CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel %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 +%{__python} -m installer --destdir=%{buildroot} dist/*.whl -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 +#%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 -ln -s gunicorn %{buildroot}%{_bindir}/run_gunicorn - -sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist - -%files %{?pyappend} -f %{name}.filelist +%files %{?pyappend} %defattr(-,root,root) -%{_bindir}/run_gunicorn -%dir %{python_sitearch}/gunicorn-%{version}-py*.egg-info -%{python_sitearch}/gunicorn-%{version}-py*.egg-info/* +%{_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 Jul 21 2024 Automatic Build System 22.0.0-1mamba +- automatic version update by autodist + * Tue Sep 26 2023 Automatic Build System 21.2.0-2mamba - rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba