added -py36 package [release 2.9.9-2mamba;Fri Mar 15 2019]

This commit is contained in:
Silvan Calarco 2024-01-06 06:13:31 +01:00
parent c70f7f8af9
commit 0b1cbcf222

View File

@ -1,7 +1,7 @@
%define majver %(echo %version | cut -d. -f 1-2) %define majver %(echo %version | cut -d. -f 1-2)
Name: libxml2 Name: libxml2
Version: 2.9.9 Version: 2.9.9
Release: 1mamba Release: 2mamba
Summary: Library providing XML and HTML support Summary: Library providing XML and HTML support
Group: System/Libraries Group: System/Libraries
Vendor: openmamba Vendor: openmamba
@ -58,6 +58,15 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n python-libxml2 %description -n python-libxml2
Python support for 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 %endif
%package utils %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}/sgml
install -d -m 0755 %{buildroot}%{_sysconfdir}/xml 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 %clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot} [ "%{buildroot}" != / ] && rm -rf %{buildroot}
@ -150,6 +173,10 @@ install -d -m 0755 %{buildroot}%{_sysconfdir}/xml
%defattr(-,root,root) %defattr(-,root,root)
%{python_sitearch}/* %{python_sitearch}/*
%{_datadir}/doc/libxml2-python-%{version}/ %{_datadir}/doc/libxml2-python-%{version}/
%files -n python-libxml2-py36
%defattr(-,root,root)
%{python36_sitearch}/*
%endif %endif
%files apidocs %files apidocs
@ -157,6 +184,9 @@ install -d -m 0755 %{buildroot}%{_sysconfdir}/xml
%{_datadir}/gtk-doc/html/%{name}/ %{_datadir}/gtk-doc/html/%{name}/
%changelog %changelog
* Fri Mar 15 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 2.9.9-2mamba
- added -py36 package
* Mon Jan 28 2019 Automatic Build System <autodist@mambasoft.it> 2.9.9-1mamba * Mon Jan 28 2019 Automatic Build System <autodist@mambasoft.it> 2.9.9-1mamba
- automatic version update by autodist - automatic version update by autodist