-# TODO: optflags
%define module simplejson
Summary: Simple, fast, extensible JSON encoder/decoder for Python
Summary(pl.UTF-8): Prosty, szybki, rozszerzalny (de)koder JSON dla Pythona
Name: python-%{module}
-Version: 2.5.2
+Version: 3.0.8
Release: 1
-License: MIT
+License: MIT or AFL v2.1
Group: Libraries
-Source0: http://pypi.python.org/packages/source/s/%{module}/%{module}-%{version}.tar.gz
-# Source0-md5: d7a7acf0bd7681bd116b5c981d2f7959
+Source0: http://pypi.python.org/packages/source/s/simplejson/%{module}-%{version}.tar.gz
+# Source0-md5: a3b584dcc6963074c24f391b20edd805
URL: http://undefined.org/python/#simplejson
-BuildRequires: python >= 1:2.4
+BuildRequires: python >= 1:2.5
BuildRequires: python-devel
BuildRequires: python-setuptools >= 0.6-0.c1
BuildRequires: rpm-pythonprov
%description
simplejson is a simple, fast, complete, correct and extensible JSON
-<http://json.org/> encoder and decoder for Python 2.4+.
+<http://json.org/> encoder and decoder for Python 2.5+.
%description -l pl.UTF-8
simplejson to prosty, szybki, pełny, poprawny i rozszerzalny koder i
-dekoder JSON (<http://json.org/>) dla Pythona 2.4 i nowszych wersji.
+dekoder JSON (<http://json.org/>) dla Pythona 2.5 i nowszych wersji.
%prep
%setup -qn %{module}-%{version}
%build
+CC="%{__cc}" \
+CFLAGS="%{rpmcflags}" \
%{__python} setup.py build
%install
%files
%defattr(644,root,root,755)
+%doc CHANGES.txt LICENSE.txt README.rst
%dir %{py_sitedir}/simplejson
%{py_sitedir}/simplejson/*.py[co]
%attr(755,root,root) %{py_sitedir}/simplejson/*.so