build default python plugin for python3 == 3.11 and add plugin for python 3.10 [release 2.0.22-2mamba;Wed Oct 11 2023]
This commit is contained in:
parent
0a818e9710
commit
b61b81d55d
52
uwsgi.spec
52
uwsgi.spec
@ -1,6 +1,6 @@
|
|||||||
Name: uwsgi
|
Name: uwsgi
|
||||||
Version: 2.0.22
|
Version: 2.0.22
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: A full stack for building hosting services
|
Summary: A full stack for building hosting services
|
||||||
Group: System/Servers
|
Group: System/Servers
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -37,6 +37,7 @@ BuildRequires: libopenssl-devel
|
|||||||
BuildRequires: libpam-devel
|
BuildRequires: libpam-devel
|
||||||
BuildRequires: libpcre-devel
|
BuildRequires: libpcre-devel
|
||||||
BuildRequires: libperl
|
BuildRequires: libperl
|
||||||
|
BuildRequires: libpython3-devel
|
||||||
BuildRequires: libpython310-devel
|
BuildRequires: libpython310-devel
|
||||||
BuildRequires: libreadline-devel
|
BuildRequires: libreadline-devel
|
||||||
BuildRequires: libruby-devel
|
BuildRequires: libruby-devel
|
||||||
@ -82,8 +83,8 @@ This package contains the Perl psgi plugin for %{name}.
|
|||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Summary: Python plugin for %{name}
|
Summary: Python plugin for %{name}
|
||||||
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||||||
Requires: python310
|
Requires: python3
|
||||||
Requires: python-greenlet-py310
|
Requires: python-greenlet-py3
|
||||||
|
|
||||||
%description plugin-python
|
%description plugin-python
|
||||||
This package contains the Python plugin for %{name}.
|
This package contains the Python plugin for %{name}.
|
||||||
@ -96,6 +97,16 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|||||||
%description plugin-pypy
|
%description plugin-pypy
|
||||||
This package contains the Pypy plugin for %{name}.
|
This package contains the Pypy plugin for %{name}.
|
||||||
|
|
||||||
|
%package plugin-python310
|
||||||
|
Group: System/Libraries
|
||||||
|
Summary: Python 3.10 plugin for %{name}
|
||||||
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||||||
|
Requires: python310
|
||||||
|
Requires: python-greenlet-py310
|
||||||
|
|
||||||
|
%description plugin-python310
|
||||||
|
This package contains the Python 3.10 plugin for %{name}.
|
||||||
|
|
||||||
%package plugin-lua
|
%package plugin-lua
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Summary: LUA plugin for %{name}
|
Summary: LUA plugin for %{name}
|
||||||
@ -151,6 +162,8 @@ This package contains the notfound plugin for %{name}.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
#-D -T
|
||||||
|
#:<< _EOF
|
||||||
|
|
||||||
cp %{SOURCE1} buildconf/openmamba.ini
|
cp %{SOURCE1} buildconf/openmamba.ini
|
||||||
sed -i "s|@LIBDIR@|%{_libdir}|" buildconf/openmamba.ini
|
sed -i "s|@LIBDIR@|%{_libdir}|" buildconf/openmamba.ini
|
||||||
@ -158,8 +171,11 @@ sed -i "s|@LIBDIR@|%{_libdir}|" buildconf/openmamba.ini
|
|||||||
sed -i "s|ld_run_path = None|ld_run_path = '%{_libdir}/apache'|" plugins/php/uwsgiplugin.py
|
sed -i "s|ld_run_path = None|ld_run_path = '%{_libdir}/apache'|" plugins/php/uwsgiplugin.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
#:<< _EOF
|
||||||
export UWSGICONFIG_PHPLIBDIR=%{_libdir}/apache/libphp7.so
|
export UWSGICONFIG_PHPLIBDIR=%{_libdir}/apache/libphp7.so
|
||||||
%make PYTHON=%{__python310} PROFILE=openmamba
|
%make PYTHON=%{__python3} PROFILE=openmamba
|
||||||
|
|
||||||
|
PYTHON=%{__python310} ./uwsgi --build-plugin "plugins/python python310"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
@ -177,10 +193,10 @@ install -D -m0644 %{SOURCE9} %{buildroot}%{_sysconfdir}/uwsgi/emperor.ini
|
|||||||
# Install plugins
|
# Install plugins
|
||||||
install -D -m0755 *_plugin.so -t %{buildroot}%{_libdir}/uwsgi/
|
install -D -m0755 *_plugin.so -t %{buildroot}%{_libdir}/uwsgi/
|
||||||
|
|
||||||
## Python
|
# Python
|
||||||
#install -D -m0644 uwsgidecorators.py %{buildroot}%{python3_sitearch}/uwsgidecorators.py
|
install -D -m0644 uwsgidecorators.py %{buildroot}%{python3_sitearch}/uwsgidecorators.py
|
||||||
#%{__python3} -m compileall %{buildroot}%{python3_sitearch}
|
%{__python3} -m compileall %{buildroot}%{python3_sitearch}
|
||||||
#%{__python3} -O -m compileall %{buildroot}%{python3_sitearch}
|
%{__python3} -O -m compileall %{buildroot}%{python3_sitearch}
|
||||||
|
|
||||||
# Python 3.10
|
# Python 3.10
|
||||||
install -D -m0644 uwsgidecorators.py %{buildroot}%{python310_sitearch}/uwsgidecorators.py
|
install -D -m0644 uwsgidecorators.py %{buildroot}%{python310_sitearch}/uwsgidecorators.py
|
||||||
@ -189,8 +205,8 @@ install -D -m0644 uwsgidecorators.py %{buildroot}%{python310_sitearch}/uwsgideco
|
|||||||
|
|
||||||
# Pypy
|
# Pypy
|
||||||
install -D -m0644 uwsgidecorators.py %{buildroot}/opt/pypy/site-packages/uwsgidecorators.py
|
install -D -m0644 uwsgidecorators.py %{buildroot}/opt/pypy/site-packages/uwsgidecorators.py
|
||||||
%{__python310} -m compileall %{buildroot}/opt/pypy/site-packages
|
%{__python3} -m compileall %{buildroot}/opt/pypy/site-packages
|
||||||
%{__python310} -O -m compileall %{buildroot}/opt/pypy/site-packages
|
%{__python3} -O -m compileall %{buildroot}/opt/pypy/site-packages
|
||||||
|
|
||||||
# Mono
|
# Mono
|
||||||
install -D -m0755 plugins/mono/uwsgi.dll %{buildroot}%{_prefix}/lib/mono/2.0/uwsgi.dll
|
install -D -m0755 plugins/mono/uwsgi.dll %{buildroot}%{_prefix}/lib/mono/2.0/uwsgi.dll
|
||||||
@ -231,8 +247,8 @@ install -D -m0755 plugins/mono/uwsgi.dll %{buildroot}%{_prefix}/lib/mono/2.0/uws
|
|||||||
%{_libdir}/uwsgi/gevent_plugin.so
|
%{_libdir}/uwsgi/gevent_plugin.so
|
||||||
%{_libdir}/uwsgi/greenlet_plugin.so
|
%{_libdir}/uwsgi/greenlet_plugin.so
|
||||||
%{_libdir}/uwsgi/python_plugin.so
|
%{_libdir}/uwsgi/python_plugin.so
|
||||||
%{python310_sitearch}/uwsgidecorators.py
|
%{python3_sitearch}/uwsgidecorators.py
|
||||||
%{python310_sitearch}/__pycache__/uwsgidecorators.cpython*pyc
|
%{python3_sitearch}/__pycache__/uwsgidecorators.cpython*pyc
|
||||||
|
|
||||||
%files plugin-pypy
|
%files plugin-pypy
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -240,6 +256,15 @@ install -D -m0755 plugins/mono/uwsgi.dll %{buildroot}%{_prefix}/lib/mono/2.0/uws
|
|||||||
/opt/pypy/site-packages/uwsgidecorators.py
|
/opt/pypy/site-packages/uwsgidecorators.py
|
||||||
/opt/pypy/site-packages/__pycache__/uwsgidecorators.cpython*pyc
|
/opt/pypy/site-packages/__pycache__/uwsgidecorators.cpython*pyc
|
||||||
|
|
||||||
|
%files plugin-python310
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_libdir}/uwsgi/asyncio_plugin.so
|
||||||
|
%{_libdir}/uwsgi/gevent_plugin.so
|
||||||
|
%{_libdir}/uwsgi/greenlet_plugin.so
|
||||||
|
%{_libdir}/uwsgi/python310_plugin.so
|
||||||
|
%{python310_sitearch}/uwsgidecorators.py
|
||||||
|
%{python310_sitearch}/__pycache__/uwsgidecorators.cpython*pyc
|
||||||
|
|
||||||
%files plugin-lua
|
%files plugin-lua
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/uwsgi/lua_plugin.so
|
%{_libdir}/uwsgi/lua_plugin.so
|
||||||
@ -266,6 +291,9 @@ install -D -m0755 plugins/mono/uwsgi.dll %{buildroot}%{_prefix}/lib/mono/2.0/uws
|
|||||||
%{_libdir}/uwsgi/notfound_plugin.so
|
%{_libdir}/uwsgi/notfound_plugin.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 11 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.22-2mamba
|
||||||
|
- build default python plugin for python3 == 3.11 and add plugin for python 3.10
|
||||||
|
|
||||||
* Sat Jul 29 2023 Automatic Build System <autodist@mambasoft.it> 2.0.22-1mamba
|
* Sat Jul 29 2023 Automatic Build System <autodist@mambasoft.it> 2.0.22-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user