diff --git a/uwsgi.spec b/uwsgi.spec index 9dffa57..48ed542 100644 --- a/uwsgi.spec +++ b/uwsgi.spec @@ -47,7 +47,9 @@ BuildRequires: erlang %endif BuildRequires: gcc-c++ BuildRequires: gcc-objc +%if 0%{?suse_version} && 0%{?suse_version} <= 1230 BuildRequires: glusterfs-devel +%endif #BuildRequires: go BuildRequires: java-devel #BuildRequires: krb5-devel @@ -218,6 +220,7 @@ This package contains support for Python Gevent, which is a non-blocking networking framework. +%if 0%{?suse_version} && 0%{?suse_version} <= 1230 %package glusterfs Summary: GlusterFS Plugin for uWSGI Group: Productivity/Networking/Web/Servers @@ -229,7 +232,7 @@ container server coded in pure C. This package contains support for returning objects directly from a GlusterFS filesystem - +%endif %package greenlet Summary: Greenlet Plugin for uWSGI @@ -468,7 +471,12 @@ excluded_plugins="$excluded_plugins v8" excluded_plugins="$excluded_plugins erlang fiber pyerl rack ruby19 systemd_logger" %endif -plugins=$(python -c "import sys, os; print ', '.join([p for p in os.listdir('plugins') if p not in sys.argv[1:]])" $excluded_plugins) +%if 0%{?suse_version} && 0%{?suse_version} <= 1230 +# Requirements missing on openSUSE <= 12.3 +excluded_plugins="$excluded_plugins glusterfs" +%endif + +lugins=$(python -c "import sys, os; print ', '.join([p for p in os.listdir('plugins') if p not in sys.argv[1:]])" $excluded_plugins) sed -e "s#@@LIBDIR@@#%{_libdir}#" -e "s#@@PLUGINS@@#$plugins#" %{SOURCE1} > buildconf/opensuse.ini # README.openSUSE @@ -619,9 +627,11 @@ install -D plugins/jvm/uwsgi.jar %{buildroot}%{_javadir}/uwsgi.jar %defattr(-,root,root,-) %{_libdir}/uwsgi/greenlet_plugin.so +%if 0%{?suse_version} && 0%{?suse_version} <= 1230 %files glusterfs %defattr(-,root,root,-) %{_libdir}/uwsgi/glusterfs_plugin.so +%endif %files jvm %defattr(-,root,root,-)