Add python3-lxml 58/207458/1 accepted/tizen/base/20190613.235737 submit/tizen_base/20190613.071340
authorDongHun Kwak <dh0128.kwak@samsung.com>
Wed, 5 Jun 2019 04:08:04 +0000 (13:08 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Wed, 5 Jun 2019 04:11:24 +0000 (13:11 +0900)
Change-Id: Ia4a3ade2ecd82fa80e9b9c5b29c3f6172d58d266
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
packaging/python3-lxml.manifest [new file with mode: 0644]
packaging/python3-lxml.spec [new file with mode: 0644]

diff --git a/packaging/python3-lxml.manifest b/packaging/python3-lxml.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/python3-lxml.spec b/packaging/python3-lxml.spec
new file mode 100644 (file)
index 0000000..3143f5b
--- /dev/null
@@ -0,0 +1,41 @@
+Name:           python3-lxml
+Version:        4.3.0
+Release:        0
+Summary:        Powerful and Pythonic XML processing library
+License:        BSD-3-Clause and GPL-2.0+
+Group:          Development/Languages/Python
+Url:            http://lxml.de/
+Source:         http://pypi.python.org/packages/source/l/lxml/lxml-%{version}.tar.gz
+Source1001:    %{name}.manifest
+BuildRequires:  libxslt-devel
+#BuildRequires:  python-Cython
+BuildRequires:  python3-devel
+BuildRequires:  pkgconfig(libxml-2.0)
+
+%description
+lxml is a Pythonic, mature binding for the libxml2 and libxslt libraries. It
+provides safe and convenient access to these libraries using the ElementTree
+API. It extends the ElementTree API significantly to offer support for XPath,
+RelaxNG, XML Schema, XSLT, C14N and much more.
+
+
+%prep
+%setup -q -n lxml-%{version}
+cp %{SOURCE1001} .
+
+%build
+CFLAGS="%{optflags}" python3 setup.py build
+
+%install
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
+
+%files
+%manifest %{name}.manifest
+%defattr(-,root,root)
+%doc LICENSES.txt
+%{python3_sitearch}/lxml/
+%{python3_sitearch}/lxml-%{version}-py%{python3_version}.egg-info
+%exclude %{python3_sitearch}/lxml/includes/etree_defs.h
+
+
+%changelog