Bump to python-libxml2 2.10.2 63/280963/1 accepted/tizen_7.0_base accepted/tizen_7.0_base_hotfix accepted/tizen_8.0_base accepted/tizen_base_dev sandbox/backup/python-libxml2-2.10.2_20240213 sandbox/dh0128.kwak/python-libxml2-2.10.2-20220907 tizen_7.0_base tizen_7.0_base_hotfix tizen_8.0_base accepted/tizen/7.0/base/20221116.025859 accepted/tizen/7.0/base/hotfix/20221116.055308 accepted/tizen/8.0/base/20231005.045106 accepted/tizen/base/20220916.071722 accepted/tizen/base/20221115.103736 accepted/tizen/base/dev/20230602.080821 submit/tizen_base/20221216.064150 tizen_7.0_m2_release tizen_8.0_m2_release
authorDongHun Kwak <dh0128.kwak@samsung.com>
Wed, 7 Sep 2022 07:31:45 +0000 (16:31 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Wed, 7 Sep 2022 07:31:45 +0000 (16:31 +0900)
Change-Id: Ife5e1f5e4c2da6e0750f887ed38ca5cd2faaf1ba

packaging/python-libxml2.manifest [new file with mode: 0644]
packaging/python-libxml2.spec [new file with mode: 0644]

diff --git a/packaging/python-libxml2.manifest b/packaging/python-libxml2.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/python-libxml2.spec b/packaging/python-libxml2.spec
new file mode 100644 (file)
index 0000000..4f06479
--- /dev/null
@@ -0,0 +1,68 @@
+Name:           python-libxml2
+Version:        2.10.2
+Release:        0
+Summary:        Python Bindings for libxml2
+License:        MIT
+Group:          Development/Python
+Url:            http://xmlsoft.org
+Source:         %{name}-%{version}.tar.gz
+Source1001:     %{name}.manifest
+
+BuildRequires:  libxml2-devel
+BuildRequires:  python-devel
+BuildRequires:  python-xml
+
+Requires:       libxml2 = %{version}
+Obsoletes:      libxml2-python < %{version}
+Provides:       libxml2-python = %{version}
+
+%description
+The libxml2-python package contains a module that permits applications
+written in the Python programming language to use the interface
+supplied by the libxml2 library to manipulate XML files.
+
+This library allows manipulation of XML files. It includes support for
+reading, modifying, and writing XML and HTML files. There is DTD
+support that includes parsing and validation even with complex DTDs,
+either at parse time or later once the document has been modified.
+
+%prep
+%setup -q -n %{name}-%{version}
+cp %{SOURCE1001} .
+
+%build
+export CFLAGS="%{optflags} -fno-strict-aliasing"
+%autogen
+%configure \
+    --with-fexceptions \
+    --with-history \
+    --enable-ipv6 \
+    --with-sax1 \
+    --with-regexps \
+    --with-threads \
+    --with-reader \
+    --with-http
+
+# use libxml2 as built by libxml2 source package
+mkdir .libs
+cp -v %{_libdir}/libxml2.la .
+make -C python %{?_smp_mflags}
+
+%install
+make -C python install \
+    DESTDIR=%{buildroot} \
+    pythondir=%{py_sitedir} \
+    PYTHON_SITE_PACKAGES=%{py_sitedir}
+chmod a-x python/tests/*.py
+# Unwanted doc stuff
+rm -fr %{buildroot}%{_datadir}/doc
+rm -f python/tests/Makefile*
+# #223696
+rm -f %{buildroot}%{py_sitedir}/*.{la,a}
+
+%files
+%manifest %{name}.manifest
+%license Copyright
+%doc python/libxml2class.txt
+%doc python/tests
+%{py_sitedir}/*