forked from pool/uwsgi
- Added apache2-mod_proxy_uwsgi and apache2-mod_uwsgi sub packages
OBS-URL: https://build.opensuse.org/package/show/server:http/uwsgi?expand=0&rev=26
This commit is contained in:
parent
e6a223498f
commit
214573125c
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 8 19:50:28 UTC 2013 - jfunk@funktronics.ca
|
||||||
|
|
||||||
|
- Added apache2-mod_proxy_uwsgi and apache2-mod_uwsgi sub packages
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Oct 17 18:10:06 UTC 2013 - jfunk@funktronics.ca
|
Thu Oct 17 18:10:06 UTC 2013 - jfunk@funktronics.ca
|
||||||
|
|
||||||
|
46
uwsgi.spec
46
uwsgi.spec
@ -42,6 +42,14 @@ Patch2: uwsgi-1.9.13-objc_gc-no-fobjc-gc.patch
|
|||||||
Patch3: uwsgi-1.9.11-systemd_logger-old_systemd.patch
|
Patch3: uwsgi-1.9.11-systemd_logger-old_systemd.patch
|
||||||
# PATCH-FIX-OPENSUSE uwsgi-1.9.13-emperor_pg-Wformat.patch - gcc complains about lack of -Wformat with -Wformat-security from pg_config
|
# PATCH-FIX-OPENSUSE uwsgi-1.9.13-emperor_pg-Wformat.patch - gcc complains about lack of -Wformat with -Wformat-security from pg_config
|
||||||
Patch4: uwsgi-1.9.13-emperor_pg-Wformat.patch
|
Patch4: uwsgi-1.9.13-emperor_pg-Wformat.patch
|
||||||
|
%define apache_branch %(rpm -q --qf %%{version} apache2 | grep -E -o "2\\.[0-9]+")
|
||||||
|
%if "%{apache_branch}" == "2.4"
|
||||||
|
%define apxs %{_bindir}/apxs2
|
||||||
|
%else
|
||||||
|
%define apxs %{_sbindir}/apxs2
|
||||||
|
%endif
|
||||||
|
%define apache_libexecdir %(%{apxs} -q LIBEXECDIR)
|
||||||
|
BuildRequires: apache2-devel
|
||||||
%if 0%{?suse_version} > 1210
|
%if 0%{?suse_version} > 1210
|
||||||
BuildRequires: erlang
|
BuildRequires: erlang
|
||||||
%endif
|
%endif
|
||||||
@ -154,6 +162,30 @@ different plugins can be used in order to add compatibility with tons of
|
|||||||
different technology on top of the same core.
|
different technology on top of the same core.
|
||||||
|
|
||||||
|
|
||||||
|
%package -n apache2-mod_proxy_uwsgi
|
||||||
|
Summary: uWSGI Proxy Module for Apache 2.0
|
||||||
|
Group: Productivity/Networking/Web/Servers
|
||||||
|
Requires: %{name} = %{version}
|
||||||
|
|
||||||
|
%description -n apache2-mod_proxy_uwsgi
|
||||||
|
uWSGI is a fast, self-healing and developer/sysadmin-friendly application
|
||||||
|
container server coded in pure C.
|
||||||
|
|
||||||
|
This package contains an Apache 2.0 proxy module for uWSGI.
|
||||||
|
|
||||||
|
|
||||||
|
%package -n apache2-mod_uwsgi
|
||||||
|
Summary: uWSGI Module for Apache 2.0
|
||||||
|
Group: Productivity/Networking/Web/Servers
|
||||||
|
Requires: %{name} = %{version}
|
||||||
|
|
||||||
|
%description -n apache2-mod_uwsgi
|
||||||
|
uWSGI is a fast, self-healing and developer/sysadmin-friendly application
|
||||||
|
container server coded in pure C.
|
||||||
|
|
||||||
|
This package contains an Apache 2.0 module for uWSGI.
|
||||||
|
|
||||||
|
|
||||||
%package emperor_pg
|
%package emperor_pg
|
||||||
Summary: PostgreSQL Emperor Plugin for uWSGI
|
Summary: PostgreSQL Emperor Plugin for uWSGI
|
||||||
Group: Productivity/Networking/Web/Servers
|
Group: Productivity/Networking/Web/Servers
|
||||||
@ -506,6 +538,10 @@ export CFLAGS="%{optflags} -I$(echo %{_libdir}/erlang/lib/erl_interface-*/includ
|
|||||||
%{?jobs:export CPUCOUNT=%jobs}
|
%{?jobs:export CPUCOUNT=%jobs}
|
||||||
python uwsgiconfig.py --build opensuse
|
python uwsgiconfig.py --build opensuse
|
||||||
|
|
||||||
|
# Build Apache modules
|
||||||
|
%{apxs} -c apache2/mod_proxy_uwsgi.c
|
||||||
|
%{apxs} -c apache2/mod_uwsgi.c
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -D -m 0755 uwsgi %{buildroot}%{_sbindir}/uwsgi
|
install -D -m 0755 uwsgi %{buildroot}%{_sbindir}/uwsgi
|
||||||
install -d -m 0755 %{buildroot}%{_libdir}/uwsgi
|
install -d -m 0755 %{buildroot}%{_libdir}/uwsgi
|
||||||
@ -520,6 +556,8 @@ install -m 0644 vassals/multi.xml %{buildroot}%{_sysconfdir}/uwsgi/vassals/multi
|
|||||||
install -D -m 0644 uwsgidecorators.py %{buildroot}%{python_sitelib}/uwsgidecorators.py
|
install -D -m 0644 uwsgidecorators.py %{buildroot}%{python_sitelib}/uwsgidecorators.py
|
||||||
%py_compile %{buildroot}%{python_sitelib}
|
%py_compile %{buildroot}%{python_sitelib}
|
||||||
install -D plugins/jvm/uwsgi.jar %{buildroot}%{_javadir}/uwsgi.jar
|
install -D plugins/jvm/uwsgi.jar %{buildroot}%{_javadir}/uwsgi.jar
|
||||||
|
install -d -m 0755 %{buildroot}/%{apache_libexecdir}
|
||||||
|
install -m 0755 apache2/.libs/*.so %{buildroot}/%{apache_libexecdir}
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
%service_add_pre uwsgi.service
|
%service_add_pre uwsgi.service
|
||||||
@ -614,6 +652,14 @@ install -D plugins/jvm/uwsgi.jar %{buildroot}%{_javadir}/uwsgi.jar
|
|||||||
%{_libdir}/uwsgi/xattr_plugin.so
|
%{_libdir}/uwsgi/xattr_plugin.so
|
||||||
%{_libdir}/uwsgi/zergpool_plugin.so
|
%{_libdir}/uwsgi/zergpool_plugin.so
|
||||||
|
|
||||||
|
%files -n apache2-mod_proxy_uwsgi
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{apache_libexecdir}/mod_proxy_uwsgi.so
|
||||||
|
|
||||||
|
%files -n apache2-mod_uwsgi
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{apache_libexecdir}/mod_uwsgi.so
|
||||||
|
|
||||||
%files emperor_pg
|
%files emperor_pg
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_libdir}/uwsgi/emperor_pg_plugin.so
|
%{_libdir}/uwsgi/emperor_pg_plugin.so
|
||||||
|
Loading…
Reference in New Issue
Block a user