|
|
|
@@ -1,7 +1,7 @@
|
|
|
|
|
#
|
|
|
|
|
# spec file for package uwsgi
|
|
|
|
|
#
|
|
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
@@ -17,12 +17,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: uwsgi
|
|
|
|
|
Version: 2.0.14
|
|
|
|
|
Version: 2.0.15
|
|
|
|
|
Release: 0
|
|
|
|
|
Summary: Application Container Server for Networked/Clustered Web Applications
|
|
|
|
|
License: GPL-2.0-with-GCC-exception
|
|
|
|
|
Group: Productivity/Networking/Web/Servers
|
|
|
|
|
Url: http://projects.unbit.it/uwsgi/wiki
|
|
|
|
|
Url: https://uwsgi-docs.readthedocs.io/en/latest/
|
|
|
|
|
Source: http://projects.unbit.it/downloads/uwsgi-%{version}.tar.gz
|
|
|
|
|
Source1: opensuse.ini.in
|
|
|
|
|
Source2: uwsgi.service
|
|
|
|
@@ -40,10 +40,8 @@ Patch1: uwsgi-2.0.12-no-LD_RUN_PATH.patch
|
|
|
|
|
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
|
|
|
|
|
Patch3: uwsgi-1.9.11-systemd_logger-old_systemd.patch
|
|
|
|
|
# PATCH-FIX-OPENSUSE uwsgi-1.9.13-emperor_pg-Wformat.patch - gcc complains about lack of -Wformat with -Wformat-security from pg_config
|
|
|
|
|
Patch4: uwsgi-1.9.13-emperor_pg-Wformat.patch
|
|
|
|
|
# PATCH-FIX-UPSTREAM reproducible.patch https://github.com/unbit/uwsgi/pull/1561
|
|
|
|
|
Patch5: reproducible.patch
|
|
|
|
|
Patch4: reproducible.patch
|
|
|
|
|
%define apache_branch %(rpm -q --qf %%{version} apache2 | grep -E -o "2\\.[0-9]+")
|
|
|
|
|
%if "%{apache_branch}" == "2.4"
|
|
|
|
|
%define apxs %{_bindir}/apxs2
|
|
|
|
@@ -83,7 +81,10 @@ BuildRequires: openldap2-devel
|
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
|
BuildRequires: pam-devel
|
|
|
|
|
BuildRequires: pcre-devel
|
|
|
|
|
#BuildRequires: php5-devel
|
|
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
|
BuildRequires: php7-devel
|
|
|
|
|
BuildRequires: php7-embed
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
|
BuildRequires: postgresql-devel
|
|
|
|
|
BuildRequires: python-devel
|
|
|
|
@@ -134,12 +135,10 @@ Provides: uwsgi-zergpool = %{version}
|
|
|
|
|
Obsoletes: uwsgi-zergpool < 1.9.11
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
uWSGI is a fast, self-healing and developer/sysadmin-friendly application
|
|
|
|
|
container server coded in pure C.
|
|
|
|
|
uWSGI is a self-healing application container server coded in pure C.
|
|
|
|
|
|
|
|
|
|
Born as a WSGI-only server, over time it has evolved in a complete stack for
|
|
|
|
|
networked/clustered web applications, implementing message/object passing,
|
|
|
|
|
caching, RPC and process management.
|
|
|
|
|
It is a WSGI server with a stack for networked/clustered web applications,
|
|
|
|
|
implementing message/object passing, caching, RPC and process management.
|
|
|
|
|
|
|
|
|
|
It uses the uwsgi (all lowercase, already included by default in the Nginx and
|
|
|
|
|
Cherokee releases) protocol for all the networking/interprocess communications,
|
|
|
|
@@ -149,12 +148,7 @@ It can be run in preforking mode, threaded, asynchronous/evented and supports
|
|
|
|
|
various forms of green threads/coroutines (such as uGreen, Greenlet, Stackless,
|
|
|
|
|
Gevent and Fiber).
|
|
|
|
|
|
|
|
|
|
Sysadmins will love it as it can be configured via several methods: command
|
|
|
|
|
line, environment variables, XML, .ini, yaml, json, sqlite3 database and via
|
|
|
|
|
LDAP.
|
|
|
|
|
|
|
|
|
|
On top of all this, it is designed to be fully modular. This means that
|
|
|
|
|
different plugins can be used in order to add compatibility with tons of
|
|
|
|
|
Different plugins can be used in order to add compatibility with
|
|
|
|
|
different technology on top of the same core.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -164,8 +158,7 @@ Group: Productivity/Networking/Web/Servers
|
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
|
|
%description -n apache2-mod_proxy_uwsgi
|
|
|
|
|
uWSGI is a fast, self-healing and developer/sysadmin-friendly application
|
|
|
|
|
container server coded in pure C.
|
|
|
|
|
uWSGI is a self-healing application container server coded in pure C.
|
|
|
|
|
|
|
|
|
|
This package contains an Apache 2.0 proxy module for uWSGI.
|
|
|
|
|
|
|
|
|
@@ -176,8 +169,7 @@ Group: Productivity/Networking/Web/Servers
|
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
|
|
%description -n apache2-mod_uwsgi
|
|
|
|
|
uWSGI is a fast, self-healing and developer/sysadmin-friendly application
|
|
|
|
|
container server coded in pure C.
|
|
|
|
|
uWSGI is a self-healing application container server coded in pure C.
|
|
|
|
|
|
|
|
|
|
This package contains an Apache 2.0 module for uWSGI.
|
|
|
|
|
|
|
|
|
@@ -188,8 +180,7 @@ Group: Productivity/Networking/Web/Servers
|
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
|
|
%description emperor_pg
|
|
|
|
|
uWSGI is a fast, self-healing and developer/sysadmin-friendly application
|
|
|
|
|
container server coded in pure C.
|
|
|
|
|
uWSGI is a self-healing application container server coded in pure C.
|
|
|
|
|
|
|
|
|
|
This package contains an emperor plugin allowing for configuration of
|
|
|
|
|
applications (vassals) in a PostgreSQL database.
|
|
|
|
@@ -201,8 +192,7 @@ Group: Productivity/Networking/Web/Servers
|
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
|
|
%description emperor_zeromq
|
|
|
|
|
uWSGI is a fast, self-healing and developer/sysadmin-friendly application
|
|
|
|
|
container server coded in pure C.
|
|
|
|
|
uWSGI is a self-healing application container server coded in pure C.
|
|
|
|
|
|
|
|
|
|
This package contains an emperor plugin allowing for configuration of
|
|
|
|
|
applications (vassals) via ZeroMQ.
|
|
|
|
@@ -215,8 +205,7 @@ Requires: %{name} = %{version}
|
|
|
|
|
Requires: %{name}-python = %{version}
|
|
|
|
|
|
|
|
|
|
%description geoip
|
|
|
|
|
uWSGI is a fast, self-healing and developer/sysadmin-friendly application
|
|
|
|
|
container server coded in pure C.
|
|
|
|
|
uWSGI is a self-healing application container server coded in pure C.
|
|
|
|
|
|
|
|
|
|
This package contains support for GeoIP routing.
|
|
|
|
|
|
|
|
|
@@ -228,8 +217,7 @@ Requires: %{name} = %{version}
|
|
|
|
|
Requires: %{name}-python = %{version}
|
|
|
|
|
|
|
|
|
|
%description gevent
|
|
|
|
|
uWSGI is a fast, self-healing and developer/sysadmin-friendly application
|
|
|
|
|
container server coded in pure C.
|
|
|
|
|
uWSGI is a self-healing application container server coded in pure C.
|
|
|
|
|
|
|
|
|
|
This package contains support for Python Gevent, which is a non-blocking
|
|
|
|
|
networking framework.
|
|
|
|
@@ -242,8 +230,7 @@ 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.
|
|
|
|
|
uWSGI is a self-healing application container server coded in pure C.
|
|
|
|
|
|
|
|
|
|
This package contains support for returning objects directly from a GlusterFS
|
|
|
|
|
filesystem
|
|
|
|
@@ -256,8 +243,7 @@ Requires: %{name} = %{version}
|
|
|
|
|
Requires: %{name}-python = %{version}
|
|
|
|
|
|
|
|
|
|
%description greenlet
|
|
|
|
|
uWSGI is a fast, self-healing and developer/sysadmin-friendly application
|
|
|
|
|
container server coded in pure C.
|
|
|
|
|
uWSGI is a self-healing application container server coded in pure C.
|
|
|
|
|
|
|
|
|
|
This package contains support for the Python Greenlet non-blocking network
|
|
|
|
|
framework.
|
|
|
|
@@ -271,8 +257,7 @@ Provides: uwsgi-jwsgi = %{version}
|
|
|
|
|
Obsoletes: uwsgi-jwsgi < 1.9.11
|
|
|
|
|
|
|
|
|
|
%description jvm
|
|
|
|
|
uWSGI is a fast, self-healing and developer/sysadmin-friendly application
|
|
|
|
|
container server coded in pure C.
|
|
|
|
|
uWSGI is a self-healing application container server coded in pure C.
|
|
|
|
|
|
|
|
|
|
This package contains support for embedding a Java virtual machine in uWSGI.
|
|
|
|
|
|
|
|
|
@@ -283,20 +268,18 @@ Group: Productivity/Networking/Web/Servers
|
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
|
|
%description ldap
|
|
|
|
|
uWSGI is a fast, self-healing and developer/sysadmin-friendly application
|
|
|
|
|
container server coded in pure C.
|
|
|
|
|
uWSGI is a self-healing application container server coded in pure C.
|
|
|
|
|
|
|
|
|
|
This package contains support for configuring uWSGI via LDAP.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package libffi
|
|
|
|
|
Summary: libffi Plugin for uWSGI
|
|
|
|
|
Summary: Plugin libffi for uWSGI
|
|
|
|
|
Group: Productivity/Networking/Web/Servers
|
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
|
|
%description libffi
|
|
|
|
|
uWSGI is a fast, self-healing and developer/sysadmin-friendly application
|
|
|
|
|
container server coded in pure C.
|
|
|
|
|
uWSGI is a self-healing application container server coded in pure C.
|
|
|
|
|
|
|
|
|
|
This package contains support for libffi.
|
|
|
|
|
|
|
|
|
@@ -307,8 +290,7 @@ Group: Productivity/Networking/Web/Servers
|
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
|
|
%description logzmq
|
|
|
|
|
uWSGI is a fast, self-healing and developer/sysadmin-friendly application
|
|
|
|
|
container server coded in pure C.
|
|
|
|
|
uWSGI is a self-healing application container server coded in pure C.
|
|
|
|
|
|
|
|
|
|
This package contains support for ZMQ logging.
|
|
|
|
|
|
|
|
|
@@ -319,8 +301,7 @@ Group: Productivity/Networking/Web/Servers
|
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
|
|
%description lua
|
|
|
|
|
uWSGI is a fast, self-healing and developer/sysadmin-friendly application
|
|
|
|
|
container server coded in pure C.
|
|
|
|
|
uWSGI is a self-healing application container server coded in pure C.
|
|
|
|
|
|
|
|
|
|
This package contains support for Lua applications via the wsapi interface.
|
|
|
|
|
|
|
|
|
@@ -331,8 +312,7 @@ Group: Productivity/Networking/Web/Servers
|
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
|
|
%description pam
|
|
|
|
|
uWSGI is a fast, self-healing and developer/sysadmin-friendly application
|
|
|
|
|
container server coded in pure C.
|
|
|
|
|
uWSGI is a self-healing application container server coded in pure C.
|
|
|
|
|
|
|
|
|
|
This package contains support for PAM authentication.
|
|
|
|
|
|
|
|
|
@@ -344,8 +324,7 @@ Requires: %{name} = %{version}
|
|
|
|
|
%{?libperl_requires}
|
|
|
|
|
|
|
|
|
|
%description psgi
|
|
|
|
|
uWSGI is a fast, self-healing and developer/sysadmin-friendly application
|
|
|
|
|
container server coded in pure C.
|
|
|
|
|
uWSGI is a self-healing application container server coded in pure C.
|
|
|
|
|
|
|
|
|
|
This package contains the PSGI plugin for running Perl applications that
|
|
|
|
|
support the PSGI protocol.
|
|
|
|
@@ -357,8 +336,7 @@ Group: Productivity/Networking/Web/Servers
|
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
|
|
%description pypy
|
|
|
|
|
uWSGI is a fast, self-healing and developer/sysadmin-friendly application
|
|
|
|
|
container server coded in pure C.
|
|
|
|
|
uWSGI is a self-healing application container server coded in pure C.
|
|
|
|
|
|
|
|
|
|
This package contains support for Python applications using PyPy.
|
|
|
|
|
|
|
|
|
@@ -367,10 +345,10 @@ This package contains support for Python applications using PyPy.
|
|
|
|
|
Summary: Python Plugin for uWSGI
|
|
|
|
|
Group: Productivity/Networking/Web/Servers
|
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
Requires: python-base = 2.7
|
|
|
|
|
|
|
|
|
|
%description python
|
|
|
|
|
uWSGI is a fast, self-healing and developer/sysadmin-friendly application
|
|
|
|
|
container server coded in pure C.
|
|
|
|
|
uWSGI is a self-healing application container server coded in pure C.
|
|
|
|
|
|
|
|
|
|
This package contains support for Python applications via the WSGI protocol.
|
|
|
|
|
|
|
|
|
@@ -379,10 +357,10 @@ This package contains support for Python applications via the WSGI protocol.
|
|
|
|
|
Summary: Python 3 Plugin for uWSGI
|
|
|
|
|
Group: Productivity/Networking/Web/Servers
|
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
Requires: python-base = 3.6
|
|
|
|
|
|
|
|
|
|
%description python3
|
|
|
|
|
uWSGI is a fast, self-healing and developer/sysadmin-friendly application
|
|
|
|
|
container server coded in pure C.
|
|
|
|
|
uWSGI is a self-healing application container server coded in pure C.
|
|
|
|
|
|
|
|
|
|
This package contains support for Python 3 applications via the WSGI protocol.
|
|
|
|
|
|
|
|
|
@@ -397,8 +375,7 @@ Provides: uwsgi-fiber = %{version}
|
|
|
|
|
Obsoletes: uwsgi-fiber < 1.9.11
|
|
|
|
|
|
|
|
|
|
%description ruby
|
|
|
|
|
uWSGI is a fast, self-healing and developer/sysadmin-friendly application
|
|
|
|
|
container server coded in pure C.
|
|
|
|
|
uWSGI is a self-healing application container server coded in pure C.
|
|
|
|
|
|
|
|
|
|
This package contains support for Ruby applications.
|
|
|
|
|
%endif
|
|
|
|
@@ -409,8 +386,7 @@ Group: Productivity/Networking/Web/Servers
|
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
|
|
%description sqlite3
|
|
|
|
|
uWSGI is a fast, self-healing and developer/sysadmin-friendly application
|
|
|
|
|
container server coded in pure C.
|
|
|
|
|
uWSGI is a self-healing application container server coded in pure C.
|
|
|
|
|
|
|
|
|
|
This package contains support for storing application configuration in SQLite3
|
|
|
|
|
databases.
|
|
|
|
@@ -424,8 +400,7 @@ Group: Productivity/Networking/Web/Servers
|
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
|
|
%description v8
|
|
|
|
|
uWSGI is a fast, self-healing and developer/sysadmin-friendly application
|
|
|
|
|
container server coded in pure C.
|
|
|
|
|
uWSGI is a self-healing application container server coded in pure C.
|
|
|
|
|
|
|
|
|
|
This package contains support for JavaScript using V8.
|
|
|
|
|
%endif
|
|
|
|
@@ -437,11 +412,22 @@ Group: Productivity/Networking/Web/Servers
|
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
|
|
%description xslt
|
|
|
|
|
uWSGI is a fast, self-healing and developer/sysadmin-friendly application
|
|
|
|
|
container server coded in pure C.
|
|
|
|
|
uWSGI is a self-healing application container server coded in pure C.
|
|
|
|
|
|
|
|
|
|
This package contains support for rendering XML content using XSLT.
|
|
|
|
|
|
|
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
|
%package php7
|
|
|
|
|
Summary: PHP7 Plugin for uWSGI
|
|
|
|
|
Group: Productivity/Networking/Web/Servers
|
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
Requires: php7-embed
|
|
|
|
|
|
|
|
|
|
%description php7
|
|
|
|
|
uWSGI is a self-healing application container server coded in pure C.
|
|
|
|
|
|
|
|
|
|
This package contains support for PHP version 7.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n uwsgi-%{version}
|
|
|
|
@@ -450,7 +436,6 @@ This package contains support for rendering XML content using XSLT.
|
|
|
|
|
%patch2 -p1
|
|
|
|
|
%patch3 -p1
|
|
|
|
|
%patch4 -p1
|
|
|
|
|
%patch5 -p1
|
|
|
|
|
# Generate a config that builds all plugins except for examples and stuff we
|
|
|
|
|
# can't satisfy the requirements for or are just broken
|
|
|
|
|
excluded_plugins=""
|
|
|
|
@@ -465,8 +450,10 @@ excluded_plugins="$excluded_plugins mono"
|
|
|
|
|
# Only for OSX
|
|
|
|
|
excluded_plugins="$excluded_plugins alarm_speech"
|
|
|
|
|
|
|
|
|
|
# No libphp on openSUSE for some reason
|
|
|
|
|
%if 0%{?suse_version} <= 1320
|
|
|
|
|
# No php[57]-embed on openSUSE Leap for some reason
|
|
|
|
|
excluded_plugins="$excluded_plugins php"
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# No stackless in openSUSE
|
|
|
|
|
excluded_plugins="$excluded_plugins stackless"
|
|
|
|
@@ -540,6 +527,11 @@ python3 uwsgiconfig.py --plugin plugins/python opensuse python3
|
|
|
|
|
%{apxs} -c apache2/mod_proxy_uwsgi.c
|
|
|
|
|
%{apxs} -c apache2/mod_uwsgi.c
|
|
|
|
|
|
|
|
|
|
# Build php7 plugin
|
|
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
|
python3 uwsgiconfig.py --plugin plugins/php opensuse php7
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
install -D -m 0755 uwsgi %{buildroot}%{_sbindir}/uwsgi
|
|
|
|
|
install -d -m 0755 %{buildroot}%{_libdir}/uwsgi
|
|
|
|
@@ -581,8 +573,9 @@ ln -sf /usr/sbin/service %{buildroot}%{_sbindir}/rcuwsgi
|
|
|
|
|
%dir %{_sysconfdir}/uwsgi/
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/uwsgi/uwsgi.ini
|
|
|
|
|
%dir %{_sysconfdir}/uwsgi/vassals
|
|
|
|
|
%{_sysconfdir}/uwsgi/vassals/*
|
|
|
|
|
%config %{_sysconfdir}/uwsgi/vassals/*
|
|
|
|
|
%dir %{_libdir}/uwsgi
|
|
|
|
|
%ghost /run/uwsgi
|
|
|
|
|
%{_unitdir}/uwsgi.service
|
|
|
|
|
%if 0%{?suse_version} > 1220
|
|
|
|
|
%{_sbindir}/rcuwsgi
|
|
|
|
@@ -768,4 +761,10 @@ ln -sf /usr/sbin/service %{buildroot}%{_sbindir}/rcuwsgi
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%{_libdir}/uwsgi/xslt_plugin.so
|
|
|
|
|
|
|
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
|
%files php7
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%{_libdir}/uwsgi/php*_plugin.so
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|