File python-django-json-rpc.spec of Package python-django-json-rpc
%define modname django-json-rpc
Name: python-%{modname}
Version: 0.1
Release: 3
Summary: A Simple JSON-RPC Implementation for Django
URL: http://github.com/samuraisam/django-json-rpc/tree/master
License: MIT
Group: Development/Libraries/Python
Source: %{modname}-%{version}.tar.bz2
Patch: modulename.patch
BuildRoot: %{_tmppath}/%{name}-buildroot
%{py_requires}
BuildRequires: python-devel
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
BuildArch: noarch
%endif
%description
A basic JSON-RPC Implementation for your Django-powered sites.
Features:
* Simple, pythonic API
* Support for Django authentication
* Mostly supports JSON-RPC 1.1 spec
* Proxy to test your JSON Service
Authors:
--------
Samuel Sutch <samuraiblog@gmail.com>
%prep
%setup -q -n %{modname}-%{version}
%patch -p1
%build
export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
%clean
rm -rf %{buildroot}
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc COPYING README
%changelog