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