From 86745e69d710900386e6b8e573066d3d0c8bb7e5 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 16:39:41 +0100 Subject: [PATCH] added python3 subpackage [release 3.6.5-2mamba;Sun May 17 2015] --- python-simplejson.spec | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/python-simplejson.spec b/python-simplejson.spec index 2194cea..e2352a9 100644 --- a/python-simplejson.spec +++ b/python-simplejson.spec @@ -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 3.6.5-2mamba +- added python3 subpackage + * Sun Nov 16 2014 Automatic Build System 3.6.5-1mamba - automatic update by autodist