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: d7a7acf0bd7681bd116b5c981d2f7959
12 URL: http://undefined.org/python/#simplejson
13 BuildRequires: python >= 1:2.4
14 BuildRequires: python-devel
15 BuildRequires: python-setuptools >= 0.6-0.c1
16 BuildRequires: rpm-pythonprov
17 %pyrequires_eq python-libs
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 simplejson is a simple, fast, complete, correct and extensible JSON
22 <http://json.org/> encoder and decoder for Python 2.4+.
24 %description -l pl.UTF-8
25 simplejson to prosty, szybki, pełny, poprawny i rozszerzalny koder i
26 dekoder JSON (<http://json.org/>) dla Pythona 2.4 i nowszych wersji.
29 %setup -qn %{module}-%{version}
32 %{__python} setup.py build
35 rm -rf $RPM_BUILD_ROOT
37 %{__python} setup.py install \
38 --root=$RPM_BUILD_ROOT \
42 rm -rf $RPM_BUILD_ROOT%{py_sitedir}/simplejson/tests
45 rm -rf $RPM_BUILD_ROOT
48 %defattr(644,root,root,755)
49 %dir %{py_sitedir}/simplejson
50 %{py_sitedir}/simplejson/*.py[co]
51 %attr(755,root,root) %{py_sitedir}/simplejson/*.so
52 %{py_sitedir}/simplejson-%{version}-py*.egg-info