From b22531006b078fd37670c87e23eacb92e11583230b0aa0e5deb87b74eb0b2cfa Mon Sep 17 00:00:00 2001 From: James Oakley Date: Fri, 31 May 2013 21:12:58 +0000 Subject: [PATCH] Fix requirements and remove unsupported plugins on openSUSE <= 12.1 OBS-URL: https://build.opensuse.org/package/show/server:http/uwsgi?expand=0&rev=7 --- uwsgi.spec | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/uwsgi.spec b/uwsgi.spec index d30faf8..9b3ba55 100644 --- a/uwsgi.spec +++ b/uwsgi.spec @@ -74,13 +74,15 @@ BuildRequires: pkg-config BuildRequires: postgresql-devel BuildRequires: python-devel BuildRequires: python-greenlet-devel -%if 0%{?suse_version} > 1230 +%if 0%{?suse_version} >= 1230 BuildRequires: ruby19-devel %else BuildRequires: ruby-devel %endif BuildRequires: sqlite3-devel +%if 0%{?suse_version} > 1210 BuildRequires: systemd-devel +%endif BuildRequires: tcpd-devel BuildRequires: v8-devel BuildRequires: zeromq-devel @@ -285,6 +287,7 @@ This package contains the PSGI plugin for running Perl applications that support the PSGI protocol. +%if 0%{?suse_version} > 1210 %package pyerl Summary: Python-Erlang Plugin for uWSGI Group: Productivity/Networking/Web/Servers @@ -298,7 +301,7 @@ container server coded in pure C. This package contains the pyerl module for accessing Erlang functionality to Python applications. - +%endif %package pypy Summary: PyPy Plugin for uWSGI @@ -324,6 +327,7 @@ container server coded in pure C. This package contains support for Python applications via the WSGI protocol. +%if 0%{?suse_version} > 1210 %package ruby Summary: Ruby Plugin for uWSGI Group: Productivity/Networking/Web/Servers @@ -336,7 +340,7 @@ uWSGI is a fast, self-healing and developer/sysadmin-friendly application container server coded in pure C. This package contains support for Ruby applications. - +%endif %package sqlite3 Summary: SQLite3 Plugin for uWSGI @@ -421,7 +425,7 @@ excluded_plugins="$excluded_plugins cplusplus dummy example" %if 0%{?suse_version} && 0%{?suse_version} <= 1210 # Requirements missing on openSUSE <= 12.1 -excluded_plugins="$excluded_plugins fiber ruby19 erlang pyerl" +excluded_plugins="$excluded_plugins erlang fiber pyerl 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) @@ -524,7 +528,9 @@ install -D plugins/jvm/uwsgi.jar %{buildroot}%{_javadir}/uwsgi.jar %{_libdir}/uwsgi/stats_pusher_statsd_plugin.so %{_libdir}/uwsgi/symcall_plugin.so %{_libdir}/uwsgi/syslog_plugin.so +%if 0%{?suse_version} > 1210 %{_libdir}/uwsgi/systemd_logger_plugin.so +%endif %{_libdir}/uwsgi/transformation_chunked_plugin.so %{_libdir}/uwsgi/transformation_gzip_plugin.so %{_libdir}/uwsgi/transformation_tofile_plugin.so @@ -583,9 +589,11 @@ install -D plugins/jvm/uwsgi.jar %{buildroot}%{_javadir}/uwsgi.jar %defattr(-,root,root,-) %{_libdir}/uwsgi/psgi_plugin.so +%if 0%{?suse_version} > 1210 %files pyerl %defattr(-,root,root,-) %{_libdir}/uwsgi/pyerl_plugin.so +%endif %files pypy %defattr(-,root,root,-) @@ -596,11 +604,13 @@ install -D plugins/jvm/uwsgi.jar %{buildroot}%{_javadir}/uwsgi.jar %{_libdir}/uwsgi/python_plugin.so %{python_sitelib}/uwsgidecorators.py* +%if 0%{?suse_version} > 1210 %files ruby %defattr(-,root,root,-) %{_libdir}/uwsgi/fiber_plugin.so %{_libdir}/uwsgi/rack_plugin.so %{_libdir}/uwsgi/ruby19_plugin.so +%endif %files sqlite3 %defattr(-,root,root,-)