python-simplejson/python-simplejson.spec

158 lines
5.6 KiB
RPMSpec
Raw Permalink Normal View History

Name: python-simplejson
Version: 3.7.2
Release: 1mamba
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
Source: http://pypi.python.org/packages/source/s/simplejson/simplejson-%{version}.tar.gz
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).
%if "%{?with_pyver}"
%pyver_package
%endif
%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
CFLAGS="%{optflags}" %{__python} setup.py build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \
-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}"
%files %{?pyappend}
%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*
%if "%{?pyappend}" == ""
%{python_sitearch}/simplejson/_speedups.so
%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
%dir %{python_sitearch}/simplejson/tests
%{python_sitearch}/simplejson/tests/*.py*
%doc LICENSE.txt
%changelog
* Tue May 26 2015 Automatic Build System <autodist@mambasoft.it> 3.7.2-1mamba
- automatic version update by autodist
* Sun May 17 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 3.6.5-2mamba
- added python3 subpackage
* Sun Nov 16 2014 Automatic Build System <autodist@mambasoft.it> 3.6.5-1mamba
- automatic update by autodist
* Mon Oct 13 2014 Automatic Build System <autodist@mambasoft.it> 3.6.4-1mamba
- automatic update by autodist
* Wed Sep 10 2014 Automatic Build System <autodist@mambasoft.it> 3.6.3-1mamba
- automatic version update by autodist
* Mon Aug 11 2014 Automatic Build System <autodist@mambasoft.it> 3.6.2-1mamba
- automatic update by autodist
* Wed Jul 23 2014 Automatic Build System <autodist@mambasoft.it> 3.6.0-1mamba
- automatic update by autodist
* Fri Jul 11 2014 Automatic Build System <autodist@mambasoft.it> 3.5.3-1mamba
- automatic update by autodist
* Mon May 26 2014 Automatic Build System <autodist@mambasoft.it> 3.5.2-1mamba
- automatic update by autodist
* 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