File python-WSGIutils.spec of Package python-WSGIutils
#norootforbuild
#
%define real_name WSGIUtils
#
#
Name: python-%{real_name}
Group: Development/Libraries/Python
Version: 0.7
Release: 0
License: BSD3c
Summary: A collection of tools for internationalizing Python applications
Autoreqprov: on
Source: %{real_name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-setuptools
Url: http://babel.edgewall.org/
%{py_requires}
%define py_vers %(%{__python} -c 'import sys; print int(10*float(sys.version[:3]))')
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
BuildArch: noarch
%else
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True)")}
%endif
%description
WSGIUtils is a package of standalone utility libraries that ease the development of simple WSGI programs.
The package is divided into two main components which can be used individualy or in combination.
wsgiServer is a multi-threaded WSGI web server based on SimpleHTTPServer.
wsgiAdaptor is a simple WSGI application that provides basic authentication, signed cookies and persistent sessions.
The functionality provided is limited at the moment, patches to add new features and address defects are most welcome.
%prep
%setup -n %{real_name}-%{version}
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
%clean
rm -rf $RPM_BUILD_ROOT
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc README.txt
%changelog
* Sun Nov 22 2009 - Ciaran Farrell <cfarrell1980@gmail.com> - 0.7
- Initial build for tg21