File python-rpc4django.spec of Package python-rpc4django

#
# spec file for package python-rpc4django
#
# Copyright (c) 2013 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-rpc4django
Version:        0.2.4
Release:        0
Url:            http://www.davidfischer.name/rpc4django
Summary:        Handles JSONRPC and XMLRPC requests easily with Django
License:        BSD-2-Clause
Group:          Development/Languages/Python
Source:         https://pypi.python.org/packages/source/r/rpc4django/rpc4django-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python-devel
Requires:       python-django
%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
RPC4Django is an XMLRPC and JSONRPC server for Django powered projects. 
Simply plug it into any existing Django project and you can make your 
methods available via XMLRPC and JSONRPC. In addition, it can display nice 
documentation about the methods it makes available in a more customizable 
way than DocXMLRPCServer_. 

RPC4Django is not affiliated with the `Django Project`_.

.. _DocXMLRPCServer: http://docs.python.org/library/docxmlrpcserver.html
.. _Django Project: http://djangoproject.com

Features
--------

- Detects request type (JSONRPC or XMLRPC) based on content
- Easy identification of RPC methods via a decorator
- Pure python and requires no external modules except Django
- Customizable RPC method documentation including reST_ 
- Supports XMLRPC and JSONRPC introspection
- Supports method signatures (unlike SimpleXMLRPCServer)
- Easy installation and integration with existing Django projects
- Licensed for inclusion in open source and commercial software
- Ties in with Django's `authentication and authorization`_

.. _reST: http://docutils.sourceforge.net/rst.html
.. _authentication and authorization: http://docs.djangoproject.com/en/dev/topics/auth

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

%build
python setup.py build

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

%files
%defattr(-,root,root,-)
%doc docs/_build/html/_sources/* README.rst LICENSE.rst
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by