source: projects/specs/branches/6/m/mod_wsgi/mod_wsgi-vl.spec @ 2259

Revision 2259, 1.6 KB checked in by owa, 13 years ago (diff)

new package: mod_wsgi

Line 
1%define httpd apache2
2Summary: A WSGI interface for Python web applications in Apache
3Summary(ja): Pythonウェブアプリケーション用WSGIインタフェースを実装したApacheモジュール
4Name: mod_wsgi
5Version: 3.3
6Release: 1%{?_dist_release}
7License: Apache License Version 2.0
8Group: System Environment/Daemons
9URL: http://code.google.com/p/modwsgi/
10Source: http://modwsgi.googlecode.com/files/%{name}-%{version}.tar.gz
11Source1: wsgi.conf
12BuildRequires: python-devel
13BuildRequires: %{httpd}-devel
14Requires: %{httpd}
15Requires: python >= 2.3
16BuildRoot: %{_tmppath}/%{name}-%{version}-root
17Vendor: Project Vine
18Distribution: Vine Linux
19
20%description
21The mod_wsgi adapter is an Apache module that provides a WSGI compliant
22interface for hosting Python based web applications within Apache. The
23adapter is written completely in C code against the Apache C runtime and
24for hosting WSGI applications within Apache has a lower overhead than using
25existing WSGI adapters for mod_python or CGI.
26
27
28%prep
29%setup -q
30
31
32%build
33%configure --enable-shared
34make %{?_smp_mflags} LDFLAGS="-L%{_libdir}"
35
36
37%install
38rm -rf $RPM_BUILD_ROOT
39make install DESTDIR=$RPM_BUILD_ROOT
40
41## Install the config file
42install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/%{httpd}/conf.d
43install -p -m 644 %SOURCE1 $RPM_BUILD_ROOT%{_sysconfdir}/%{httpd}/conf.d/
44
45
46%clean
47rm -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
Note: See TracBrowser for help on using the repository browser.