From 9a1e1584664e52fab0b51e3749780cf88df2c297456b89a9f004ae23768dc739 Mon Sep 17 00:00:00 2001 From: James Oakley Date: Fri, 20 Sep 2013 17:58:22 +0000 Subject: [PATCH] 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 --- uwsgi.changes | 5 +++++ uwsgi.spec | 19 ++++++++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/uwsgi.changes b/uwsgi.changes index 406f30c..3195899 100644 --- a/uwsgi.changes +++ b/uwsgi.changes @@ -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 diff --git a/uwsgi.spec b/uwsgi.spec index 9f677be..fd722dc 100644 --- a/uwsgi.spec +++ b/uwsgi.spec @@ -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,-)