]> git.pld-linux.org Git - packages/libxml2.git/commitdiff
- added python-setup patch (try to use generated libxml2 configuration instead of... auto/th/libxml2-2.10.0-2
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 18 Aug 2022 19:53:08 +0000 (21:53 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Thu, 18 Aug 2022 19:53:08 +0000 (21:53 +0200)
libxml2-python-setup.patch [new file with mode: 0644]
libxml2.spec

diff --git a/libxml2-python-setup.patch b/libxml2-python-setup.patch
new file mode 100644 (file)
index 0000000..c29a957
--- /dev/null
@@ -0,0 +1,21 @@
+--- libxml2-2.10.0/python/setup.py.in.orig     2022-05-02 14:10:21.000000000 +0200
++++ libxml2-2.10.0/python/setup.py.in  2022-08-18 21:39:44.799159134 +0200
+@@ -85,7 +85,8 @@ if xml_includes == "":
+ # those are added in the linker search path for libraries
+ libdirs = [
+-os.path.join(ROOT,'lib'),
++'@abs_top_builddir@/.libs',
++'@libdir@',
+ ]
+ xml_files = ["libxml2-api.xml", "libxml2-python-api.xml",
+@@ -194,7 +195,7 @@ modules = [ 'libxml2', 'drv_libxml2' ]
+ if WITHDLLS:
+     modules.append('libxmlmods.__init__')
+ c_files = ['libxml2-py.c', 'libxml.c', 'types.c' ]
+-includes= [xml_includes]
++includes= ['@abs_top_builddir@/include']
+ libs    = [libraryPrefix + "xml2"] + platformLibs
+ macros  = []
+ if with_threads:
index eeecd4dfb211941f85311cce5eae824d99d78e76..d31a3155abf6b9633db8658e1b9490a44c1c871b 100644 (file)
@@ -18,7 +18,7 @@ Summary(pl.UTF-8):    Biblioteka libXML wersja 2
 Summary(pt_BR.UTF-8):  Biblioteca libXML versão 2
 Name:          libxml2
 Version:       2.10.0
-Release:       1
+Release:       2
 Epoch:         1
 License:       MIT
 Group:         Libraries
@@ -28,6 +28,7 @@ Source0:      https://download.gnome.org/sources/libxml2/2.10/%{name}-%{version}.tar.
 Patch0:                %{name}-open.gz.patch
 Patch1:                %{name}-largefile.patch
 Patch2:                %{name}-libx32.patch
+Patch3:                %{name}-python-setup.patch
 # Fedora patches
 # https://bugzilla.gnome.org/show_bug.cgi?id=789714
 Patch11:       %{name}-python3-unicode-errors.patch
@@ -182,6 +183,7 @@ do biblioteki libxml2.
 %endif
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 %patch11 -p1
 
 %build
@@ -209,7 +211,6 @@ cd python
 cd ..
 %endif
 
-
 %if %{with python3}
 cd python
 %py3_build
This page took 0.284607 seconds and 4 git commands to generate.