rebuilt with python 3.10 [release 2.0.21-2mamba;Tue May 16 2023]

This commit is contained in:
Silvan Calarco 2024-01-05 18:53:24 +01:00
parent a8a40ec77b
commit fcb32858fa

View File

@ -1,6 +1,6 @@
Name: uwsgi
Version: 2.0.21
Release: 1mamba
Release: 2mamba
Summary: A full stack for building hosting services
Group: System/Servers
Vendor: openmamba
@ -37,7 +37,7 @@ BuildRequires: libopenssl-devel
BuildRequires: libpam-devel
BuildRequires: libpcre-devel
BuildRequires: libperl
BuildRequires: libpython3-devel
BuildRequires: libpython310-devel
BuildRequires: libreadline-devel
BuildRequires: libruby-devel
BuildRequires: libstdc++6-devel
@ -47,7 +47,7 @@ BuildRequires: libxml2-devel
BuildRequires: libz-devel
BuildRequires: mono-devel
## AUTOBUILDREQ-END
BuildRequires: python-greenlet-py3
BuildRequires: python-greenlet-py310
%description
A full stack for building hosting services.
@ -82,8 +82,8 @@ This package contains the Perl psgi plugin for %{name}.
Group: System/Libraries
Summary: Python plugin for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: python3
Requires: python-greenlet-py3
Requires: python310
Requires: python-greenlet-py310
%description plugin-python
This package contains the Python plugin for %{name}.
@ -159,7 +159,7 @@ sed -i "s|ld_run_path = None|ld_run_path = '%{_libdir}/apache'|" plugins/php/uws
%build
export UWSGICONFIG_PHPLIBDIR=%{_libdir}/apache/libphp7.so
%make PYTHON=%{__python3} PROFILE=openmamba
%make PYTHON=%{__python310} PROFILE=openmamba
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -177,15 +177,20 @@ install -D -m0644 %{SOURCE9} %{buildroot}%{_sysconfdir}/uwsgi/emperor.ini
# Install plugins
install -D -m0755 *_plugin.so -t %{buildroot}%{_libdir}/uwsgi/
# Python
install -D -m0644 uwsgidecorators.py %{buildroot}%{python3_sitearch}/uwsgidecorators.py
%{__python3} -m compileall %{buildroot}%{python3_sitearch}
%{__python3} -O -m compileall %{buildroot}%{python3_sitearch}
## Python
#install -D -m0644 uwsgidecorators.py %{buildroot}%{python3_sitearch}/uwsgidecorators.py
#%{__python3} -m compileall %{buildroot}%{python3_sitearch}
#%{__python3} -O -m compileall %{buildroot}%{python3_sitearch}
# Python 3.10
install -D -m0644 uwsgidecorators.py %{buildroot}%{python310_sitearch}/uwsgidecorators.py
%{__python310} -m compileall %{buildroot}%{python310_sitearch}
%{__python310} -O -m compileall %{buildroot}%{python310_sitearch}
# Pypy
install -D -m0644 uwsgidecorators.py %{buildroot}/opt/pypy/site-packages/uwsgidecorators.py
%{__python3} -m compileall %{buildroot}/opt/pypy/site-packages
%{__python3} -O -m compileall %{buildroot}/opt/pypy/site-packages
%{__python310} -m compileall %{buildroot}/opt/pypy/site-packages
%{__python310} -O -m compileall %{buildroot}/opt/pypy/site-packages
# Mono
install -D -m0755 plugins/mono/uwsgi.dll %{buildroot}%{_prefix}/lib/mono/2.0/uwsgi.dll
@ -226,8 +231,8 @@ install -D -m0755 plugins/mono/uwsgi.dll %{buildroot}%{_prefix}/lib/mono/2.0/uws
%{_libdir}/uwsgi/gevent_plugin.so
%{_libdir}/uwsgi/greenlet_plugin.so
%{_libdir}/uwsgi/python_plugin.so
%{python3_sitearch}/uwsgidecorators.py
%{python3_sitearch}/__pycache__/uwsgidecorators.cpython*pyc
%{python310_sitearch}/uwsgidecorators.py
%{python310_sitearch}/__pycache__/uwsgidecorators.cpython*pyc
%files plugin-pypy
%defattr(-,root,root)
@ -261,6 +266,9 @@ install -D -m0755 plugins/mono/uwsgi.dll %{buildroot}%{_prefix}/lib/mono/2.0/uws
%{_libdir}/uwsgi/notfound_plugin.so
%changelog
* Tue May 16 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.21-2mamba
- rebuilt with python 3.10
* Tue Oct 25 2022 Automatic Build System <autodist@mambasoft.it> 2.0.21-1mamba
- automatic version update by autodist