Page MenuHomeSolus

D9425.id.diff
No OneTemporary

D9425.id.diff

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 <mail@kushaldas.in>
+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 @@
+<PISI>
+ <Source>
+ <Name>python-ujson</Name>
+ <Homepage>https://github.com/ultrajson/ultrajson</Homepage>
+ <Packager>
+ <Name>Algent Albrahimi</Name>
+ <Email>algent@protonmail.com</Email>
+ </Packager>
+ <License>BSD-3-Clausse</License>
+ <PartOf>programming.python</PartOf>
+ <Summary xml:lang="en">Ultra fast JSON decoder and encoder written in C with Python bindings</Summary>
+ <Description xml:lang="en">UltraJSON is an ultra fast JSON encoder and decoder written in pure C with bindings for Python 3.5+.
+</Description>
+ <Archive type="binary" sha1sum="79eb0752a961b8e0d15c77d298c97498fbc89c5a">https://getsol.us/sources/README.Solus</Archive>
+ </Source>
+ <Package>
+ <Name>python-ujson</Name>
+ <Summary xml:lang="en">Ultra fast JSON decoder and encoder written in C with Python bindings</Summary>
+ <Description xml:lang="en">UltraJSON is an ultra fast JSON encoder and decoder written in pure C with bindings for Python 3.5+.
+</Description>
+ <PartOf>programming.python</PartOf>
+ <Files>
+ <Path fileType="library">/usr/lib/python3.7/site-packages/ujson-3.1.0-py3.7.egg-info/PKG-INFO</Path>
+ <Path fileType="library">/usr/lib/python3.7/site-packages/ujson-3.1.0-py3.7.egg-info/SOURCES.txt</Path>
+ <Path fileType="library">/usr/lib/python3.7/site-packages/ujson-3.1.0-py3.7.egg-info/dependency_links.txt</Path>
+ <Path fileType="library">/usr/lib/python3.7/site-packages/ujson-3.1.0-py3.7.egg-info/top_level.txt</Path>
+ <Path fileType="library">/usr/lib/python3.7/site-packages/ujson.cpython-37m-x86_64-linux-gnu.so</Path>
+ </Files>
+ </Package>
+ <History>
+ <Update release="1">
+ <Date>2020-08-11</Date>
+ <Version>3.1.0</Version>
+ <Comment>Packaging update</Comment>
+ <Name>Algent Albrahimi</Name>
+ <Email>algent@protonmail.com</Email>
+ </Update>
+ </History>
+</PISI>
\ No newline at end of file

File Metadata

Mime Type
text/plain
Expires
Apr 24 2023, 8:11 PM (15 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5792073
Default Alt Text
D9425.id.diff (4 KB)

Event Timeline