diff --git a/Makefile b/Makefile new file mode 100644 --- /dev/null +++ b/Makefile @@ -0,0 +1 @@ +include ../Makefile.common diff --git a/abi_used_libs b/abi_used_libs new file mode 100644 --- /dev/null +++ b/abi_used_libs @@ -0,0 +1,5 @@ +libc.so.6 +libdouble-conversion.so.3 +libgcc_s.so.1 +libpython3.7m.so.1.0 +libstdc++.so.6 diff --git a/files/0001-Use-double-conversion-from-the-system.patch b/files/0001-Use-double-conversion-from-the-system.patch new file mode 100644 --- /dev/null +++ b/files/0001-Use-double-conversion-from-the-system.patch @@ -0,0 +1,44 @@ +From 91ab320957b15188c63a280133a71ae3fdb2e758 Mon Sep 17 00:00:00 2001 +From: Kushal Das +Date: Sun, 7 Jun 2020 13:11:55 +0530 +Subject: [PATCH] Use double-conversion from the system + +--- + setup.py | 10 ++++------ + 1 file changed, 4 insertions(+), 6 deletions(-) + +diff --git a/setup.py b/setup.py +index 87b96fa..47c409c 100644 +--- a/setup.py ++++ b/setup.py +@@ -17,22 +17,20 @@ Programming Language :: Python :: 3.8 + Programming Language :: Python :: 3 :: Only + """ + +-dconv_source_files = glob("./deps/double-conversion/double-conversion/*.cc") +-dconv_source_files.append("./lib/dconv_wrapper.cc") + + module1 = Extension( + "ujson", +- sources=dconv_source_files +- + [ ++ sources=[ ++ "./lib/dconv_wrapper.cc", + "./python/ujson.c", + "./python/objToJSON.c", + "./python/JSONtoObj.c", + "./lib/ultrajsonenc.c", + "./lib/ultrajsondec.c", + ], +- include_dirs=["./python", "./lib", "./deps/double-conversion/double-conversion"], ++ include_dirs=["./python", "./lib", "/usr/include/double-conversion"], + extra_compile_args=["-D_GNU_SOURCE"], +- extra_link_args=["-lstdc++", "-lm"], ++ extra_link_args=["-lstdc++", "-lm", "-ldouble-conversion"], + ) + + +-- +2.26.2 + + diff --git a/package.yml b/package.yml new file mode 100644 --- /dev/null +++ b/package.yml @@ -0,0 +1,24 @@ +name : python-ujson +version : 3.1.0 +release : 1 +source : + - https://files.pythonhosted.org/packages/source/u/ujson/ujson-3.1.0.tar.gz : 00bda1de275ed6fe81817902189c75dfd156b4fa29b44dc1f4620775d2f50cf7 +homepage : https://github.com/ultrajson/ultrajson +license : BSD-3-Clausse +component : programming.python +summary : Ultra fast JSON decoder and encoder written in C with Python bindings +description: | + UltraJSON is an ultra fast JSON encoder and decoder written in pure C with bindings for Python 3.5+. +builddeps : + - pkgconfig(python3) + - double-conversion-devel + - python-pytest + - python-setuptools-scm +setup : | + %patch -p1 < $pkgfiles/0001-Use-double-conversion-from-the-system.patch +build : | + %python3_setup +install : | + %python3_install +check : | + %python3_test pytest3 diff --git a/pspec_x86_64.xml b/pspec_x86_64.xml new file mode 100644 --- /dev/null +++ b/pspec_x86_64.xml @@ -0,0 +1,39 @@ + + + python-ujson + https://github.com/ultrajson/ultrajson + + Algent Albrahimi + algent@protonmail.com + + BSD-3-Clausse + programming.python + Ultra fast JSON decoder and encoder written in C with Python bindings + UltraJSON is an ultra fast JSON encoder and decoder written in pure C with bindings for Python 3.5+. + + https://getsol.us/sources/README.Solus + + + python-ujson + Ultra fast JSON decoder and encoder written in C with Python bindings + UltraJSON is an ultra fast JSON encoder and decoder written in pure C with bindings for Python 3.5+. + + programming.python + + /usr/lib/python3.7/site-packages/ujson-3.1.0-py3.7.egg-info/PKG-INFO + /usr/lib/python3.7/site-packages/ujson-3.1.0-py3.7.egg-info/SOURCES.txt + /usr/lib/python3.7/site-packages/ujson-3.1.0-py3.7.egg-info/dependency_links.txt + /usr/lib/python3.7/site-packages/ujson-3.1.0-py3.7.egg-info/top_level.txt + /usr/lib/python3.7/site-packages/ujson.cpython-37m-x86_64-linux-gnu.so + + + + + 2020-08-11 + 3.1.0 + Packaging update + Algent Albrahimi + algent@protonmail.com + + + \ No newline at end of file