--- /dev/null
+--- 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:
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
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
%endif
%patch1 -p1
%patch2 -p1
+%patch3 -p1
%patch11 -p1
%build
cd ..
%endif
-
%if %{with python3}
cd python
%py3_build