diff --git a/libxml2.spec b/libxml2.spec index 13f7e2f..8059cdb 100644 --- a/libxml2.spec +++ b/libxml2.spec @@ -1,7 +1,7 @@ %define majver %(echo %version | cut -d. -f 1-2) Name: libxml2 Version: 2.9.9 -Release: 1mamba +Release: 2mamba Summary: Library providing XML and HTML support Group: System/Libraries Vendor: openmamba @@ -58,6 +58,15 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description -n python-libxml2 Python support for libxml2. + +%package -n python-libxml2-py36 +Group: System/Libraries +Summary: Python 3.6 support for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +%py36_requires + +%description -n python-libxml2-py36 +Python 3.6 support for libxml2. %endif %package utils @@ -108,6 +117,20 @@ install AUTHORS COPYING Copyright NEWS README TODO* \ install -d -m 0755 %{buildroot}%{_sysconfdir}/sgml install -d -m 0755 %{buildroot}%{_sysconfdir}/xml +%if "%{stage1}" != "1" +cd python +CFLAGS="%{optflags}" %{__python36} setup.py build + +%{__python36} setup.py install \ + -O1 --skip-build \ + --root="%{buildroot}" \ + --install-headers=%{python36_inc} \ + --install-lib=%{python36_sitearch} \ + --record=%{name}.filelist + +sed -i "s,.*/man/.*,&.gz," %{name}.filelist +%endif + %clean [ "%{buildroot}" != / ] && rm -rf %{buildroot} @@ -150,6 +173,10 @@ install -d -m 0755 %{buildroot}%{_sysconfdir}/xml %defattr(-,root,root) %{python_sitearch}/* %{_datadir}/doc/libxml2-python-%{version}/ + +%files -n python-libxml2-py36 +%defattr(-,root,root) +%{python36_sitearch}/* %endif %files apidocs @@ -157,6 +184,9 @@ install -d -m 0755 %{buildroot}%{_sysconfdir}/xml %{_datadir}/gtk-doc/html/%{name}/ %changelog +* Fri Mar 15 2019 Silvan Calarco 2.9.9-2mamba +- added -py36 package + * Mon Jan 28 2019 Automatic Build System 2.9.9-1mamba - automatic version update by autodist