-
Notifications
You must be signed in to change notification settings - Fork 0
/
python-simplejson.spec
56 lines (38 loc) · 1.24 KB
/
python-simplejson.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Created by pyp2rpm-1.1.2
%global pypi_name simplejson
Name: python-%{pypi_name}
Version: 3.7.3
Release: 1%{?dist}
Summary: Simple, fast, extensible JSON encoder/decoder for Python
License: AFL and MIT
URL: http://github.com/simplejson/simplejson
Source0: https://pypi.python.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires: python2-devel
%description
simplejson is a simple, fast, complete, correct and extensible
JSON
<http://json.org> encoder and decoder for Python 2.5+
and Python 3.3+. It is
pure Python code with no dependencies,
but includes an optional C extension for
a serious speed boost.
The latest documentation for simplejson can be read
online here:
http://simplejson.readthedocs.org/
simplejson is the externally
maintained ...
%prep
%setup -q -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%build
CFLAGS="$RPM_OPT_FLAGS" %{__python2} setup.py build
%install
%{__python2} setup.py install --skip-build --root %{buildroot}
%files
%doc README.rst LICENSE.txt
%{python2_sitearch}/%{pypi_name}
%{python2_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info
%changelog
* Wed Jun 17 2015 root - 3.7.3-1
- Initial package.