SHA256
1
0
forked from pool/uwsgi

Accepting request 199867 from home:k0da:ppc

- enable v8 conditionally (enables build for powerpc and s390)

OBS-URL: https://build.opensuse.org/request/show/199867
OBS-URL: https://build.opensuse.org/package/show/server:http/uwsgi?expand=0&rev=17
This commit is contained in:
James Oakley 2013-09-20 17:58:22 +00:00 committed by Git OBS Bridge
parent 95f8787140
commit 9a1e158466
2 changed files with 23 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Sep 20 15:06:48 UTC 2013 - dvaleev@suse.com
- enable v8 conditionally (enables build for powerpc and s390)
-------------------------------------------------------------------
Thu Sep 5 18:43:14 CEST 2013 - mls@suse.de

View File

@ -16,6 +16,13 @@
#
#
%ifarch %{ix86} x86_64 %{arm}
%define enable_v8 1
%else
%define enable_v8 0
%endif
Name: uwsgi
Version: 1.9.13
Release: 0
@ -87,7 +94,9 @@ BuildRequires: systemd-devel
BuildRequires: systemd
%endif
BuildRequires: tcpd-devel
%if %{enable_v8}
BuildRequires: v8-devel
%endif
BuildRequires: zeromq-devel
BuildRequires: zlib-devel
%{?systemd_requires}
@ -360,6 +369,7 @@ This package contains support for storing application configuration in SQLite3
databases.
%if %{enable_v8}
%package v8
Summary: V8 JavaScript Plugin for uWSGI
Group: Productivity/Networking/Web/Servers
@ -370,7 +380,7 @@ uWSGI is a fast, self-healing and developer/sysadmin-friendly application
container server coded in pure C.
This package contains support for JavaScript using V8.
%endif
%package xslt
Summary: XSLT Plugin for uWSGI
@ -429,6 +439,11 @@ 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}
excluded_plugins="$excluded_plugins v8"
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 1210
# Requirements missing on openSUSE <= 12.1
excluded_plugins="$excluded_plugins erlang fiber pyerl rack ruby19 systemd_logger"
@ -628,9 +643,11 @@ install -D plugins/jvm/uwsgi.jar %{buildroot}%{_javadir}/uwsgi.jar
%defattr(-,root,root,-)
%{_libdir}/uwsgi/sqlite3_plugin.so
%if %{enable_v8}
%files v8
%defattr(-,root,root,-)
%{_libdir}/uwsgi/v8_plugin.so
%endif
%files xslt
%defattr(-,root,root,-)