2024-01-05 16:39:40 +01:00
|
|
|
Name: python-simplejson
|
2024-01-05 16:39:41 +01:00
|
|
|
Version: 3.12.0
|
2024-01-05 16:39:41 +01:00
|
|
|
Release: 1mamba
|
2024-01-05 16:39:40 +01:00
|
|
|
Summary: Simple, fast, extensible JSON encoder/decoder for Python
|
|
|
|
Group: System/Libraries/Python
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Automatic Build System <autodist@mambasoft.it>
|
|
|
|
URL: http://undefined.org/python/#simplejson
|
2024-01-05 16:39:41 +01:00
|
|
|
Source: http://pypi.debian.net/simplejson/simplejson-%{version}.tar.gz
|
2024-01-05 16:39:40 +01:00
|
|
|
License: MIT
|
|
|
|
Requires: python >= %python_version
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libpython-devel >= %python_version
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: python-nose
|
|
|
|
BuildRequires: python-setuptools-devel
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%description
|
|
|
|
simplejson is a simple, fast, complete, correct and extensible JSON <http://json.org> encoder and decoder for Python 2.4+. It is pure Python code with no dependencies, but includes an optional C extension for a serious speed boost.
|
|
|
|
simplejson was formerly known as simple_json, but changed its name to comply with PEP 8 module naming guidelines.
|
|
|
|
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).
|
|
|
|
|
2024-01-05 16:39:41 +01:00
|
|
|
%if "%{?with_pyver}"
|
|
|
|
%pyver_package
|
|
|
|
%endif
|
|
|
|
|
2024-01-05 16:39:40 +01:00
|
|
|
%prep
|
|
|
|
%setup -q -n simplejson-%{version}
|
|
|
|
|
|
|
|
for p in $(find . -name "*.py"); do
|
|
|
|
sed -i '1s|#!/usr/bin/python|#!%{__python}|' $p
|
|
|
|
sed -i '1s|#!/usr/bin/env python|#!/usr/bin/env %{__python}|' $p
|
|
|
|
sed -i '1s|#!python|#!/usr/bin/env %{__python}|' $p
|
|
|
|
done
|
|
|
|
|
|
|
|
%build
|
2024-01-05 16:39:41 +01:00
|
|
|
CFLAGS="%{optflags}" %{__python} setup.py build
|
2024-01-05 16:39:40 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-05 16:39:41 +01:00
|
|
|
%{__python} setup.py install \
|
2024-01-05 16:39:40 +01:00
|
|
|
-O1 \
|
|
|
|
--skip-build \
|
|
|
|
--root="%{buildroot}" \
|
|
|
|
--install-headers=%{_includedir}/python \
|
|
|
|
--install-lib=%{python_sitearch} \
|
|
|
|
--single-version-externally-managed
|
|
|
|
|
|
|
|
%check
|
|
|
|
nosetests -q
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-05 16:39:41 +01:00
|
|
|
%files %{?pyappend}
|
2024-01-05 16:39:40 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{python_sitearch}/simplejson-%{version}-py%{python_version}.egg-info
|
|
|
|
%{python_sitearch}/simplejson-%{version}-py%{python_version}.egg-info/PKG-INFO
|
|
|
|
%{python_sitearch}/simplejson-%{version}-py%{python_version}.egg-info/*.txt
|
|
|
|
#%{python_sitearch}/simplejson-%{version}-py%{python_version}.egg-info/zip-safe
|
|
|
|
%dir %{python_sitearch}/simplejson
|
|
|
|
%{python_sitearch}/simplejson/*.py*
|
2024-01-05 16:39:41 +01:00
|
|
|
%if "%{?pyappend}" == ""
|
2024-01-05 16:39:40 +01:00
|
|
|
%{python_sitearch}/simplejson/_speedups.so
|
2024-01-05 16:39:41 +01:00
|
|
|
%else
|
|
|
|
%dir %{python_sitearch}/simplejson/__pycache__
|
|
|
|
%{python_sitearch}/simplejson/__pycache__/*
|
|
|
|
%{python_sitearch}/simplejson/_speedups.cpython-*.so
|
|
|
|
%dir %{python_sitearch}/simplejson/tests/__pycache__
|
|
|
|
%{python_sitearch}/simplejson/tests/__pycache__/*
|
|
|
|
%endif
|
2024-01-05 16:39:40 +01:00
|
|
|
%dir %{python_sitearch}/simplejson/tests
|
|
|
|
%{python_sitearch}/simplejson/tests/*.py*
|
|
|
|
%doc LICENSE.txt
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 16:39:41 +01:00
|
|
|
* Mon Nov 06 2017 Automatic Build System <autodist@mambasoft.it> 3.12.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:39:41 +01:00
|
|
|
* Wed Aug 09 2017 Automatic Build System <autodist@mambasoft.it> 3.11.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:39:41 +01:00
|
|
|
* Sat Oct 29 2016 Automatic Build System <autodist@mambasoft.it> 3.10.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:39:41 +01:00
|
|
|
* Sat Oct 22 2016 Automatic Build System <autodist@mambasoft.it> 3.9.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:39:41 +01:00
|
|
|
* Sun Mar 13 2016 Automatic Build System <autodist@mambasoft.it> 3.8.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:39:41 +01:00
|
|
|
* Tue May 26 2015 Automatic Build System <autodist@mambasoft.it> 3.7.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:39:41 +01:00
|
|
|
* Sun May 17 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 3.6.5-2mamba
|
|
|
|
- added python3 subpackage
|
|
|
|
|
2024-01-05 16:39:41 +01:00
|
|
|
* Sun Nov 16 2014 Automatic Build System <autodist@mambasoft.it> 3.6.5-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-05 16:39:41 +01:00
|
|
|
* Mon Oct 13 2014 Automatic Build System <autodist@mambasoft.it> 3.6.4-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-05 16:39:41 +01:00
|
|
|
* Wed Sep 10 2014 Automatic Build System <autodist@mambasoft.it> 3.6.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:39:41 +01:00
|
|
|
* Mon Aug 11 2014 Automatic Build System <autodist@mambasoft.it> 3.6.2-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-05 16:39:40 +01:00
|
|
|
* Wed Jul 23 2014 Automatic Build System <autodist@mambasoft.it> 3.6.0-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-05 16:39:40 +01:00
|
|
|
* Fri Jul 11 2014 Automatic Build System <autodist@mambasoft.it> 3.5.3-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-05 16:39:40 +01:00
|
|
|
* Mon May 26 2014 Automatic Build System <autodist@mambasoft.it> 3.5.2-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-05 16:39:40 +01:00
|
|
|
* Thu Apr 10 2014 Automatic Build System <autodist@mambasoft.it> 3.4.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Mar 11 2014 Automatic Build System <autodist@mambasoft.it> 3.3.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Thu Feb 06 2014 Automatic Build System <autodist@mambasoft.it> 3.3.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Oct 08 2013 Automatic Build System <autodist@mambasoft.it> 3.3.1-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 3.3.0-1mamba
|
|
|
|
- python 2.7 mass rebuild
|
|
|
|
|
|
|
|
* Thu May 02 2013 Automatic Build System <autodist@mambasoft.it> 3.2.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Apr 14 2013 Automatic Build System <autodist@mambasoft.it> 3.1.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Mar 25 2013 Automatic Build System <autodist@mambasoft.it> 3.1.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Thu Feb 28 2013 Automatic Build System <autodist@mambasoft.it> 3.1.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Jan 15 2013 Automatic Build System <autodist@mambasoft.it> 3.0.7-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Jan 01 2013 Automatic Build System <autodist@mambasoft.it> 3.0.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Thu Oct 11 2012 Automatic Build System <autodist@mambasoft.it> 2.6.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Wed Aug 08 2012 Automatic Build System <autodist@mambasoft.it> 2.6.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Jun 25 2011 Automatic Build System <autodist@mambasoft.it> 2.1.6-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Mon Nov 29 2010 gil <puntogil@libero.it> 2.1.1-2mamba
|
|
|
|
- rebuilt devel
|
|
|
|
|
|
|
|
* Sun Oct 03 2010 gil <puntogil@libero.it> 2.1.1-1mamba
|
|
|
|
- update to 2.1.1
|
|
|
|
|
|
|
|
* Sun Jan 31 2010 gil <puntogil@libero.it> 2.0.9-1mamba
|
|
|
|
- package created by autospec
|