b9727e0
Name:           python-simplejson
e783d30
7a17b3d
Version:        3.16.0
7a17b3d
Release:        1%{?dist}
b9727e0
Summary:        Simple, fast, extensible JSON encoder/decoder for Python
b9727e0
e783d30
# The main code is licensed MIT.
e783d30
# The docs include jquery which is licensed MIT or GPLv2
1886d01
License: (MIT or AFL) and (MIT or GPLv2)
b9727e0
URL:            http://undefined.org/python/#simplejson
7a17b3d
Source0:        %pypi_source simplejson
3909322
3909322
b9727e0
%description
4fa140e
simplejson is a simple, fast, complete, correct and extensible JSON
2e123bf
<http://json.org> encoder and decoder for Python 2.5+. It is pure Python code
2e123bf
with no dependencies, but includes an optional C extension for a serious speed
2e123bf
boost.
b9727e0
b9727e0
The encoder may be subclassed to provide serialization in any kind of
b9727e0
situation, without any special support by the objects to be serialized
b9727e0
(somewhat like pickle).
b9727e0
2e123bf
The decoder can handle incoming JSON strings of any specified encoding (UTF-8
2e123bf
by default).
b9727e0
acd890c
simplejson is the externally maintained development version of the json library
acd890c
included with Python 2.6 and Python 3.0, but maintains backwards compatibility
acd890c
with Python 2.5.  It gets updated more regularly than the json module in the
acd890c
python stdlib.
acd890c
Orion Poplawski 17ff6fc
Orion Poplawski 17ff6fc
%package -n python2-simplejson
Orion Poplawski 17ff6fc
Summary:        Simple, fast, extensible JSON encoder/decoder for Python2
2763774
BuildRequires:  gcc
Orion Poplawski 17ff6fc
BuildRequires:  python2-devel
94d8559
BuildRequires:  python2-setuptools
94d8559
BuildRequires:  python2-nose
Orion Poplawski e1890a6
%{?python_provide:%python_provide python2-simplejson}
Orion Poplawski 17ff6fc
Orion Poplawski 17ff6fc
%description -n python2-simplejson
Orion Poplawski 17ff6fc
simplejson is a simple, fast, complete, correct and extensible JSON
Orion Poplawski 17ff6fc
<http://json.org> encoder and decoder for Python 2.5+. It is pure Python code
Orion Poplawski 17ff6fc
with no dependencies, but includes an optional C extension for a serious speed
Orion Poplawski 17ff6fc
boost.
Orion Poplawski 17ff6fc
Orion Poplawski 17ff6fc
The encoder may be subclassed to provide serialization in any kind of
Orion Poplawski 17ff6fc
situation, without any special support by the objects to be serialized
Orion Poplawski 17ff6fc
(somewhat like pickle).
Orion Poplawski 17ff6fc
Orion Poplawski 17ff6fc
The decoder can handle incoming JSON strings of any specified encoding (UTF-8
Orion Poplawski 17ff6fc
by default).
Orion Poplawski 17ff6fc
Orion Poplawski 17ff6fc
simplejson is the externally maintained development version of the json library
Orion Poplawski 17ff6fc
included with Python 2.6 and Python 3.0, but maintains backwards compatibility
Orion Poplawski 17ff6fc
with Python 2.5.  It gets updated more regularly than the json module in the
Orion Poplawski 17ff6fc
python stdlib.
Orion Poplawski 17ff6fc
Orion Poplawski 17ff6fc
Orion Poplawski 17ff6fc
%package -n python%{python3_pkgversion}-simplejson
1886d01
Summary:        Simple, fast, extensible JSON encoder/decoder for Python3
Orion Poplawski 17ff6fc
BuildRequires: python%{python3_pkgversion}-devel
Orion Poplawski 17ff6fc
BuildRequires: python%{python3_pkgversion}-setuptools
Orion Poplawski 17ff6fc
BuildRequires: python%{python3_pkgversion}-nose
4d28a82
BuildRequires: python%{python3_pkgversion}-sphinx
Orion Poplawski e1890a6
%{?python_provide:%python_provide python%{python3_pkgversion}-simplejson}
1886d01
Orion Poplawski 17ff6fc
%description -n python%{python3_pkgversion}-simplejson
1886d01
simplejson is a simple, fast, complete, correct and extensible JSON
1886d01
<http://json.org> encoder and decoder for Python 2.5+ and python3.3+ It is pure
1886d01
Python code with no dependencies, but includes an optional C extension for a
1886d01
serious speed boost.
1886d01
1886d01
The encoder may be subclassed to provide serialization in any kind of
1886d01
situation, without any special support by the objects to be serialized
1886d01
(somewhat like pickle).
1886d01
1886d01
The decoder can handle incoming JSON strings of any specified encoding (UTF-8
1886d01
by default).
1886d01
1886d01
simplejson is the externally maintained development version of the json library
1886d01
included with Python 2.6 and Python 3.0, but maintains backwards compatibility
1886d01
with Python 2.5.  It gets updated more regularly than the json module in the
1886d01
python stdlib.
1886d01
b9727e0
b9727e0
%prep
b9727e0
%setup -q -n simplejson-%{version}
b9727e0
b9727e0
%build
Orion Poplawski 17ff6fc
%py2_build
Orion Poplawski 17ff6fc
%py3_build
1886d01
4d28a82
PATH=%{_libexecdir}/python3-sphinx:$PATH %{__python3} scripts/make_docs.py
4d28a82
1886d01
rm docs/.buildinfo
1886d01
rm docs/.nojekyll
1886d01
7a17b3d
%install
7a17b3d
%py2_install
Orion Poplawski 17ff6fc
%py3_install
1886d01
ef0f8c5
%check
7a17b3d
%{__python2} -m nose
7a17b3d
%{__python3} -m nose
1886d01
b9727e0
Orion Poplawski 17ff6fc
%files -n python2-simplejson
Orion Poplawski 17ff6fc
%license LICENSE.txt
Orion Poplawski 17ff6fc
%doc docs
7a17b3d
%{python2_sitearch}/simplejson/
7a17b3d
%{python2_sitearch}/simplejson-%{version}-py?.?.egg-info/
b9727e0
Orion Poplawski 17ff6fc
%files -n python%{python3_pkgversion}-simplejson
Orion Poplawski 17ff6fc
%license LICENSE.txt
Orion Poplawski 17ff6fc
%doc docs
7a17b3d
%{python3_sitearch}/simplejson/
7a17b3d
%{python3_sitearch}/simplejson-%{version}-py?.?.egg-info/
b9727e0
b9727e0
%changelog
7a17b3d
* Thu Aug 23 2018 Miro Hrončok <mhroncok@redhat.com> - 3.16.0-1
7a17b3d
- Update to 3.16.0 (#1462583)
7a17b3d
5260a82
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.0-10
5260a82
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
5260a82
4d28a82
* Mon Jul  2 2018 Miro Hrončok <mhroncok@redhat.com> - 3.10.0-9
4d28a82
- Use Python 3 Sphinx
4d28a82
5d2d532
* Sun Jun 17 2018 Miro Hrončok <mhroncok@redhat.com> - 3.10.0-8
5d2d532
- Rebuilt for Python 3.7
5d2d532
94d8559
* Wed Feb 14 2018 Iryna Shcherbina <ishcherb@redhat.com> - 3.10.0-7
94d8559
- Update Python 2 dependency declarations to new packaging standards
94d8559
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
94d8559
171a065
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.0-6
171a065
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
171a065
a523a77
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.0-5
a523a77
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
a523a77
ccd96e4
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.0-4
ccd96e4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ccd96e4
693f59d
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.0-3
693f59d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
693f59d
a76677c
* Tue Dec 13 2016 Stratakis Charalampos <cstratak@redhat.com> - 3.10.0-2
a76677c
- Rebuild for Python 3.6
a76677c
Orion Poplawski 7c1a0a3
* Fri Nov 4 2016 Orion Poplawski <orion@cora.nwra.com> - 3.10.0-1
Orion Poplawski 7c1a0a3
- Update to 3.10.0
Orion Poplawski 7c1a0a3
Orion Poplawski 17ff6fc
* Fri Nov 4 2016 Orion Poplawski <orion@cora.nwra.com> - 3.5.3-7
Orion Poplawski 17ff6fc
- Enable python 3 support in EPEL
Orion Poplawski 17ff6fc
- Ship python2-simplejson
Orion Poplawski 17ff6fc
- Modernize spec
Orion Poplawski 17ff6fc
d7ee214
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.3-6
d7ee214
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
d7ee214
a25d665
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.3-5
a25d665
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a25d665
a1c2d72
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.3-4
a1c2d72
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
a1c2d72
885bb2b
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.3-3
885bb2b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
885bb2b
13fc756
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.3-2
13fc756
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
13fc756
Luke Macken acd64f3
* Tue Jun 24 2014 Luke Macken <lmacken@redhat.com> - 3.5.3-1
Luke Macken acd64f3
- Update to 3.5.3 (#1093685, #1112285)
Luke Macken acd64f3
3aded26
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.0-3
3aded26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
3aded26
7229744
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 3.4.0-2
7229744
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
7229744
Luke Macken c21494a
* Mon Apr 07 2014 Luke Macken <lmacken@redhat.com> - 3.4.0-1
Luke Macken c21494a
- Update to 3.4.0 (#1083979)
Luke Macken c21494a
Luke Macken 8f6aed2
* Wed Feb 19 2014 Luke Macken <lmacken@redhat.com> - 3.3.3-1
Luke Macken 8f6aed2
- Update to 3.3.3 (#960949)
Luke Macken 8f6aed2
6affb21
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.0-2
6affb21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
6affb21
c442881
* Thu May  2 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 3.2.0-1
c442881
- Trim changelog to 5 years.
c442881
- Update to 3.2.0 upstream feature additions
c442881
890e477
* Tue Apr  9 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 3.1.3-1
890e477
- Update to upstream 3.1.3
890e477
6f7f40d
* Thu Mar 21 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 3.1.2-1
6f7f40d
- Update to upstream 3.1.2 (documentation fixes)
6f7f40d
1886d01
* Mon Feb 25 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 3.1.0-1
1886d01
- Update to 3.1.0 in Rawhide.
1886d01
- Build the python3 subpackage
1886d01
- Update to new-style filtering of provides
1886d01
9b122d9
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.0-3
9b122d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
9b122d9
eb5360f
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.0-2
eb5360f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
eb5360f
44fb0d8
* Fri Jun 29 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 2.6.0-1
44fb0d8
- Update to 2.6.0 which changes some messages thrown by exceptions to match
44fb0d8
  with json module in python3.3 stdlib.  Probably safe for older releases but
44fb0d8
  the python3 version there is 3.2 so there's also not any real need yet.
44fb0d8
6814fca
* Tue May 15 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 2.5.2-1
6814fca
- Update to 2.5.2
6814fca
- This update adds new PI but should be backwards compatible
6814fca
48186d0
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0-2
48186d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
48186d0
959c587
* Fri Dec 9 2011 Toshio Kuratomi <toshoi@fedoraproject.org> - 2.3.0-1
959c587
- Update to 2.3.0 -- behaviour changing bugfixes
959c587
ce8bf28
* Mon May 9 2011 Toshio Kuratomi <toshoi@fedoraproject.org> - 2.1.6-1
ce8bf28
- Update to 2.1.6 for a segfault fix
ce8bf28
14993ea
* Sat Apr 30 2011 Toshio Kuratomi <toshoi@fedoraproject.org> - 2.1.5-1
288449e
- Update to 2.1.5, trivial upstream release (change makes more compact output)
288449e
5fb3308
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.3-2
5fb3308
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
5fb3308
f93700b
* Tue Jan 18 2011 Toshio Kuratomi <toshoi@fedoraproject.org> - 2.1.3-1
f93700b
- Update to 2.1.3
f93700b
acd890c
* Mon Dec 20 2010 Toshio Kuratomi <toshoi@fedoraproject.org> - 2.1.2-1
acd890c
- Update to upstream 2.1.2, a bugfix release with four small, self-contained
acd890c
  fixes.
acd890c
3909322
* Wed Oct 20 2010 Toshio Kuratomi <toshoi@fedoraproject.org> - 2.1.1-4
3909322
- Simplify the %%files section to own the tests directory
3909322
- Use the fedora documented filter functions to filter provides
3909322
c1e804c
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 2.1.1-3
c1e804c
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
c1e804c
e783d30
* Wed Jun 30 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 2.1.1-2
e783d30
- Filter unnecessary provides
e783d30
- License tag update
e783d30
- Minor spec file cleanups
e783d30
2e123bf
* Mon Jun 21 2010 Kyle VanderBeek <kylev@kylev.com> - 2.1.1-1
2e123bf
- Update to 2.1.1
2e123bf
953c3e1
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.9-3
953c3e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
953c3e1
e66702e
* Fri Jun  5 2009 Kyle VanderBeek <kylev@kylev.com> - 2.0.9-2
e66702e
- Remove ill-advised gcc BuildRequires
e66702e
8d13452
* Thu Jun  4 2009 Kyle VanderBeek <kylev@kylev.com> - 2.0.9-1
4fa140e
- Update to 2.0.9
4fa140e
- Make sure to require gcc to the speedups get compiled
4fa140e
- Fix description since we're not "pure" python
4fa140e
- Change to pypi instead of cheesehop
4fa140e
b4def3c
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.7-2
b4def3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
b4def3c
b178de1
* Tue Jan 06 2009 Luke Macken <lmacken@redhat.com> 2.0.7-1
b178de1
- Update to 2.0.7
b178de1
3940351
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.0.3-3
3940351
- Rebuild for Python 2.6
3940351
ef0f8c5
* Thu Oct 23 2008 Luke Macken <lmacken@redhat.com> 2.0.3-2
ef0f8c5
- Use nose to run the simplejson test suite
ef0f8c5
41f35c5
* Mon Oct 20 2008 Tom "spot" Callaway <tcallawa@redhat.com> 2.0.3-1
41f35c5
- update to 2.0.3
41f35c5
55f1d96
* Wed Oct 01 2008 Luke Macken <lmacken@redhat.com> - 2.0.1-1
55f1d96
- Update to 2.0.1, which contains many optimizations and bugfixes
55f1d96
cf9f399
* Wed Sep 24 2008 Luke Macken <lmacken@redhat.com> - 1.9.3-1
cf9f399
- Update to 1.9.3, which includes a significant decoding speed boost, and
cf9f399
  various bug fixes.
cf9f399
b22a17e
* Tue May 06 2008 Luke Macken <lmacken@redhat.com> - 1.9.1-1
b22a17e
- Update to 1.9.1
b22a17e
0492db7
* Wed Apr 02 2008 Luke Macken <lmacken@redhat.com> - 1.8.1-1
0492db7
- Update to 1.8.1
0492db7
984070e
* Thu Feb 28 2008 Luke Macken <lmacken@redhat.com> - 1.7.4-1
984070e
- Update to 1.7.4
984070e
727a9a7
* Fri Feb  8 2008 Luke Macken <lmacken@redhat.com> - 1.7.3-3
727a9a7
- Rebuild for gcc 4.3