File mingw32-libxml2.spec of Package mingw32-libxml2

%define __strip %{_mingw32_strip}
%define __objdump %{_mingw32_objdump}
%define _use_internal_dependency_generator 0
%define __find_requires %{_mingw32_findrequires}
%define __find_provides %{_mingw32_findprovides}
%define __os_install_post %{_mingw32_debug_install_post} \
                          %{_mingw32_install_post}

Name:           mingw32-libxml2
Version:        2.8.0
Release:        0
Summary:        XML C parser and toolkit

License:        MIT
Group:          System/Libraries
Url:            http://xmlsoft.org/
Source:         ftp://xmlsoft.org/libxml2/libxml2-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

BuildArch:      noarch
#!BuildIgnore: post-build-checks

BuildRequires:  mingw32-filesystem
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-binutils
BuildRequires:  mingw32-cross-pkg-config
BuildRequires:  mingw32-zlib-devel


%description
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

%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:          Development/Libraries

%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}


%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=$RPM_BUILD_ROOT install


%clean
rm -rf $RPM_BUILD_ROOT


%files
%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