Weirdly, EL6 doesn't have perl-PSGI, EL7 doesn't have perl-Coro
This commit is contained in:
parent
d75a395424
commit
2f1e607f28
@ -9,4 +9,4 @@ routing = auto
|
|||||||
ssl = auto
|
ssl = auto
|
||||||
malloc_implementation = libc
|
malloc_implementation = libc
|
||||||
embedded_plugins = corerouter, echo, ping
|
embedded_plugins = corerouter, echo, ping
|
||||||
plugins = alarm_curl, alarm_xmpp, airbrake, cache, carbon, cgi, cplusplus, curl_cron, dumbloop, fastrouter, forkptyrouter, geoip, gevent, graylog2, http, jvm, jwsgi, ldap, logcrypto, logfile, logpipe, logsocket, lua, msgpack, nagios, pam, php, psgi, pty, python, rack, rawrouter, redislog, ring, router_access, router_basicauth, router_cache, router_expires, router_hash, router_http, router_memcached, router_metrics, router_radius, router_redirect, router_redis, router_rewrite, router_spnego, router_static, router_uwsgi, router_xmldir, rpc, rrdtool, rsyslog, ruby19, spooler, sqlite3, ssi, sslrouter, stats_pusher_file, stats_pusher_socket, stats_pusher_statsd, syslog, tornado, transformation_chunked, transformation_gzip, transformation_offload, transformation_template, transformation_tofile, transformation_toupper, ugreen, webdav, xattr, xslt, zabbix, zergpool
|
plugins = alarm_curl, alarm_xmpp, airbrake, cache, carbon, cgi, cplusplus, curl_cron, dumbloop, fastrouter, forkptyrouter, geoip, gevent, graylog2, http, jvm, jwsgi, ldap, logcrypto, logfile, logpipe, logsocket, lua, msgpack, nagios, pam, php, pty, python, rack, rawrouter, redislog, ring, router_access, router_basicauth, router_cache, router_expires, router_hash, router_http, router_memcached, router_metrics, router_radius, router_redirect, router_redis, router_rewrite, router_spnego, router_static, router_uwsgi, router_xmldir, rpc, rrdtool, rsyslog, ruby19, spooler, sqlite3, ssi, sslrouter, stats_pusher_file, stats_pusher_socket, stats_pusher_statsd, syslog, tornado, transformation_chunked, transformation_gzip, transformation_offload, transformation_template, transformation_tofile, transformation_toupper, ugreen, webdav, xattr, xslt, zabbix, zergpool
|
||||||
|
26
uwsgi.spec
26
uwsgi.spec
@ -19,8 +19,9 @@
|
|||||||
%bcond_without tuntap
|
%bcond_without tuntap
|
||||||
%bcond_without zeromq
|
%bcond_without zeromq
|
||||||
%bcond_without greenlet
|
%bcond_without greenlet
|
||||||
%bcond_without perlcoro
|
%bcond_without perl
|
||||||
%bcond_without glusterfs
|
%bcond_without glusterfs
|
||||||
|
|
||||||
#mono
|
#mono
|
||||||
%ifnarch %{mono_arches}
|
%ifnarch %{mono_arches}
|
||||||
%bcond_with mono
|
%bcond_with mono
|
||||||
@ -59,16 +60,18 @@
|
|||||||
%bcond_with python3
|
%bcond_with python3
|
||||||
# el6 ships with ruby 1.8 but fiberloop/rbthreads needs 1.9
|
# el6 ships with ruby 1.8 but fiberloop/rbthreads needs 1.9
|
||||||
%bcond_with ruby19
|
%bcond_with ruby19
|
||||||
|
# el7 doesn't have perl-PSGI
|
||||||
|
%bcond_with perl
|
||||||
# this fails in el not sure why
|
# this fails in el not sure why
|
||||||
%bcond_with gridfs
|
%bcond_with gridfs
|
||||||
%bcond_with tuntap
|
%bcond_with tuntap
|
||||||
%bcond_with mongodblibs
|
%bcond_with mongodblibs
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Conditionally disable some things in epel7
|
# Conditionally enable/disable some things in epel7
|
||||||
%if 0%{?rhel} == 7
|
%if 0%{?rhel} == 7
|
||||||
# el7 doesn't ship with systemd
|
# el7 does have systemd
|
||||||
%bcond_with systemd
|
%bcond_without systemd
|
||||||
# el7 doesn't have python3
|
# el7 doesn't have python3
|
||||||
%bcond_with python3
|
%bcond_with python3
|
||||||
# el7 doesn't have zeromq
|
# el7 doesn't have zeromq
|
||||||
@ -76,7 +79,7 @@
|
|||||||
# el7 doesn't have greenlet
|
# el7 doesn't have greenlet
|
||||||
%bcond_with greenlet
|
%bcond_with greenlet
|
||||||
# el7 doesn't have perl-Coro
|
# el7 doesn't have perl-Coro
|
||||||
%bcond_with perlcoro
|
%bcond_with perl
|
||||||
# this fails in el not sure why
|
# this fails in el not sure why
|
||||||
%bcond_with glusterfs
|
%bcond_with glusterfs
|
||||||
%bcond_with gridfs
|
%bcond_with gridfs
|
||||||
@ -127,7 +130,7 @@ BuildRequires: gloox-devel, libstdc++-devel
|
|||||||
BuildRequires: GeoIP-devel, libevent-devel, zlib-devel
|
BuildRequires: GeoIP-devel, libevent-devel, zlib-devel
|
||||||
BuildRequires: openldap-devel, boost-devel
|
BuildRequires: openldap-devel, boost-devel
|
||||||
BuildRequires: libattr-devel, libxslt-devel
|
BuildRequires: libattr-devel, libxslt-devel
|
||||||
%if %{with perlcoro}
|
%if %{with perl}
|
||||||
BuildRequires: perl-Coro
|
BuildRequires: perl-Coro
|
||||||
%endif
|
%endif
|
||||||
%if %{with zeromq}
|
%if %{with zeromq}
|
||||||
@ -454,7 +457,7 @@ Requires: %{name}-plugin-common
|
|||||||
%description -n %{name}-plugin-carbon
|
%description -n %{name}-plugin-carbon
|
||||||
This package contains the Carbon plugin for uWSGI (to use in graphite)
|
This package contains the Carbon plugin for uWSGI (to use in graphite)
|
||||||
|
|
||||||
%if %{with perlcoro}
|
%if %{with perl}
|
||||||
%package -n %{name}-plugin-coroae
|
%package -n %{name}-plugin-coroae
|
||||||
Summary: uWSGI - Plugin for PERL Coro support
|
Summary: uWSGI - Plugin for PERL Coro support
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
@ -626,6 +629,7 @@ Requires: %{name}-plugin-common
|
|||||||
%description -n %{name}-plugin-php
|
%description -n %{name}-plugin-php
|
||||||
This package contains the PHP plugin for uWSGI
|
This package contains the PHP plugin for uWSGI
|
||||||
|
|
||||||
|
%if %{with perl}
|
||||||
%package -n %{name}-plugin-psgi
|
%package -n %{name}-plugin-psgi
|
||||||
Summary: uWSGI - Plugin for PSGI support
|
Summary: uWSGI - Plugin for PSGI support
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
@ -633,6 +637,7 @@ Requires: perl-PSGI, %{name}-plugin-common
|
|||||||
|
|
||||||
%description -n %{name}-plugin-psgi
|
%description -n %{name}-plugin-psgi
|
||||||
This package contains the PSGI plugin for uWSGI
|
This package contains the PSGI plugin for uWSGI
|
||||||
|
%endif
|
||||||
|
|
||||||
%package -n %{name}-plugin-pty
|
%package -n %{name}-plugin-pty
|
||||||
Summary: uWSGI - Plugin for PTY support
|
Summary: uWSGI - Plugin for PTY support
|
||||||
@ -1051,8 +1056,9 @@ CFLAGS="%{optflags} -Wno-unused-but-set-variable" python uwsgiconfig.py --plugin
|
|||||||
%if %{with tuntap}
|
%if %{with tuntap}
|
||||||
CFLAGS="%{optflags} -Wno-unused-but-set-variable" python uwsgiconfig.py --plugin plugins/tuntap fedora
|
CFLAGS="%{optflags} -Wno-unused-but-set-variable" python uwsgiconfig.py --plugin plugins/tuntap fedora
|
||||||
%endif
|
%endif
|
||||||
%if %{with perlcoro}
|
%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/coroae fedora
|
||||||
|
CFLAGS="%{optflags} -Wno-unused-but-set-variable" python uwsgiconfig.py --plugin plugins/psgi fedora
|
||||||
%endif
|
%endif
|
||||||
%if %{with zeromq}
|
%if %{with zeromq}
|
||||||
CFLAGS="%{optflags} -Wno-unused-but-set-variable" python uwsgiconfig.py --plugin plugins/logzmq fedora
|
CFLAGS="%{optflags} -Wno-unused-but-set-variable" python uwsgiconfig.py --plugin plugins/logzmq fedora
|
||||||
@ -1294,7 +1300,7 @@ fi
|
|||||||
%files -n %{name}-plugin-carbon
|
%files -n %{name}-plugin-carbon
|
||||||
%{_libdir}/%{name}/carbon_plugin.so
|
%{_libdir}/%{name}/carbon_plugin.so
|
||||||
|
|
||||||
%if %{with perlcoro}
|
%if %{with perl}
|
||||||
%files -n %{name}-plugin-coroae
|
%files -n %{name}-plugin-coroae
|
||||||
%{_libdir}/%{name}/coroae_plugin.so
|
%{_libdir}/%{name}/coroae_plugin.so
|
||||||
%endif
|
%endif
|
||||||
@ -1375,8 +1381,10 @@ fi
|
|||||||
%files -n %{name}-plugin-php
|
%files -n %{name}-plugin-php
|
||||||
%{_libdir}/%{name}/php_plugin.so
|
%{_libdir}/%{name}/php_plugin.so
|
||||||
|
|
||||||
|
%if %{with perl}
|
||||||
%files -n %{name}-plugin-psgi
|
%files -n %{name}-plugin-psgi
|
||||||
%{_libdir}/%{name}/psgi_plugin.so
|
%{_libdir}/%{name}/psgi_plugin.so
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -n %{name}-plugin-pty
|
%files -n %{name}-plugin-pty
|
||||||
%{_libdir}/%{name}/pty_plugin.so
|
%{_libdir}/%{name}/pty_plugin.so
|
||||||
|
Loading…
Reference in New Issue
Block a user