forked from pool/uwsgi
Accepting request 1096423 from home:gladiac:mailman
- Use sle15_python_module_pythons OBS-URL: https://build.opensuse.org/request/show/1096423 OBS-URL: https://build.opensuse.org/package/show/server:http/uwsgi?expand=0&rev=118
This commit is contained in:
parent
a3dc14c43d
commit
92ee433898
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jul 1 19:53:24 UTC 2023 - Andreas Schneider <asn@cryptomilk.org>
|
||||||
|
|
||||||
|
- Use sle15_python_module_pythons
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri May 5 10:49:27 UTC 2023 - pgajdos@suse.com
|
Fri May 5 10:49:27 UTC 2023 - pgajdos@suse.com
|
||||||
|
|
||||||
|
15
uwsgi.spec
15
uwsgi.spec
@ -16,9 +16,10 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?sle15_python_module_pythons}
|
||||||
%define with_php 1
|
%define with_php 1
|
||||||
%if 0%{?suse_version} > 1320
|
%if 0%{?suse_version} > 1320
|
||||||
%if 0%{?suse_version} >= 1550
|
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150400
|
||||||
%define php php8
|
%define php php8
|
||||||
%else
|
%else
|
||||||
%define php php7
|
%define php php7
|
||||||
@ -150,7 +151,7 @@ Provides: uwsgi-ugreen = %{version}
|
|||||||
Obsoletes: uwsgi-ugreen < 1.9.11
|
Obsoletes: uwsgi-ugreen < 1.9.11
|
||||||
Provides: uwsgi-zergpool = %{version}
|
Provides: uwsgi-zergpool = %{version}
|
||||||
Obsoletes: uwsgi-zergpool < 1.9.11
|
Obsoletes: uwsgi-zergpool < 1.9.11
|
||||||
%if 0%{?suse_version} >= 1550
|
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150500
|
||||||
# these must be the last directives before the description
|
# these must be the last directives before the description
|
||||||
%define python_subpackage_only 1
|
%define python_subpackage_only 1
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
@ -340,7 +341,7 @@ uWSGI is a self-healing application container server coded in pure C.
|
|||||||
|
|
||||||
This package contains support for Python applications using PyPy.
|
This package contains support for Python applications using PyPy.
|
||||||
|
|
||||||
%if 0%{suse_version} < 1550
|
%if 0%{?sle_version} && 0%{?sle_version} <= 150400
|
||||||
|
|
||||||
%package python3
|
%package python3
|
||||||
Summary: Python 3 Plugin for uWSGI
|
Summary: Python 3 Plugin for uWSGI
|
||||||
@ -539,10 +540,10 @@ export UWSGICONFIG_LUAPC="lua"
|
|||||||
export UWSGICONFIG_RUBYPATH="ruby1.9"
|
export UWSGICONFIG_RUBYPATH="ruby1.9"
|
||||||
export CFLAGS="%{optflags} -Wno-error=deprecated-declarations -I%{_includedir}/glusterfs -I$(echo %{_libdir}/erlang/lib/erl_interface-*/include) -I%{_jvmdir}/java/include/linux -L$UWSGICONFIG_JVM_LIBPATH/jli"
|
export CFLAGS="%{optflags} -Wno-error=deprecated-declarations -I%{_includedir}/glusterfs -I$(echo %{_libdir}/erlang/lib/erl_interface-*/include) -I%{_jvmdir}/java/include/linux -L$UWSGICONFIG_JVM_LIBPATH/jli"
|
||||||
%{?jobs:export CPUCOUNT=%jobs}
|
%{?jobs:export CPUCOUNT=%jobs}
|
||||||
python3 uwsgiconfig.py --build opensuse
|
%python_expand PYTHON=$python $python uwsgiconfig.py --build opensuse
|
||||||
|
|
||||||
# Build python3 plugins
|
# Build python3 plugins
|
||||||
%if 0%{?suse_version} < 1550
|
%if 0%{?sle_version} && 0%{?sle_version} <= 150400
|
||||||
python3 uwsgiconfig.py --plugin plugins/python opensuse python3
|
python3 uwsgiconfig.py --plugin plugins/python opensuse python3
|
||||||
%else
|
%else
|
||||||
# https://uwsgi-docs.readthedocs.io/en/latest/WSGIquickstart.html#bonus-multiple-python-versions-for-the-same-uwsgi-binary
|
# https://uwsgi-docs.readthedocs.io/en/latest/WSGIquickstart.html#bonus-multiple-python-versions-for-the-same-uwsgi-binary
|
||||||
@ -571,7 +572,7 @@ install -m 0644 %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{buildroot}%{_sysco
|
|||||||
install -m 0644 vassals/broodlord.ini %{buildroot}%{_sysconfdir}/uwsgi/vassals/broodlord.ini.example
|
install -m 0644 vassals/broodlord.ini %{buildroot}%{_sysconfdir}/uwsgi/vassals/broodlord.ini.example
|
||||||
install -m 0644 vassals/cc.ini %{buildroot}%{_sysconfdir}/uwsgi/vassals/cc.ini.example
|
install -m 0644 vassals/cc.ini %{buildroot}%{_sysconfdir}/uwsgi/vassals/cc.ini.example
|
||||||
install -m 0644 vassals/multi.xml %{buildroot}%{_sysconfdir}/uwsgi/vassals/multi.xml.example
|
install -m 0644 vassals/multi.xml %{buildroot}%{_sysconfdir}/uwsgi/vassals/multi.xml.example
|
||||||
%if 0%{suse_version} < 1550
|
%if 0%{?sle_version} && 0%{?sle_version} <= 150400
|
||||||
install -D -m 0644 uwsgidecorators.py %{buildroot}%{python3_sitelib}/uwsgidecorators.py
|
install -D -m 0644 uwsgidecorators.py %{buildroot}%{python3_sitelib}/uwsgidecorators.py
|
||||||
%else
|
%else
|
||||||
%{python_expand #
|
%{python_expand #
|
||||||
@ -763,7 +764,7 @@ install -m 0644 %{SOURCE9} %{buildroot}/%{_tmpfilesdir}/uwsgi.conf
|
|||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_libdir}/uwsgi/pypy_plugin.so
|
%{_libdir}/uwsgi/pypy_plugin.so
|
||||||
|
|
||||||
%if 0%{suse_version} < 1550
|
%if 0%{?sle_version} && 0%{?sle_version} <= 150400
|
||||||
|
|
||||||
%files python3
|
%files python3
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user