]> git.pld-linux.org Git - packages/python-simplejson.git/blame - python-simplejson.spec
- Up to 2.1.5
[packages/python-simplejson.git] / python-simplejson.spec
CommitLineData
5fcfc11d 1# TODO: optflags
0e00b2f1 2%define module simplejson
fe64986d 3Summary: Simple, fast, extensible JSON encoder/decoder for Python
493694f9 4Summary(pl.UTF-8): Prosty, szybki, rozszerzalny (de)koder JSON dla Pythona
fe64986d 5Name: python-%{module}
02cc7d62 6Version: 2.1.5
228c1802 7Release: 1
fe64986d 8License: MIT
9Group: Libraries
167dac34 10Source0: http://pypi.python.org/packages/source/s/%{module}/%{module}-%{version}.tar.gz
02cc7d62 11# Source0-md5: 03b7833ea09ce2793e516be009d6b169
fe64986d 12URL: http://undefined.org/python/#simplejson
167dac34 13BuildRequires: python >= 1:2.4
c490e1f7 14BuildRequires: python-devel
69816394 15BuildRequires: python-setuptools >= 0.6-0.c1
0e00b2f1 16BuildRequires: rpm-pythonprov
35bccf42 17%pyrequires_eq python-libs
fe64986d 18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%description
21simplejson 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
25simplejson to prosty, szybki, pełny, poprawny i rozszerzalny koder i
167dac34 26dekoder 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
35rm -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 42rm -rf $RPM_BUILD_ROOT%{py_sitedir}/simplejson/tests
0e00b2f1 43
fe64986d 44%clean
45rm -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
This page took 0.082376 seconds and 4 git commands to generate.