You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
python-simplejson/python-simplejson.spec

90 lines
2.5 KiB

%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")}
Name: python-simplejson
18 years ago
Version: 1.7
18 years ago
Release: 1%{?dist}
Summary: Simple, fast, extensible JSON encoder/decoder for Python
Group: System Environment/Libraries
License: MIT
URL: http://undefined.org/python/#simplejson
Source0: http://cheeseshop.python.org/packages/source/s/simplejson/simplejson-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: python-setuptools python-devel
%description
simplejson is a simple, fast, complete, correct and extensible
JSON <http://json.org> encoder and decoder for Python 2.3+. It is
pure Python code with no dependencies.
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).
%prep
%setup -q -n simplejson-%{version}
%build
%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root=$RPM_BUILD_ROOT \
--single-version-externally-managed
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc docs
%dir %{python_sitelib}/simplejson
%{python_sitelib}/simplejson-%{version}-py%{pyver}.egg-info
%{python_sitelib}/simplejson/*.py*
%{python_sitelib}/simplejson/tests/*.py*
18 years ago
%{python_sitelib}/simplejson/_speedups.so
%changelog
18 years ago
* Tue Mar 20 2007 Luke Macken <lmacken@redhat.com> - 1.7
- 1.7 (Bug #233212)
18 years ago
* Sat Mar 3 2007 Luke Macken <lmacken@redhat.com> - 1.5
- 1.5
* Sat Dec 9 2006 Luke Macken <lmacken@redhat.com> - 1.4-4
- Add python-devel to BuildRequires
* Sat Dec 9 2006 Luke Macken <lmacken@redhat.com> - 1.4-2
- Rebuild for new python
18 years ago
* Fri Nov 24 2006 Luke Macken <lmacken@redhat.com> - 1.4-1
- 1.4
19 years ago
* Sun Sep 3 2006 Luke Macken <lmacken@redhat.com> - 1.3-4
- Rebuild for FC6
* Mon Aug 14 2006 Luke Macken <lmacken@redhat.com> - 1.3-3
- Include .pyo's instead of just ghosting them
* Wed Jul 12 2006 Luke Macken <lmacken@redhat.com> - 1.3-2
- Add --single-version-externally-managed flag to install
* Mon Jul 10 2006 Luke Macken <lmacken@redhat.com> - 1.3-1
- Initial package