2 %define module simplejson
3 Summary: Simple, fast, extensible JSON encoder/decoder for Python
4 Summary(pl.UTF-8): Prosty, szybki, rozszerzalny (de)koder JSON dla Pythona
10 Source0: http://pypi.python.org/packages/source/s/%{module}/%{module}-%{version}.tar.gz
11 # Source0-md5: 6da5d665c9e772ac65eae9b4ce6d737b
12 URL: http://undefined.org/python/#simplejson
13 BuildRequires: python >= 1:2.4
14 BuildRequires: python-setuptools >= 0.6-0.c1
15 BuildRequires: rpm-pythonprov
16 %pyrequires_eq python-libs
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 simplejson is a simple, fast, complete, correct and extensible JSON
21 <http://json.org/> encoder and decoder for Python 2.4+.
23 %description -l pl.UTF-8
24 simplejson to prosty, szybki, pełny, poprawny i rozszerzalny koder i
25 dekoder JSON (<http://json.org/>) dla Pythona 2.4 i nowszych wersji.
28 %setup -qn %{module}-%{version}
31 %{__python} setup.py build
34 rm -rf $RPM_BUILD_ROOT
36 %{__python} setup.py install \
37 --root=$RPM_BUILD_ROOT \
41 rm -rf $RPM_BUILD_ROOT%{py_sitedir}/simplejson/tests
44 rm -rf $RPM_BUILD_ROOT
47 %defattr(644,root,root,755)
48 %dir %{py_sitedir}/simplejson
49 %{py_sitedir}/simplejson/*.py[co]
50 %attr(755,root,root) %{py_sitedir}/simplejson/*.so
51 %{py_sitedir}/simplejson-%{version}-py*.egg-info