rpms/python-cjson/EL-5 python-cjson.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Toshio くらとみ (toshio) fedora-extras-commits at redhat.com
Tue Apr 8 00:35:16 UTC 2008


Author: toshio

Update of /cvs/pkgs/rpms/python-cjson/EL-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv7355

Modified Files:
	.cvsignore sources 
Added Files:
	python-cjson.spec 
Log Message:

* Thu Mar 20 2008 Toshio Kuratomi <toshio at fedoraproject.org> - 1.0.5-1
- Initial Fedora build.



--- NEW FILE python-cjson.spec ---
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}

Name:           python-cjson
Version:        1.0.5
Release:        1%{?dist}
Summary:        Fast JSON encoder/decoder for Python

Group:          Development/Languages
License:        LGPLv2+
URL:            http://pypi.python.org/pypi/python-cjson
Source0:        http://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  python-devel

%description
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
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build


%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT

 
%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc LICENSE README ChangeLog
# For arch-specific packages: sitearch
%{python_sitearch}/*


%changelog
* Thu Mar 20 2008 Toshio Kuratomi <toshio at fedoraproject.org> - 1.0.5-1
- Initial Fedora build.


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/python-cjson/EL-5/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	7 Apr 2008 22:09:13 -0000	1.1
+++ .cvsignore	8 Apr 2008 00:34:40 -0000	1.2
@@ -0,0 +1 @@
+python-cjson-1.0.5.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/python-cjson/EL-5/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	7 Apr 2008 22:09:13 -0000	1.1
+++ sources	8 Apr 2008 00:34:40 -0000	1.2
@@ -0,0 +1 @@
+4d55b66ecdf0300313af9d030d9644a3  python-cjson-1.0.5.tar.gz




More information about the fedora-extras-commits mailing list