e783d30
%if 0%{?fedora} < 13 || 0%{?rhel} < 6
e783d30
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
e783d30
%endif
e783d30
e783d30
%global _use_internal_dependency_generator 0
e783d30
%global __find_provides /bin/sh -c "%{_rpmconfigdir}/find-provides | grep -v -E '(_speedups.so)' || /bin/true"
e783d30
%global __find_requires /bin/sh -c "%{_rpmconfigdir}/find-requires | grep -v -E '(_speedups.so)' || /bin/true"
b9727e0
b9727e0
Name:           python-simplejson
e783d30
2e123bf
Version:        2.1.1
e783d30
Release:        2%{?dist}
b9727e0
Summary:        Simple, fast, extensible JSON encoder/decoder for Python
b9727e0
b9727e0
Group:          System Environment/Libraries
e783d30
# The main code is licensed MIT.
e783d30
# The docs include jquery which is licensed MIT or GPLv2
e783d30
License: MIT and (MIT or GPLv2)
b9727e0
URL:            http://undefined.org/python/#simplejson
4fa140e
Source0:        http://pypi.python.org/packages/source/s/simplejson/simplejson-%{version}.tar.gz
b9727e0
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
b9727e0
fd3f9be
BuildRequires:  python-devel
0492db7
BuildRequires:  python-setuptools-devel
ef0f8c5
BuildRequires:  python-nose
fd3f9be
b9727e0
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
2e123bf
simplejson is the externally maintained development version of the json library
2e123bf
included with Python 2.6 and Python 3.0, but maintains backwards compatibility
2e123bf
with Python 2.5.
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
b9727e0
b9727e0
%prep
b9727e0
%setup -q -n simplejson-%{version}
b9727e0
b9727e0
b9727e0
%build
b9727e0
%{__python} setup.py build
b9727e0
b9727e0
b9727e0
%install
b9727e0
rm -rf $RPM_BUILD_ROOT
e783d30
%{__python} setup.py install --skip-build --root=$RPM_BUILD_ROOT
b9727e0
ef0f8c5
%check
ef0f8c5
nosetests -q
b9727e0
b9727e0
%clean
b9727e0
rm -rf $RPM_BUILD_ROOT
b9727e0
b9727e0
b9727e0
%files
b9727e0
%defattr(-,root,root,-)
21e7019
%doc docs LICENSE.txt
543c3b5
%dir %{python_sitearch}/simplejson
e783d30
%{python_sitearch}/simplejson-*.egg-info
543c3b5
%{python_sitearch}/simplejson/*.py*
543c3b5
%{python_sitearch}/simplejson/tests/*.py*
543c3b5
%{python_sitearch}/simplejson/_speedups.so
b9727e0
b9727e0
b9727e0
%changelog
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
727a9a7
21e7019
* Wed Oct 24 2007 Luke Macken <lmacken@redhat.com> - 1.7.3-2
21e7019
- Include the LICENSE.txt
21e7019
f972a02
* Wed Oct  3 2007 Luke Macken <lmacken@redhat.com> - 1.7.3-1
f972a02
- 1.7.3
f972a02
fd3f9be
* Sun Sep  2 2007 Luke Macken <lmacken@redhat.com> - 1.7.1-3
fd3f9be
- Update for python-setuptools changes in rawhide
fd3f9be
6417020
* Tue Aug 21 2007 Luke Macken <lmacken@redhat.com> - 1.7.1-2
6417020
- Rebuild
6417020
ab73b5d
* Sun Jul  8 2007 Luke Macken <lmacken@redhat.com> - 1.7.1-1
ab73b5d
- 1.7.1
ab73b5d
543c3b5
* Wed Mar 21 2007 Luke Macken <lmacken@redhat.com> - 1.7-2
543c3b5
- Use python_sitearch instead of sitelib
543c3b5
543c3b5
* Tue Mar 20 2007 Luke Macken <lmacken@redhat.com> - 1.7-1
7fd6380
- 1.7 (Bug #233212)
7fd6380
17faf60
* Sat Mar  3 2007 Luke Macken <lmacken@redhat.com> - 1.5
17faf60
- 1.5
17faf60
09fddc6
* Sat Dec  9 2006 Luke Macken <lmacken@redhat.com> - 1.4-4
e14b75a
- Add python-devel to BuildRequires
e14b75a
0df4f38
* Sat Dec  9 2006 Luke Macken <lmacken@redhat.com> - 1.4-2
0df4f38
- Rebuild for new python
0df4f38
2b3f52b
* Fri Nov 24 2006 Luke Macken <lmacken@redhat.com> - 1.4-1
2b3f52b
- 1.4
2b3f52b
c7c4668
* Sun Sep  3 2006 Luke Macken <lmacken@redhat.com> - 1.3-4
c7c4668
- Rebuild for FC6
c7c4668
b9727e0
* Mon Aug 14 2006 Luke Macken <lmacken@redhat.com> - 1.3-3
b9727e0
- Include .pyo's instead of just ghosting them
b9727e0
b9727e0
* Wed Jul 12 2006 Luke Macken <lmacken@redhat.com> - 1.3-2
b9727e0
- Add --single-version-externally-managed flag to install
b9727e0
b9727e0
* Mon Jul 10 2006 Luke Macken <lmacken@redhat.com> - 1.3-1
b9727e0
- Initial package