Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > adcf98a29d9e3827cc5fa3164d2eda30 > files > 2

python-cjson-1.0.5-5mdv2010.0.src.rpm

# TODO try to integrate the testsuite ?

%define name python-cjson
%define version 1.0.5
%define release %mkrel 5

Summary: A very fast JSON encoder/decoder for Python 
Name: %{name}
Version: %{version}
Release: %{release}
Source0: http://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
License: LGPL
Group:   Development/Python
Url:     http://www.ag-projects.com/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: python-devel
Requires:      python
%description
This module implements a very fast JSON encoder/decoder for Python.

JSON stands for JavaScript Object Notation and is a text based lightweight 
data exchange format which is easy for humans to read/write and for machines 
to parse/generate. JSON is completely language independent and has multiple 
implementations in most of the programming languages, making it ideal for 
data exchange and storage.

The module is written in C and it is up to 250 times faster when compared 
to the other python JSON implementations which are written directly in python. 
This speed gain varies with the complexity of the data and the operation and 
is the the range of 10-200 times for encoding operations and in the range of 
100-250 times for decoding operations.

%prep
%setup -q

%build

%install
rm -rf %{buildroot}
python setup.py install --root %{buildroot}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README ChangeLog
%{py_platsitedir}/cjson.so
%{py_platsitedir}/*egg-info



%changelog
* Tue Sep 15 2009 Thierry Vignaud <tvignaud@mandriva.com> 1.0.5-5mdv2010.0
+ Revision: 442076
- rebuild

* Fri Aug 01 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.0.5-4mdv2009.0
+ Revision: 259525
- rebuild

* Thu Jul 24 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.0.5-3mdv2009.0
+ Revision: 247395
- rebuild

* Wed Jan 09 2008 Michael Scherer <misc@mandriva.org> 1.0.5-1mdv2008.1
+ Revision: 147125
- import python-cjson