Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 2073f75deccb35cd5a99634b252c5a44 > files > 3

python-cjson-1.0.5-7.mga3.src.rpm

# TODO try to integrate the testsuite ?

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

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
Patch0: python-cjson-1.0.5-CVE-2010-1666.patch
License: LGPL
Group:   Development/Python
Url:     http://www.ag-projects.com/
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
%patch0 -p1

%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

* Sun Jan 13 2013 umeabot <umeabot> 1.0.5-7.mga3
+ Revision: 378593
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Thu Jul 14 2011 ennael <ennael> 1.0.5-6.mga2
+ Revision: 123916
- remove buildroot definition
- imported package python-cjson