Author: patrys                       Date: Fri Oct  5 13:42:51 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- initial PLD release
- provided by Kamil Jakubowski <[EMAIL PROTECTED]>
- adapterized

---- Files affected:
SPECS:
   apache-mod_wsgi.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/apache-mod_wsgi.spec
diff -u /dev/null SPECS/apache-mod_wsgi.spec:1.1
--- /dev/null   Fri Oct  5 15:42:51 2007
+++ SPECS/apache-mod_wsgi.spec  Fri Oct  5 15:42:46 2007
@@ -0,0 +1,89 @@
+# $Revision$, $Date$
+%define                mod_name        wsgi
+%define        apxs            /usr/sbin/apxs
+Summary:       WSGI interface for the Apache Web server
+Summary(pl.UTF-8):     Interfejs WSGI dla serwera WWW Apache
+Name:          apache-mod_%{mod_name}
+Version:       1.0
+Release:       1
+License:       Apache Group License
+Group:         Networking/Daemons
+Source0:       
http://modwsgi.googlecode.com/files/mod_%{mod_name}-%{version}.tar.gz
+# Source0-md5: 44e20174c127a50a75f040f881b0a52c
+Source1:       %{name}.conf
+URL:           http://code.google.com/p/modwsgi/
+BuildRequires: apache >= 2.0.52-7
+BuildRequires: apache-apxs >= 2.0.52-7
+BuildRequires: apache-devel >= 2.0.52-7
+BuildRequires: apr-devel >= 1:1.0.0
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: python-devel >= 2.3
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires:      apache(modules-api) = %apache_modules_api
+Requires:      apr >= 1:1.0.0
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
+%define                _sysconfdir     %(%{apxs} -q SYSCONFDIR 2>/dev/null)
+
+%description
+The mod_wsgi adapter is an Apache module that provides a WSGI
+compliant interface for hosting Python based web applications within
+Apache. The adapter is written completely in C code against the Apache
+C runtime and for hosting WSGI applications within Apache has a lower
+overhead than using existing WSGI adapters for mod_python or CGI.
+
+%description -l pl.UTF-8
+Adapter mod_wsgi jest modułem udostępniajacym interfejs WSGI dla
+aplikacji WWW napisanych w języku Python i osadzonych w serwerze
+Apache. Adapter jest w całosci napisany w języku C w oparciu o
+bibliotekę runtime Apache i ma mniejsze wymagania niż w przypadku
+używania istniejących adapterów WSGI dla mod_python lub CGI.
+
+%prep
+%setup -q -n mod_%{mod_name}-%{version}
+
+%build
+%{__aclocal}
+%{__autoconf}
+%configure \
+       --with-apxs=%{apxs}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf}
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/61_mod_wsgi.conf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%service -q httpd restart
+
+%postun
+if [ "$1" = "0" ]; then
+       %service -q httpd restart
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) 
%{_sysconfdir}/httpd.conf/*_mod_%{mod_name}.conf
+%attr(755,root,root) %{_pkglibdir}/*.so
+
+%define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <[EMAIL PROTECTED]>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2007/10/05 13:42:46  patrys
+- initial PLD release
+- provided by Kamil Jakubowski <[EMAIL PROTECTED]>
+- adapterized
+
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to