- zlib disabled on x86_64 due to pointer bug
Changed files:
libxml2.spec -> 1.171
# Conditional build:
%bcond_without python # don't build python module
%bcond_without static_libs # don't build static libraries
# Conditional build:
%bcond_without python # don't build python module
%bcond_without static_libs # don't build static libraries
+%bcond_without zlib # don't use zlib
+#
+%ifarch x86_64
+%undefine with_zlib
+%endif
#
Summary: libXML library
Summary(es.UTF-8): Biblioteca libXML version 2
#
Summary: libXML library
Summary(es.UTF-8): Biblioteca libXML version 2
Summary(pt_BR.UTF-8): Biblioteca libXML versão 2
Name: libxml2
Version: 2.7.6
Summary(pt_BR.UTF-8): Biblioteca libXML versão 2
Name: libxml2
Version: 2.7.6
Epoch: 1
License: MIT
Group: Libraries
Epoch: 1
License: MIT
Group: Libraries
%{?with_python:BuildRequires: python-modules}
%{?with_python:BuildRequires: rpm-pythonprov}
BuildRequires: rpmbuild(macros) >= 1.219
%{?with_python:BuildRequires: python-modules}
%{?with_python:BuildRequires: rpm-pythonprov}
BuildRequires: rpmbuild(macros) >= 1.219
-BuildRequires: zlib-devel
+%{?with_zlib:BuildRequires: zlib-devel}
# history support in xmllint is disabled by default
#BuildRequires: ncurses-devel
#BuildRequires: readline-devel >= 4.2
# history support in xmllint is disabled by default
#BuildRequires: ncurses-devel
#BuildRequires: readline-devel >= 4.2
Group: Development/Libraries
Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: zlib-devel
Group: Development/Libraries
Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: zlib-devel
+%{?with_zlib:BuildRequires: zlib-devel}
%description devel
Header files etc you can use to develop libxml2 applications.
%description devel
Header files etc you can use to develop libxml2 applications.
%setup -q
%patch0 -p1
%patch1 -p1
%setup -q
%patch0 -p1
%patch1 -p1
%{__automake}
%configure \
%{!?with_static_libs:--enable-static=no} \
%{__automake}
%configure \
%{!?with_static_libs:--enable-static=no} \
- %{!?with_python:--without-python}
+ %{!?with_python:--without-python} \
+ %{!?with_zlib:--with-zlib=no}