File mingw64-libxml2.spec of Package mingw64-libxml2
#
# spec file for package mingw64-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/
#
%define realname libxml2
Name: mingw64-%{realname}
Version: 2.13.6
Release: 0
Summary: XML C parser and toolkit
License: MIT
Group: Development/Libraries/C and C++
URL: https://gitlab.gnome.org/GNOME/libxml2
Source0: https://download.gnome.org/sources/libxml2/2.13/%{realname}-%{version}.tar.xz
Patch0: libxml2-mingw-link-lowercase-bcrypt.patch
#!BuildIgnore: post-build-checks
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-zlib-devel
%_mingw64_package_header_debug
BuildArch: noarch
%description
Libxml2 is the XML C parser and toolkit developed for the Gnome project.
%package -n mingw64-libxml2-2
Summary: MinGW Windows port of the XML C parser
Group: System/Libraries
%description -n mingw64-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)
%_mingw64_debug_package
%prep
%autosetup -p1 -n %{realname}-%{version}
%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
MINGW64_CFLAGS="-DHAVE_COMPILER_TLS %{_mingw64_cflags}" \
%{_mingw64_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 mingw64-libxml2-2
%{_mingw64_bindir}/libxml2-2.dll
%files devel
%{_mingw64_bindir}/xml2-config
%{_mingw64_libdir}/libxml2.dll.a
%{_mingw64_libdir}/pkgconfig/libxml-2.0.pc
%{_mingw64_libdir}/cmake/libxml2/libxml2-config.cmake
%{_mingw64_includedir}/libxml2
%{_mingw64_datadir}/aclocal/*
%{_mingw64_docdir}/libxml2/
%{_mingw64_datadir}/gtk-doc/html/libxml2/
%{_mingw64_mandir}/man1/xml2-config.1*
%files tools
%{_mingw64_bindir}/xmlcatalog.exe
%{_mingw64_bindir}/xmllint.exe
%{_mingw64_mandir}/man1/xmllint.1*
%{_mingw64_mandir}/man1/xmlcatalog.1*
%changelog