diff options
author | akirilov <akirilov@google.com> | 2018-06-01 13:46:04 -0700 |
---|---|---|
committer | syphyr <syphyr@gmail.com> | 2018-09-06 04:08:09 +0200 |
commit | 126c3993d2ad55db2abfe80e3d671bf584e7b13b (patch) | |
tree | f4464c225863c997e3f99d9897131f9f28df76fe /libxml.spec.in | |
parent | 521b88fbb6d18312923f0df653d045384b500ffc (diff) | |
download | android_external_libxml2-cm-13.0.tar.gz android_external_libxml2-cm-13.0.tar.bz2 android_external_libxml2-cm-13.0.zip |
RESTRICT AUTOMERGE: Update libxml2 to 2.9.8HEADreplicant-6.0-0004-transitionreplicant-6.0-0004-rc6replicant-6.0-0004-rc5-transitionreplicant-6.0-0004-rc5replicant-6.0-0004-rc4replicant-6.0-0004-rc3replicant-6.0-0004-rc2replicant-6.0-0004cm-14.1cm-13.0
Merge to pi-dev and restore Android.mk
Bug: 79662501
Bug: 36809766
Bug: 36810305
Bug: 62151041
Test: manually verify functionality for regression
Change-Id: Ife351c91c932eb92992656f8ea5c08724a220306
(cherry picked from commit 4e91cfdbb1a8624e5cd5a850d6e17da11d1e34a8)
Diffstat (limited to 'libxml.spec.in')
-rw-r--r-- | libxml.spec.in | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/libxml.spec.in b/libxml.spec.in index 9029a180..d5f5ccbb 100644 --- a/libxml.spec.in +++ b/libxml.spec.in @@ -57,12 +57,15 @@ Requires: libxml2 = %{version}-%{release} Static library for libxml2 provided for specific uses or shaving a few microseconds when parsing, do not link to them for generic purpose packages. -%package python +%package -n python-%{name} +%{?python_provide:%python_provide python-%{name}} Summary: Python bindings for the libxml2 library Group: Development/Libraries Requires: libxml2 = %{version}-%{release} +Obsoletes: %{name}-python < %{version}-%{release} +Provides: %{name}-python = %{version}-%{release} -%description python +%description -n python-%{name} The libxml2-python package contains a Python 2 module that permits applications written in the Python programming language, version 2, to use the interface supplied by the libxml2 library to manipulate XML files. @@ -73,12 +76,14 @@ this includes parsing and validation even with complex DTDs, either at parse time or later once the document has been modified. %if 0%{?with_python3} -%package python3 +%package -n python3-%{name} Summary: Python 3 bindings for the libxml2 library Group: Development/Libraries Requires: libxml2 = %{version}-%{release} +Obsoletes: %{name}-python3 < %{version}-%{release} +Provides: %{name}-python3 = %{version}-%{release} -%description python3 +%description -n python3-%{name} The libxml2-python3 package contains a Python 3 module that permits applications written in the Python programming language, version 3, to use the interface supplied by the libxml2 library to manipulate XML files. @@ -92,10 +97,16 @@ at parse time or later once the document has been modified. %prep %setup -q +mkdir py3doc +cp doc/*.py py3doc +sed -i 's|#!/usr/bin/python |#!%{__python3} |' py3doc/*.py + %build %configure make %{_smp_mflags} +find doc -type f -exec chmod 0644 \{\} \; + %install rm -fr %{buildroot} @@ -165,7 +176,7 @@ rm -fr %{buildroot} %{_libdir}/*a -%files python +%files -n python-%{name} %defattr(-, root, root) %{_libdir}/python2*/site-packages/libxml2.py* @@ -178,18 +189,16 @@ rm -fr %{buildroot} %doc doc/python.html %if 0%{?with_python3} -%files python3 +%files -n python3-%{name} %defattr(-, root, root) %{_libdir}/python3*/site-packages/libxml2.py* %{_libdir}/python3*/site-packages/drv_libxml2.py* -%{_libdir}/python3*/site-packages/__pycache__/libxml2.cpython-34.py* -%{_libdir}/python3*/site-packages/__pycache__/drv_libxml2.cpython-34.py* +%{_libdir}/python3*/site-packages/__pycache__/*py* %{_libdir}/python3*/site-packages/libxml2mod* %doc python/TODO %doc python/libxml2class.txt -%doc python/tests/*.py -%doc doc/*.py +%doc py3doc/*.py %doc doc/python.html %endif # with_python3 |