Package python-module-fapws2: Specfile

%define version 0.3
%define release alt2
%setup_python_module fapws2

Summary: Fast Asynchronous Python Web Server
Name: %packagename
Version: %version
Release: %release
Source0: %modulename-%version.tar
License: BSD-style
Group: Development/Python

# Automatically added by buildreq on Wed Sep 24 2008
BuildRequires: libevent1.4-devel python-devel

%description
This is a python web server using the wonderfull libevent library.
Thus this is yet an another asynchronous web server like Medusa, Twisted, Apricot.
And fapws is a WSGI compliant web server.

You can easly install them a memory limited machines (like VDS for example).

%prep
%setup  -q -n %modulename-%version

%build
env CFLAGS="$RPM_OPT_FLAGS" LIBEVENT_SRC=/usr/include/libevent1.4-internal %__python setup.py build

%install
%__python setup.py install --root=%buildroot --optimize=2 --record=INSTALLED_FILES

%files -f INSTALLED_FILES
%defattr(-,root,root)
%python_sitelibdir/%modulename

%changelog
* Wed Sep 24 2008 Ivan Fedorov <ns@altlinux.org> 0.3-alt2
- fixate building on x86_64

* Tue Sep 23 2008 Ivan Fedorov <ns@altlinux.org> 0.3-alt1
- Initial build for ALT Linux