- Disable v8 on unsupported architectures, and on distributions with newer
versions of v8, as it seems that upstream is not maintaining it - Update to 1.9.17 * Bugfixes * the pty client is now blocking (safer approach) * removed strtok() usage (substituted by a new uwsgi api function on top of strtok_r()) * fixed --pty-exec (Credits: C Anthony Risinger) * listen_queue/somaxconn linux check is now done even for UNIX sockets * New features * https://uwsgi-docs.readthedocs.org/en/latest/Changelog-1.9.17.html * The Master FIFO: a new management way in addition to UNIX signals * A new hook, named asap has been added. It will be run soon after the options are parsed * The TCC (libtcc) plugin: TCC is an embeddable c compiler. It includes a shared library (libtcc) you can use to compile strings of c code on the fly. The libtcc uWSGI plugins allows compiling strings of c to process symbols. Currently the "tcc" hook engine has been implemented: * The forkptyrouter gateway: While work on Linux containers/namespaces continues to improve we have added this special router/gateway allowing dynamic allocation of pseodoterminals in uWSGI instances. To access the sockets created by the forkptyrouter you can use the --pty-connect option exposed by the pty plugin. * added a new magic var for ANSI escaping. It allows you to define ANSI sequences in your logs * Routable log encoders: You can now attach log encoders to specific log routes * --vassals-include: This is like --vassal-inherit but the parsing will be "immediate" (so you can use placeholders) * The Emperor heartbeat system is now mercyless. The old approach for the OBS-URL: https://build.opensuse.org/package/show/server:http/uwsgi?expand=0&rev=18
This commit is contained in:
68
uwsgi.spec
68
uwsgi.spec
@@ -16,15 +16,8 @@
|
||||
#
|
||||
|
||||
|
||||
#
|
||||
%ifarch %{ix86} x86_64 %{arm}
|
||||
%define enable_v8 1
|
||||
%else
|
||||
%define enable_v8 0
|
||||
%endif
|
||||
|
||||
Name: uwsgi
|
||||
Version: 1.9.13
|
||||
Version: 1.9.17
|
||||
Release: 0
|
||||
Summary: Application Container Server for Networked/Clustered Web Applications
|
||||
License: GPL-2.0+
|
||||
@@ -39,10 +32,10 @@ Source5: trac.ini.example
|
||||
Source6: werkzeug.xml.example
|
||||
Source7: README.openSUSE
|
||||
Source8: uwsgi.ini
|
||||
# PATCH-FIX-OPENSUSE uwsgi-1.9.11-plugin_build_path.patch - Don't attempt to install plugins to target dest during build
|
||||
Patch0: uwsgi-1.9.11-plugin_build_path.patch
|
||||
# PATCH-FIX-OPENSUSE uwsgi-1.9.11-no-LD_RUN_PATH.patch - Disable invalid rpath in plugins
|
||||
Patch1: uwsgi-1.9.11-no-LD_RUN_PATH.patch
|
||||
# PATCH-FIX-OPENSUSE uwsgi-1.9.17-plugin_build_path.patch - Don't attempt to install plugins to target dest during build
|
||||
Patch0: uwsgi-1.9.17-plugin_build_path.patch
|
||||
# PATCH-FIX-OPENSUSE uwsgi-1.9.17-no-LD_RUN_PATH.patch - Disable invalid rpath in plugins
|
||||
Patch1: uwsgi-1.9.17-no-LD_RUN_PATH.patch
|
||||
# PATCH-FIX-OPENSUSE uwsgi-1.9.13-objc_gc-no-fobjc-gc.patch - No -fobjc-gc in CFLAGS, which is incorrect in GNU
|
||||
Patch2: uwsgi-1.9.13-objc_gc-no-fobjc-gc.patch
|
||||
# PATCH-FIX-OPENSUSE uwsgi-1.9.11-systemd_logger-old_systemd.patch - Older systemd in 12.2 does not implicity include syslog.h
|
||||
@@ -54,6 +47,7 @@ BuildRequires: erlang
|
||||
%endif
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: gcc-objc
|
||||
BuildRequires: glusterfs-devel
|
||||
#BuildRequires: go
|
||||
BuildRequires: java-devel
|
||||
#BuildRequires: krb5-devel
|
||||
@@ -94,9 +88,11 @@ BuildRequires: systemd-devel
|
||||
BuildRequires: systemd
|
||||
%endif
|
||||
BuildRequires: tcpd-devel
|
||||
%if %{enable_v8}
|
||||
%ifarch %{ix86} x86_64 %{arm}
|
||||
%if 0%{?suse_version} < 1310
|
||||
BuildRequires: v8-devel
|
||||
%endif
|
||||
%endif
|
||||
BuildRequires: zeromq-devel
|
||||
BuildRequires: zlib-devel
|
||||
%{?systemd_requires}
|
||||
@@ -222,6 +218,19 @@ This package contains support for Python Gevent, which is a non-blocking
|
||||
networking framework.
|
||||
|
||||
|
||||
%package glusterfs
|
||||
Summary: GlusterFS Plugin for uWSGI
|
||||
Group: Productivity/Networking/Web/Servers
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description glusterfs
|
||||
uWSGI is a fast, self-healing and developer/sysadmin-friendly application
|
||||
container server coded in pure C.
|
||||
|
||||
This package contains support for returning objects directly from a GlusterFS
|
||||
filesystem
|
||||
|
||||
|
||||
%package greenlet
|
||||
Summary: Greenlet Plugin for uWSGI
|
||||
Group: Productivity/Networking/Web/Servers
|
||||
@@ -369,7 +378,8 @@ This package contains support for storing application configuration in SQLite3
|
||||
databases.
|
||||
|
||||
|
||||
%if %{enable_v8}
|
||||
%ifarch %{ix86} x86_64 %{arm}
|
||||
%if 0%{?suse_version} < 1310
|
||||
%package v8
|
||||
Summary: V8 JavaScript Plugin for uWSGI
|
||||
Group: Productivity/Networking/Web/Servers
|
||||
@@ -381,6 +391,7 @@ container server coded in pure C.
|
||||
|
||||
This package contains support for JavaScript using V8.
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%package xslt
|
||||
Summary: XSLT Plugin for uWSGI
|
||||
@@ -439,10 +450,18 @@ excluded_plugins="$excluded_plugins router_spnego"
|
||||
# These are example plugins and shouldn't be distributed
|
||||
excluded_plugins="$excluded_plugins cplusplus dummy example"
|
||||
|
||||
# V8 is not yet available on all platforms
|
||||
%if !%{enable_v8}
|
||||
# Ceph/RADOS not yet in Factory
|
||||
excluded_plugins="$excluded_plugins rados"
|
||||
|
||||
# libtcc not yet in Factory
|
||||
excluded_plugins="$excluded_plugins libtcc"
|
||||
|
||||
# V8 is not yet available on all platforms and is broken in the v8 version in 13.1
|
||||
%ifarch %{ix86} x86_64 %{arm}
|
||||
%if 0%{?suse_version} > 1230
|
||||
excluded_plugins="$excluded_plugins v8"
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1210
|
||||
# Requirements missing on openSUSE <= 12.1
|
||||
@@ -460,6 +479,7 @@ cp %{SOURCE7} .
|
||||
export UWSGICONFIG_JVM_LIBPATH=$(dirname $(find %{_jvmdir}/java/jre/lib -name "libjvm.so" | grep server))
|
||||
export UWSGICONFIG_JVM_INCPATH="%{_jvmdir}/java/include"
|
||||
export UWSGICONFIG_LUALIB="lua"
|
||||
export UWSGICONFIG_LUAPC="lua"
|
||||
export UWSGICONFIG_RUBYPATH="ruby1.9"
|
||||
export CFLAGS="%{optflags} -I$(echo %{_libdir}/erlang/lib/erl_interface-*/include) -I%{_jvmdir}/java/include/linux -L$UWSGICONFIG_JVM_LIBPATH/jli"
|
||||
%{?jobs:export CPUCOUNT=%jobs}
|
||||
@@ -518,22 +538,27 @@ install -D plugins/jvm/uwsgi.jar %{buildroot}%{_javadir}/uwsgi.jar
|
||||
%{_libdir}/uwsgi/emperor_amqp_plugin.so
|
||||
%{_libdir}/uwsgi/exception_log_plugin.so
|
||||
%{_libdir}/uwsgi/fastrouter_plugin.so
|
||||
%{_libdir}/uwsgi/forkptyrouter_plugin.so
|
||||
%{_libdir}/uwsgi/echo_plugin.so
|
||||
%{_libdir}/uwsgi/graylog2_plugin.so
|
||||
%{_libdir}/uwsgi/http_plugin.so
|
||||
%{_libdir}/uwsgi/legion_cache_fetch_plugin.so
|
||||
%{_libdir}/uwsgi/logcrypto_plugin.so
|
||||
%{_libdir}/uwsgi/logfile_plugin.so
|
||||
%{_libdir}/uwsgi/logpipe_plugin.so
|
||||
%{_libdir}/uwsgi/logsocket_plugin.so
|
||||
%{_libdir}/uwsgi/nagios_plugin.so
|
||||
%{_libdir}/uwsgi/objc_gc_plugin.so
|
||||
%{_libdir}/uwsgi/msgpack_plugin.so
|
||||
%{_libdir}/uwsgi/notfound_plugin.so
|
||||
%{_libdir}/uwsgi/ping_plugin.so
|
||||
%{_libdir}/uwsgi/pty_plugin.so
|
||||
%{_libdir}/uwsgi/rawrouter_plugin.so
|
||||
%{_libdir}/uwsgi/redislog_plugin.so
|
||||
%{_libdir}/uwsgi/router_access_plugin.so
|
||||
%{_libdir}/uwsgi/router_basicauth_plugin.so
|
||||
%{_libdir}/uwsgi/router_cache_plugin.so
|
||||
%{_libdir}/uwsgi/router_expires_plugin.so
|
||||
%{_libdir}/uwsgi/router_hash_plugin.so
|
||||
%{_libdir}/uwsgi/router_http_plugin.so
|
||||
%{_libdir}/uwsgi/router_memcached_plugin.so
|
||||
@@ -562,6 +587,7 @@ install -D plugins/jvm/uwsgi.jar %{buildroot}%{_javadir}/uwsgi.jar
|
||||
%{_libdir}/uwsgi/transformation_offload_plugin.so
|
||||
%{_libdir}/uwsgi/transformation_tofile_plugin.so
|
||||
%{_libdir}/uwsgi/transformation_toupper_plugin.so
|
||||
%{_libdir}/uwsgi/tuntap_plugin.so
|
||||
%{_libdir}/uwsgi/ugreen_plugin.so
|
||||
%{_libdir}/uwsgi/webdav_plugin.so
|
||||
%{_libdir}/uwsgi/xattr_plugin.so
|
||||
@@ -593,11 +619,16 @@ install -D plugins/jvm/uwsgi.jar %{buildroot}%{_javadir}/uwsgi.jar
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/uwsgi/greenlet_plugin.so
|
||||
|
||||
%files glusterfs
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/uwsgi/glusterfs_plugin.so
|
||||
|
||||
%files jvm
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/uwsgi/jvm_plugin.so
|
||||
%{_libdir}/uwsgi/jwsgi_plugin.so
|
||||
%{_libdir}/uwsgi/ring_plugin.so
|
||||
%{_libdir}/uwsgi/servlet_plugin.so
|
||||
%{_javadir}/uwsgi.jar
|
||||
|
||||
%files ldap
|
||||
@@ -636,6 +667,7 @@ install -D plugins/jvm/uwsgi.jar %{buildroot}%{_javadir}/uwsgi.jar
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/uwsgi/fiber_plugin.so
|
||||
%{_libdir}/uwsgi/rack_plugin.so
|
||||
%{_libdir}/uwsgi/rbthreads_plugin.so
|
||||
%{_libdir}/uwsgi/ruby19_plugin.so
|
||||
%endif
|
||||
|
||||
@@ -643,11 +675,13 @@ install -D plugins/jvm/uwsgi.jar %{buildroot}%{_javadir}/uwsgi.jar
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/uwsgi/sqlite3_plugin.so
|
||||
|
||||
%if %{enable_v8}
|
||||
%ifarch %{ix86} x86_64 %{arm}
|
||||
%if 0%{?suse_version} < 1310
|
||||
%files v8
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/uwsgi/v8_plugin.so
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%files xslt
|
||||
%defattr(-,root,root,-)
|
||||
|
Reference in New Issue
Block a user