[2259] | 1 | %define httpd apache2 |
---|
| 2 | Summary: A WSGI interface for Python web applications in Apache |
---|
| 3 | Summary(ja): Pythonウェブアプリケーション用WSGIインタフェースを実装したApacheモジュール |
---|
| 4 | Name: mod_wsgi |
---|
| 5 | Version: 3.3 |
---|
| 6 | Release: 1%{?_dist_release} |
---|
| 7 | License: Apache License Version 2.0 |
---|
| 8 | Group: System Environment/Daemons |
---|
| 9 | URL: http://code.google.com/p/modwsgi/ |
---|
| 10 | Source: http://modwsgi.googlecode.com/files/%{name}-%{version}.tar.gz |
---|
| 11 | Source1: wsgi.conf |
---|
| 12 | BuildRequires: python-devel |
---|
| 13 | BuildRequires: %{httpd}-devel |
---|
| 14 | Requires: %{httpd} |
---|
| 15 | Requires: python >= 2.3 |
---|
| 16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 17 | Vendor: Project Vine |
---|
| 18 | Distribution: Vine Linux |
---|
| 19 | |
---|
| 20 | %description |
---|
| 21 | The mod_wsgi adapter is an Apache module that provides a WSGI compliant |
---|
| 22 | interface for hosting Python based web applications within Apache. The |
---|
| 23 | adapter is written completely in C code against the Apache C runtime and |
---|
| 24 | for hosting WSGI applications within Apache has a lower overhead than using |
---|
| 25 | existing WSGI adapters for mod_python or CGI. |
---|
| 26 | |
---|
| 27 | |
---|
| 28 | %prep |
---|
| 29 | %setup -q |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | %build |
---|
| 33 | %configure --enable-shared |
---|
| 34 | make %{?_smp_mflags} LDFLAGS="-L%{_libdir}" |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | %install |
---|
| 38 | rm -rf $RPM_BUILD_ROOT |
---|
| 39 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 40 | |
---|
| 41 | ## Install the config file |
---|
| 42 | install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/%{httpd}/conf.d |
---|
| 43 | install -p -m 644 %SOURCE1 $RPM_BUILD_ROOT%{_sysconfdir}/%{httpd}/conf.d/ |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | %clean |
---|
| 47 | rm -rf $RPM_BUILD_ROOT |
---|
| 48 | |
---|
| 49 | |
---|
| 50 | %files |
---|
| 51 | %defattr(-,root,root) |
---|
| 52 | %doc LICENCE README |
---|
| 53 | %config(noreplace) %{_sysconfdir}/%{httpd}/conf.d/wsgi.conf |
---|
| 54 | %{_libdir}/%{httpd}/modules/%{name}.so |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | %changelog |
---|
| 58 | * Wed Dec 01 2010 Shu KONNO <owa@bg.wakwak.com> 3.3-1 |
---|
| 59 | - initial build for Vine Linux |
---|
| 60 | - added wsgi.conf from fedora |
---|
| 61 | |
---|