rebuilt with only python3 package, added debug package [release 2.9.10-2mamba;Thu Nov 26 2020]

This commit is contained in:
Silvan Calarco 2024-01-06 06:13:31 +01:00
parent c6755fc7aa
commit 6e6c008a50

View File

@ -1,7 +1,7 @@
%define majver %(echo %version | cut -d. -f 1-2)
Name: libxml2
Version: 2.9.10
Release: 1mamba
Release: 2mamba
Summary: Library providing XML and HTML support
Group: System/Libraries
Vendor: openmamba
@ -15,9 +15,9 @@ Patch0: %{name}-2.7.8-configure_fix_USE_VERSION_SCRIPT.patch
License: MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: liblzma-devel
BuildRequires: libpython-devel
BuildRequires: libpython27-devel
BuildRequires: libpython3-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
%if "%{stage1}" != "1"
@ -50,23 +50,16 @@ A flexible Input/Output mechanism is available, with existing HTTP and FTP modul
This package contains static libraries and header files need for development.
%if "%{stage1}" != "1"
%package -n python-libxml2
%package -n python-libxml2-py3
Group: System/Libraries
Summary: Python support for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%py_requires
Provides: python-libxml2
Obsoletes: python-libxml2
%py3_requires
%description -n python-libxml2
%description -n python-libxml2-py3
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
@ -85,6 +78,8 @@ Requires: gtk-doc
%description apidocs
%{name} API documentation.
%debug_package
%prep
%setup -q
#%patch0 -p1
@ -96,19 +91,18 @@ Requires: gtk-doc
--disable-static \
--with-legacy \
%if "%{stage1}" != "1"
--with-python=%{_prefix} \
PYTHON=%{__python} \
PYTHON=%{__python3} \
%else
--without-python \
--disable-gtk-doc
%endif
%make PYTHON_SITE_PACKAGES=%{python_sitearch}
%make PYTHON_SITE_PACKAGES=%{python3_sitearch}/libxml2
#make tests
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%makeinstall PYTHON_SITE_PACKAGES=%{python_sitearch}
%makeinstall PYTHON_SITE_PACKAGES=%{python3_sitearch}/libxml2
install AUTHORS COPYING Copyright NEWS README TODO* \
@ -117,6 +111,7 @@ install AUTHORS COPYING Copyright NEWS README TODO* \
install -d -m 0755 %{buildroot}%{_sysconfdir}/sgml
install -d -m 0755 %{buildroot}%{_sysconfdir}/xml
:<< _EOF
%if "%{stage1}" != "1"
cd python
CFLAGS="%{optflags}" %{__python36} setup.py build
@ -130,6 +125,7 @@ CFLAGS="%{optflags}" %{__python36} setup.py build
sed -i "s,.*/man/.*,&.gz," %{name}.filelist
%endif
_EOF
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
@ -139,9 +135,9 @@ sed -i "s,.*/man/.*,&.gz," %{name}.filelist
%files
%defattr(-,root,root)
%{_libdir}/libxml2.so.*
%dir %{_sysconfdir}/sgml
%dir %{_sysconfdir}/xml
%{_libdir}/libxml2.so.*
%files devel
%defattr(-,root,root)
@ -169,21 +165,23 @@ sed -i "s,.*/man/.*,&.gz," %{name}.filelist
%{_mandir}/man1/xmllint.*
%if "%{stage1}" != "1"
%files -n python-libxml2
%files -n python-libxml2-py3
%defattr(-,root,root)
%{python_sitearch}/*
%{_datadir}/doc/libxml2-python-%{version}/
%files -n python-libxml2-py36
%defattr(-,root,root)
%{python36_sitearch}/*
%dir %{python3_sitearch}/libxml2
%{python3_sitearch}/libxml2/*
%endif
%files apidocs
%defattr(-,root,root)
%{_datadir}/gtk-doc/html/%{name}/
%if "%{stage1}" != "1"
%{_datadir}/doc/libxml2-python-%{version}/
%endif
%changelog
* Thu Nov 26 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.9.10-2mamba
- rebuilt with only python3 package, added debug package
* Mon Nov 25 2019 Automatic Build System <autodist@mambasoft.it> 2.9.10-1mamba
- automatic version update by autodist
@ -269,7 +267,7 @@ sed -i "s,.*/man/.*,&.gz," %{name}.filelist
* Tue Aug 09 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.20-1qilnx
- update to version 2.6.20 by autospec
* Tue Feb 23 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.17-2qilnx
* Wed Feb 23 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.17-2qilnx
- rebuilt with python support
* Tue Feb 22 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.17-1qilnx