added python3 subpackage [release 3.6.5-2mamba;Sun May 17 2015]

This commit is contained in:
Silvan Calarco 2024-01-05 16:39:41 +01:00
parent 98b8d5c0ce
commit 86745e69d7

View File

@ -1,6 +1,6 @@
Name: python-simplejson
Version: 3.6.5
Release: 1mamba
Release: 2mamba
Summary: Simple, fast, extensible JSON encoder/decoder for Python
Group: System/Libraries/Python
Vendor: openmamba
@ -24,6 +24,10 @@ simplejson was formerly known as simple_json, but changed its name to comply wit
The encoder may be subclassed to provide serialization in any kind of situation, without any special support by the objects to be serialized (somewhat like pickle).
The decoder can handle incoming JSON strings of any specified encoding (UTF-8 by default).
%if "%{?with_pyver}"
%pyver_package
%endif
%prep
%setup -q -n simplejson-%{version}
@ -34,11 +38,11 @@ for p in $(find . -name "*.py"); do
done
%build
CFLAGS="%{optflags}" %{__python} -c 'import setuptools; execfile("setup.py")' build
CFLAGS="%{optflags}" %{__python} setup.py build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} -c 'import setuptools; execfile("setup.py")' install \
%{__python} setup.py install \
-O1 \
--skip-build \
--root="%{buildroot}" \
@ -52,7 +56,7 @@ nosetests -q
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%files %{?pyappend}
%defattr(-,root,root)
%dir %{python_sitearch}/simplejson-%{version}-py%{python_version}.egg-info
%{python_sitearch}/simplejson-%{version}-py%{python_version}.egg-info/PKG-INFO
@ -60,12 +64,23 @@ nosetests -q
#%{python_sitearch}/simplejson-%{version}-py%{python_version}.egg-info/zip-safe
%dir %{python_sitearch}/simplejson
%{python_sitearch}/simplejson/*.py*
%if "%{?pyappend}" == ""
%{python_sitearch}/simplejson/_speedups.so
%else
%dir %{python_sitearch}/simplejson/__pycache__
%{python_sitearch}/simplejson/__pycache__/*
%{python_sitearch}/simplejson/_speedups.cpython-*.so
%dir %{python_sitearch}/simplejson/tests/__pycache__
%{python_sitearch}/simplejson/tests/__pycache__/*
%endif
%dir %{python_sitearch}/simplejson/tests
%{python_sitearch}/simplejson/tests/*.py*
%doc LICENSE.txt
%changelog
* Sun May 17 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 3.6.5-2mamba
- added python3 subpackage
* Sun Nov 16 2014 Automatic Build System <autodist@mambasoft.it> 3.6.5-1mamba
- automatic update by autodist