enable -plugin-psgi on EL7, but leave -plugin-coroae disabled for now

This commit is contained in:
Carl George 2016-12-21 03:36:01 +00:00
parent eda7982c79
commit 864a57ae9a
1 changed files with 13 additions and 3 deletions

View File

@ -69,7 +69,8 @@
%bcond_with tornado3
# el6 ships with ruby 1.8 but fiberloop/rbthreads needs 1.9
%bcond_with ruby19
# el7 doesn't have perl-PSGI
# el6 doesn't have perl-PSGI
# el6 does have perl-Coro
%bcond_with perl
# this fails in el not sure why
%bcond_with gridfs
@ -95,8 +96,9 @@
%bcond_with zeromq
# el7 doesn't have greenlet
%bcond_with greenlet
# el7 does have perl-PSGI
# el7 doesn't have perl-Coro
%bcond_with perl
%bcond_without perl
# el7 can now build glusterfs but only on x86_64
%ifnarch x86_64
%bcond_with glusterfs
@ -161,8 +163,10 @@ BuildRequires: openldap-devel, boost-devel
BuildRequires: libattr-devel, libxslt-devel
%if %{with perl}
BuildRequires: perl-devel, perl-ExtUtils-Embed
%if 0%{?fedora} >= 15
BuildRequires: perl-Coro
%endif
%endif
%if %{with zeromq}
BuildRequires: zeromq-devel
%endif
@ -522,6 +526,7 @@ Requires: perl-PSGI, %{name}-plugin-common = %{version}-%{release}
%description -n %{name}-plugin-psgi
This package contains the PSGI plugin for uWSGI
%if 0%{?fedora} >= 15
%package -n %{name}-plugin-coroae
Summary: uWSGI - Plugin for PERL Coro support
Group: System Environment/Daemons
@ -530,6 +535,7 @@ Requires: %{name}-plugin-common = %{version}-%{release}, %{name}-plugin-psgi = %
%description -n %{name}-plugin-coroae
This package contains the coroae plugin for uWSGI
%endif
%endif
%package -n %{name}-plugin-cplusplus
Summary: uWSGI - Plugin for C++ support
@ -1149,8 +1155,10 @@ CFLAGS="%{optflags} -Wno-unused-but-set-variable" python uwsgiconfig.py --plugin
CFLAGS="%{optflags} -Wno-unused-but-set-variable" python uwsgiconfig.py --plugin plugins/tuntap fedora
%endif
%if %{with perl}
CFLAGS="%{optflags} -Wno-unused-but-set-variable" python uwsgiconfig.py --plugin plugins/coroae fedora
CFLAGS="%{optflags} -Wno-unused-but-set-variable" python uwsgiconfig.py --plugin plugins/psgi fedora
%if 0%{?fedora} >= 15
CFLAGS="%{optflags} -Wno-unused-but-set-variable" python uwsgiconfig.py --plugin plugins/coroae fedora
%endif
%endif
%if %{with zeromq}
CFLAGS="%{optflags} -Wno-unused-but-set-variable" python uwsgiconfig.py --plugin plugins/logzmq fedora
@ -1430,9 +1438,11 @@ fi
%files -n %{name}-plugin-psgi
%{_libdir}/%{name}/psgi_plugin.so
%if 0%{?fedora} >= 15
%files -n %{name}-plugin-coroae
%{_libdir}/%{name}/coroae_plugin.so
%endif
%endif
%files -n %{name}-plugin-cplusplus
%{_libdir}/%{name}/cplusplus_plugin.so