File python-Nevow.spec of Package python-Nevow

#
# spec file for package python-Nevow
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:           python-Nevow
Version:        0.10.0
Release:        0
Url:            http://divmod.org/trac/wiki/DivmodNevow
Summary:        Web Application Construction Kit
License:        MIT
Group:          Development/Languages/Python
Source:         http://pypi.python.org/packages/source/N/Nevow/Nevow-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python-devel
BuildRequires:  python-Twisted
BuildRequires:  python-xml
Requires:       python-Twisted
Requires:       python-xml
Provides:       python-nevow = %{version}
Obsoletes:      python-nevow < %{version}
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch:      noarch
%endif

%description
Divmod Nevow is a web application construction kit written in Python. It is
designed to allow the programmer to express as much of the view logic as
desired in Python, and includes a pure Python XML expression syntax named stan
to facilitate this. However it also provides rich support for designer-edited
templates, using a very small XML attribute language to provide bi-directional
template manipulation capability.

Nevow also includes Divmod Athena, a "two way web" or "COMET" implementation,
providing a two-way bridge between Python code on the server and JavaScript
code on the client. Modular portions of a page, known as "athena fragments" in
the server python and "athena widgets" in the client javascript, can be
individually developed and placed on any Nevow-rendered page with a small
template renderer. Athena abstracts the intricacies of HTTP communication,
session security, and browser-specific bugs behind a simple remote-method-call
interface, where individual widgets or fragments can call remote methods on
their client or server peer with one method: "callRemote".

%prep
%setup -q -n Nevow-%{version}

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}

%files
%defattr(-,root,root,-)
%doc examples ChangeLog LICENSE README
%{_bindir}/nit
%{_bindir}/nevow-xmlgettext
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by