File mingw64-libxml++.spec of Package mingw64-libxml++

#
# spec file for package mingw64-libxml++
#
# 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:           mingw64-libxml++
Version:        4.0.1
Release:        0
Summary:        C++ Interface for XML Files
License:        LGPL-2.1-or-later
Group:          Development/Libraries/C and C++
Url:            http://sourceforge.net/projects/libxmlplusplus/
Source0:        https://download.gnome.org/sources/libxml++/4.0/libxml++-%{version}.tar.xz
Patch0:         libxml++-4.0.1-mingw-build-fixes.patch
#!BuildIgnore: post-build-checks
BuildRequires:  gcc-c++
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-cross-meson
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-glibmm2-devel >= 2.14.1
BuildRequires:  mingw64-libxml2-devel
%_mingw64_package_header_debug
BuildArch:      noarch

%description
libXML++ provides a C++ interface for XML files. It presently uses
libxml2 to access the XML files.

%package -n mingw64-libxml++-4_0-1
Summary:        C++ Interface for XML Files
Group:          System/Libraries
Obsoletes:      %{name} < %{version}
Provides:       %{name} = %{version}

%description -n mingw64-libxml++-4_0-1
libXML++ provides a C++ interface for XML files. It presently uses
libxml2 to access the XML files.

%package devel
Summary:        C++ Interface for XML Files -- Development Files
Group:          Development/Libraries/C and C++

%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.

%_mingw64_debug_package

%prep
%autosetup -p1 -n libxml++-%{version}

%build
%_mingw64_meson
%_mingw64_meson_build

%install
%_mingw64_meson_install

chmod 644 %{buildroot}%{_mingw64_libdir}/libxml++-4.0/include/libxml++config.h

%files -n mingw64-libxml++-4_0-1
%defattr(-,root,root)
%{_mingw64_bindir}/libxml++-4.0-1.dll

%files devel
%defattr(-,root,root)
%{_mingw64_libdir}/libxml++-4.0.dll.a
%{_mingw64_libdir}/pkgconfig/libxml++-4.0.pc
%{_mingw64_libdir}/libxml++-4.0/include/libxml++config.h
%{_mingw64_includedir}/libxml++-4.0
#%%{_mingw64_docdir}/libxml++-4.0
#%%{_mingw64_datadir}/devhelp/books/libxml++-4.0/libxml++-4.0.devhelp2

%changelog
openSUSE Build Service is sponsored by