Blame SPECS/python-simplejson.spec

9ffc87
%{?scl:%scl_package python-simplejson}
9ffc87
%{!?scl:%global pkg_name %{name}}
9ffc87
9ffc87
Name:           %{?scl_prefix}python-simplejson
9ffc87
9ffc87
Version:        3.2.0
ad780e
Release:        4%{?dist}
9ffc87
Summary:        Simple, fast, extensible JSON encoder/decoder for Python
9ffc87
9ffc87
Group:          System Environment/Libraries
9ffc87
# The main code is licensed MIT.
9ffc87
# The docs include jquery which is licensed MIT or GPLv2
9ffc87
License:        (MIT or AFL) and (MIT or GPLv2)
9ffc87
URL:            http://undefined.org/python/#simplejson
9ffc87
Source0:        http://pypi.python.org/packages/source/s/simplejson/simplejson-%{version}.tar.gz
9ffc87
BuildRoot:      %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n)
9ffc87
5b195c
# Fix for CVE-2014-461
5b195c
Patch0:         add-boundary-check.patch
5b195c
9ffc87
BuildRequires:  %{?scl_prefix}python2-devel
9ffc87
BuildRequires:  %{?scl_prefix}python-setuptools
9ffc87
BuildRequires:  %{?scl_prefix}python-nose
9ffc87
BuildRequires:  %{?scl_prefix}python-sphinx
9ffc87
9ffc87
%description
9ffc87
simplejson is a simple, fast, complete, correct and extensible JSON
9ffc87
<http://json.org> encoder and decoder for Python 2.5+. It is pure Python code
9ffc87
with no dependencies, but includes an optional C extension for a serious speed
9ffc87
boost.
9ffc87
9ffc87
The encoder may be subclassed to provide serialization in any kind of
9ffc87
situation, without any special support by the objects to be serialized
9ffc87
(somewhat like pickle).
9ffc87
9ffc87
The decoder can handle incoming JSON strings of any specified encoding (UTF-8
9ffc87
by default).
9ffc87
9ffc87
simplejson is the externally maintained development version of the json library
9ffc87
included with Python 2.6 and Python 3.0, but maintains backwards compatibility
9ffc87
with Python 2.5.  It gets updated more regularly than the json module in the
9ffc87
python stdlib.
9ffc87
9ffc87
9ffc87
%prep
9ffc87
%setup -q -n simplejson-%{version}
9ffc87
5b195c
%patch0 -p1
5b195c
9ffc87
9ffc87
%build
9ffc87
%{?scl:scl enable %{scl} - << \EOF}
9ffc87
%{__python} setup.py build
9ffc87
./scripts/make_docs.py
9ffc87
%{?scl:EOF}
9ffc87
9ffc87
%install
9ffc87
rm -rf %{buildroot}
9ffc87
%{?scl:scl enable %{scl} "}
9ffc87
%{__python} setup.py install --skip-build --root=%{buildroot}
9ffc87
%{?scl:"}
9ffc87
9ffc87
rm docs/.buildinfo
9ffc87
rm docs/.nojekyll
9ffc87
9ffc87
%check
9ffc87
%{?scl:scl enable %{scl} "}
9ffc87
nosetests -q
9ffc87
%{?scl:"}
9ffc87
9ffc87
%clean
9ffc87
rm -rf %{buildroot}
9ffc87
9ffc87
9ffc87
%files
9ffc87
%defattr(-,root,root,-)
9ffc87
%doc docs LICENSE.txt
9ffc87
%{python_sitearch}/*
9ffc87
9ffc87
%changelog
ad780e
* Thu May 24 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.2.0-4
ad780e
- Rebuild for multi-arch bootstrap
ad780e
5b195c
* Mon May 18 2015 Matej Stuchlik <mstuchli@redhat.com> - 3.2.0-3
5b195c
- Fix CVE-2014-461, add boundary checks
5b195c
Resolves: rhbz#1222534
5b195c
9ffc87
* Fri Nov 08 2013 Robert Kuska <rkuska@redhat.com> - 3.2.0-2
9ffc87
- Bump release number to avoid conflict with rhel-7.0
9ffc87
9ffc87
* Fri Nov 08 2013 Robert Kuska <rkuska@redhat.com> - 3.2.0-1
9ffc87
- Update to 3.2.0
9ffc87
9ffc87
* Tue May 07 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 3.0.5-2
9ffc87
- Rebuild to generate bytecode properly after fixing rhbz#956289
9ffc87
9ffc87
* Thu Jan 31 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 3.0.5-1
9ffc87
- Updated to version 3.0.5.
9ffc87
9ffc87
* Mon Dec 03 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 2.6.0-4
9ffc87
- Rebuilt for PPC.
9ffc87
9ffc87
* Wed Sep 19 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 2.6.0-3
9ffc87
- Rebuilt for SCL.
9ffc87
9ffc87
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.0-2
9ffc87
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
9ffc87
9ffc87
* Fri Jun 29 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 2.6.0-1
9ffc87
- Update to 2.6.0 which changes some messages thrown by exceptions to match
9ffc87
  with json module in python3.3 stdlib.  Probably safe for older releases but
9ffc87
  the python3 version there is 3.2 so there's also not any real need yet.
9ffc87
9ffc87
* Tue May 15 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 2.5.2-1
9ffc87
- Update to 2.5.2
9ffc87
- This update adds new PI but should be backwards compatible
9ffc87
9ffc87
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0-2
9ffc87
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
9ffc87
9ffc87
* Fri Dec 9 2011 Toshio Kuratomi <toshoi@fedoraproject.org> - 2.3.0-1
9ffc87
- Update to 2.3.0 -- behaviour changing bugfixes
9ffc87
9ffc87
* Mon May 9 2011 Toshio Kuratomi <toshoi@fedoraproject.org> - 2.1.6-1
9ffc87
- Update to 2.1.6 for a segfault fix
9ffc87
9ffc87
* Sat Apr 30 2011 Toshio Kuratomi <toshoi@fedoraproject.org> - 2.1.5-1
9ffc87
- Update to 2.1.5, trivial upstream release (change makes more compact output)
9ffc87
9ffc87
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.3-2
9ffc87
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
9ffc87
9ffc87
* Tue Jan 18 2011 Toshio Kuratomi <toshoi@fedoraproject.org> - 2.1.3-1
9ffc87
- Update to 2.1.3
9ffc87
9ffc87
* Mon Dec 20 2010 Toshio Kuratomi <toshoi@fedoraproject.org> - 2.1.2-1
9ffc87
- Update to upstream 2.1.2, a bugfix release with four small, self-contained
9ffc87
  fixes.
9ffc87
9ffc87
* Wed Oct 20 2010 Toshio Kuratomi <toshoi@fedoraproject.org> - 2.1.1-4
9ffc87
- Simplify the %%files section to own the tests directory
9ffc87
- Use the fedora documented filter functions to filter provides
9ffc87
9ffc87
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 2.1.1-3
9ffc87
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
9ffc87
9ffc87
* Wed Jun 30 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 2.1.1-2
9ffc87
- Filter unnecessary provides
9ffc87
- License tag update
9ffc87
- Minor spec file cleanups
9ffc87
9ffc87
* Mon Jun 21 2010 Kyle VanderBeek <kylev@kylev.com> - 2.1.1-1
9ffc87
- Update to 2.1.1
9ffc87
9ffc87
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.9-3
9ffc87
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
9ffc87
9ffc87
* Fri Jun  5 2009 Kyle VanderBeek <kylev@kylev.com> - 2.0.9-2
9ffc87
- Remove ill-advised gcc BuildRequires
9ffc87
9ffc87
* Thu Jun  4 2009 Kyle VanderBeek <kylev@kylev.com> - 2.0.9-1
9ffc87
- Update to 2.0.9
9ffc87
- Make sure to require gcc to the speedups get compiled
9ffc87
- Fix description since we're not "pure" python
9ffc87
- Change to pypi instead of cheesehop
9ffc87
9ffc87
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.7-2
9ffc87
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
9ffc87
9ffc87
* Tue Jan 06 2009 Luke Macken <lmacken@redhat.com> 2.0.7-1
9ffc87
- Update to 2.0.7
9ffc87
9ffc87
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.0.3-3
9ffc87
- Rebuild for Python 2.6
9ffc87
9ffc87
* Thu Oct 23 2008 Luke Macken <lmacken@redhat.com> 2.0.3-2
9ffc87
- Use nose to run the simplejson test suite
9ffc87
9ffc87
* Mon Oct 20 2008 Tom "spot" Callaway <tcallawa@redhat.com> 2.0.3-1
9ffc87
- update to 2.0.3
9ffc87
9ffc87
* Wed Oct 01 2008 Luke Macken <lmacken@redhat.com> - 2.0.1-1
9ffc87
- Update to 2.0.1, which contains many optimizations and bugfixes
9ffc87
9ffc87
* Wed Sep 24 2008 Luke Macken <lmacken@redhat.com> - 1.9.3-1
9ffc87
- Update to 1.9.3, which includes a significant decoding speed boost, and
9ffc87
  various bug fixes.
9ffc87
9ffc87
* Tue May 06 2008 Luke Macken <lmacken@redhat.com> - 1.9.1-1
9ffc87
- Update to 1.9.1
9ffc87
9ffc87
* Wed Apr 02 2008 Luke Macken <lmacken@redhat.com> - 1.8.1-1
9ffc87
- Update to 1.8.1
9ffc87
9ffc87
* Thu Feb 28 2008 Luke Macken <lmacken@redhat.com> - 1.7.4-1
9ffc87
- Update to 1.7.4
9ffc87
9ffc87
* Fri Feb  8 2008 Luke Macken <lmacken@redhat.com> - 1.7.3-3
9ffc87
- Rebuild for gcc 4.3
9ffc87
9ffc87
* Wed Oct 24 2007 Luke Macken <lmacken@redhat.com> - 1.7.3-2
9ffc87
- Include the LICENSE.txt
9ffc87
9ffc87
* Wed Oct  3 2007 Luke Macken <lmacken@redhat.com> - 1.7.3-1
9ffc87
- 1.7.3
9ffc87
9ffc87
* Sun Sep  2 2007 Luke Macken <lmacken@redhat.com> - 1.7.1-3
9ffc87
- Update for python-setuptools changes in rawhide
9ffc87
9ffc87
* Tue Aug 21 2007 Luke Macken <lmacken@redhat.com> - 1.7.1-2
9ffc87
- Rebuild
9ffc87
9ffc87
* Sun Jul  8 2007 Luke Macken <lmacken@redhat.com> - 1.7.1-1
9ffc87
- 1.7.1
9ffc87
9ffc87
* Wed Mar 21 2007 Luke Macken <lmacken@redhat.com> - 1.7-2
9ffc87
- Use python_sitearch instead of sitelib
9ffc87
9ffc87
* Tue Mar 20 2007 Luke Macken <lmacken@redhat.com> - 1.7-1
9ffc87
- 1.7 (Bug #233212)
9ffc87
9ffc87
* Sat Mar  3 2007 Luke Macken <lmacken@redhat.com> - 1.5
9ffc87
- 1.5
9ffc87
9ffc87
* Sat Dec  9 2006 Luke Macken <lmacken@redhat.com> - 1.4-4
9ffc87
- Add python-devel to BuildRequires
9ffc87
9ffc87
* Sat Dec  9 2006 Luke Macken <lmacken@redhat.com> - 1.4-2
9ffc87
- Rebuild for new python
9ffc87
9ffc87
* Fri Nov 24 2006 Luke Macken <lmacken@redhat.com> - 1.4-1
9ffc87
- 1.4
9ffc87
9ffc87
* Sun Sep  3 2006 Luke Macken <lmacken@redhat.com> - 1.3-4
9ffc87
- Rebuild for FC6
9ffc87
9ffc87
* Mon Aug 14 2006 Luke Macken <lmacken@redhat.com> - 1.3-3
9ffc87
- Include .pyo's instead of just ghosting them
9ffc87
9ffc87
* Wed Jul 12 2006 Luke Macken <lmacken@redhat.com> - 1.3-2
9ffc87
- Add --single-version-externally-managed flag to install
9ffc87
9ffc87
* Mon Jul 10 2006 Luke Macken <lmacken@redhat.com> - 1.3-1
9ffc87
- Initial package