]>
Commit | Line | Data |
---|---|---|
5fcfc11d | 1 | # TODO: optflags |
0e00b2f1 | 2 | %define module simplejson |
fe64986d | 3 | Summary: Simple, fast, extensible JSON encoder/decoder for Python |
493694f9 | 4 | Summary(pl.UTF-8): Prosty, szybki, rozszerzalny (de)koder JSON dla Pythona |
fe64986d | 5 | Name: python-%{module} |
02cc7d62 | 6 | Version: 2.1.5 |
228c1802 | 7 | Release: 1 |
fe64986d | 8 | License: MIT |
9 | Group: Libraries | |
167dac34 | 10 | Source0: http://pypi.python.org/packages/source/s/%{module}/%{module}-%{version}.tar.gz |
02cc7d62 | 11 | # Source0-md5: 03b7833ea09ce2793e516be009d6b169 |
fe64986d | 12 | URL: http://undefined.org/python/#simplejson |
167dac34 | 13 | BuildRequires: python >= 1:2.4 |
c490e1f7 | 14 | BuildRequires: python-devel |
69816394 | 15 | BuildRequires: python-setuptools >= 0.6-0.c1 |
0e00b2f1 | 16 | BuildRequires: rpm-pythonprov |
35bccf42 | 17 | %pyrequires_eq python-libs |
fe64986d | 18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
20 | %description | |
21 | simplejson is a simple, fast, complete, correct and extensible JSON | |
167dac34 | 22 | <http://json.org/> encoder and decoder for Python 2.4+. |
0e00b2f1 | 23 | |
2afa74c9 JR |
24 | %description -l pl.UTF-8 |
25 | simplejson to prosty, szybki, pełny, poprawny i rozszerzalny koder i | |
167dac34 | 26 | dekoder JSON (<http://json.org/>) dla Pythona 2.4 i nowszych wersji. |
fe64986d | 27 | |
28 | %prep | |
29 | %setup -qn %{module}-%{version} | |
30 | ||
31 | %build | |
5fcfc11d | 32 | %{__python} setup.py build |
32daac38 | 33 | |
fe64986d | 34 | %install |
35 | rm -rf $RPM_BUILD_ROOT | |
36 | ||
5fcfc11d | 37 | %{__python} setup.py install \ |
fe64986d | 38 | --root=$RPM_BUILD_ROOT \ |
39 | --optimize=2 | |
0e00b2f1 JB |
40 | |
41 | %py_postclean | |
27f03be6 | 42 | rm -rf $RPM_BUILD_ROOT%{py_sitedir}/simplejson/tests |
0e00b2f1 | 43 | |
fe64986d | 44 | %clean |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %files | |
48 | %defattr(644,root,root,755) | |
27f03be6 | 49 | %dir %{py_sitedir}/simplejson |
50 | %{py_sitedir}/simplejson/*.py[co] | |
5fcfc11d | 51 | %attr(755,root,root) %{py_sitedir}/simplejson/*.so |
27f03be6 | 52 | %{py_sitedir}/simplejson-%{version}-py*.egg-info |