Log In
Log In
Places
All Projects
Status Monitor
Collapse sidebar
matrix-synapse
python-simplejson
python-simplejson.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-simplejson.spec of Package python-simplejson
%if 0%{?rhel} && 0%{?rhel} < 6 %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %endif # Python3 support is 3.3+ (which was introduced in Fedora 18) %if 0%{?fedora} && 0%{?fedora} >= 18 %global with_python3 1 %endif Name: python-simplejson Version: 3.7.3 Release: 1%{?dist} Summary: Simple, fast, extensible JSON encoder/decoder for Python Group: System Environment/Libraries # The main code is licensed MIT. # The docs include jquery which is licensed MIT or GPLv2 License: (MIT or AFL) and (MIT or GPLv2) URL: http://undefined.org/python/#simplejson Source0: http://pypi.python.org/packages/source/s/simplejson/simplejson-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python2-devel BuildRequires: python-setuptools BuildRequires: python-nose BuildRequires: python-sphinx %if 0%{?with_python3} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-nose %endif # with_python3 # we don't want to provide private python extension libs %global __provides_exclude_from ^(%{python_sitearch}|%{python3_sitearch}).*\\.so$ %description simplejson is a simple, fast, complete, correct and extensible JSON <http://json.org> encoder and decoder for Python 2.5+. It is pure Python code with no dependencies, but includes an optional C extension for a serious speed boost. The encoder may be subclassed to provide serialization in any kind of situation, without any special support by the objects to be serialized (somewhat like pickle). The decoder can handle incoming JSON strings of any specified encoding (UTF-8 by default). simplejson is the externally maintained development version of the json library included with Python 2.6 and Python 3.0, but maintains backwards compatibility with Python 2.5. It gets updated more regularly than the json module in the python stdlib. %if 0%{?with_python3} %package -n python3-simplejson Summary: Simple, fast, extensible JSON encoder/decoder for Python3 Group: System Environment/Libraries %description -n python3-simplejson simplejson is a simple, fast, complete, correct and extensible JSON <http://json.org> encoder and decoder for Python 2.5+ and python3.3+ It is pure Python code with no dependencies, but includes an optional C extension for a serious speed boost. The encoder may be subclassed to provide serialization in any kind of situation, without any special support by the objects to be serialized (somewhat like pickle). The decoder can handle incoming JSON strings of any specified encoding (UTF-8 by default). simplejson is the externally maintained development version of the json library included with Python 2.6 and Python 3.0, but maintains backwards compatibility with Python 2.5. It gets updated more regularly than the json module in the python stdlib. %endif # with_python3 %prep %setup -q -n simplejson-%{version} %if 0%{?with_python3} rm -rf %{py3dir} cp -a . %{py3dir} %endif # with_python3 %build %{__python} setup.py build ./scripts/make_docs.py %if 0%{?with_python3} pushd %{py3dir} %{__python3} setup.py build popd %endif # with_python3 %install rm -rf %{buildroot} %{__python} setup.py install --skip-build --root=%{buildroot} rm docs/.buildinfo rm docs/.nojekyll %if 0%{?with_python3} pushd %{py3dir} %{__python3} setup.py install --skip-build --root=%{buildroot} popd %endif # with_python3 %check nosetests -q %if 0%{?with_python3} pushd %{py3dir} nosetests-%{python3_version} -q popd %endif # with_python3 %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc docs LICENSE.txt %{python_sitearch}/* %if 0%{?with_python3} %files -n python3-simplejson %defattr(-,root,root,-) %doc LICENSE.txt %{python3_sitearch}/* %endif # python3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Contact
Support
@OBShq
The Open Build Service is an
openSUSE project
.
Log In
Places
Places
All Projects
Status Monitor