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,-)