File mingw32-libxml2.spec of Package mingw32-libxml2

#
# spec file for package mingw32-libxml2
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           mingw32-libxml2
Version:        2.9.0
Release:        0
Summary:        XML C parser and toolkit
License:        MIT
Group:          Development/Libraries/C and C++
Url:            http://xmlsoft.org/
Source:         ftp://xmlsoft.org/libxml2/libxml2-%{version}.tar.gz
Patch0:         fix-global-catalog-access.diff
#!BuildIgnore: post-build-checks
BuildRequires:  mingw32-cross-binutils
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-pkg-config
BuildRequires:  mingw32-filesystem
BuildRequires:  mingw32-zlib-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%_mingw32_package_header_debug
BuildArch:      noarch

%description
Libxml2 is the XML C parser and toolkit developed for the Gnome project.

%package -n mingw32-libxml2-2
Summary:        MinGW Windows port of the XML C parser
Group:          System/Libraries
Obsoletes:      mingw32-libxml2

%description -n mingw32-libxml2-2
Libxml2 is the XML C parser and toolkit developed for the Gnome project.

%package devel
Summary:        XML C parser and toolkit (development files)
Group:          Development/Libraries/C and C++

%description devel
Libxml2 is the XML C parser and toolkit developed for the Gnome project. (development files)

%package tools
Summary:        XML C parser and toolkit (auxiliary tools)
Group:          Productivity/Other

%description tools
Libxml2 is the XML C parser and toolkit developed for the Gnome project. (auxiliary tools)

%_mingw32_debug_package

%prep
%setup -q -n libxml2-%{version}
%patch0

%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
MINGW32_CFLAGS="-DHAVE_COMPILER_TLS %{_mingw32_cflags}" \
%{_mingw32_configure} \
	--without-python --with-modules --with-threads=win32 \
	--enable-shared --disable-static
make %{?_smp_mflags} || make

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}

%files -n mingw32-libxml2-2
%defattr(-,root,root)
%{_mingw32_bindir}/libxml2-2.dll

%files devel
%defattr(-,root,root)
%{_mingw32_bindir}/xml2-config
%{_mingw32_libdir}/libxml2.dll.a
%{_mingw32_libdir}/pkgconfig/libxml-2.0.pc
%{_mingw32_libdir}/xml2Conf.sh
%{_mingw32_includedir}/libxml2
%{_mingw32_datadir}/aclocal/*
%{_mingw32_docdir}/libxml2-%{version}/
%{_mingw32_datadir}/gtk-doc/html/libxml2/
%{_mingw32_mandir}/man1/xml2-config.1*
%{_mingw32_mandir}/man3/libxml.3*

%files tools
%defattr(-,root,root)
%{_mingw32_bindir}/xmlcatalog.exe
%{_mingw32_bindir}/xmllint.exe
%{_mingw32_mandir}/man1/xmllint.1*
%{_mingw32_mandir}/man1/xmlcatalog.1*

%changelog
openSUSE Build Service is sponsored by