File mingw64-harfbuzz.spec of Package mingw64-harfbuzz

#
# spec file for package mingw64-harfbuzz
#
# 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-harfbuzz
Version:        11.0.1
Release:        0
Summary:        An OpenType text shaping engine
License:        MIT
Group:          Development/Libraries/C and C++
URL:            https://www.freedesktop.org/wiki/Software/HarfBuzz
Source0:        https://github.com/harfbuzz/harfbuzz/releases/download/%{version}/harfbuzz-%{version}.tar.xz
BuildRequires:  gtk-doc
# For glib-mkenums
BuildRequires:  glib2-devel
BuildRequires:  mingw64-cairo-devel
#!BuildIgnore: post-build-checks
BuildRequires:  mingw64-cross-meson
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem
BuildRequires:  mingw64-freetype-devel
BuildRequires:  mingw64-glib2-devel
BuildRequires:  mingw64-libgraphite2-devel >= 1.2.0
BuildRequires:  mingw64-libicu-devel
BuildRequires:  python3
%_mingw64_package_header_debug
BuildArch:      noarch

%description
HarfBuzz is an OpenType text shaping engine.

%package -n mingw64-libharfbuzz-devel
Summary:        Development files for the HarfBuzz library
Group:          Development/Libraries/C and C++

%description -n mingw64-libharfbuzz-devel
This package contains header files and libraries needed for developing programs
using the Harfbuzz library.

%package -n mingw64-libharfbuzz0
Summary:        An OpenType text shaping engine
Group:          System/Libraries
Obsoletes:      mingw64-libharfbuzz < %{version}-%{release}
Provides:       mingw64-libharfbuzz = %{version}-%{release}

%description -n mingw64-libharfbuzz0
HarfBuzz is an OpenType text shaping engine.

%package -n mingw64-libharfbuzz-cairo0
Summary:        An OpenType text shaping engine Cairo integration
Group:          System/Libraries

%description -n mingw64-libharfbuzz-cairo0
HarfBuzz is an OpenType text shaping engine Cairo integration.

%package -n mingw64-libharfbuzz-icu0
Summary:        An OpenType text shaping engine ICU integration
Group:          System/Libraries
Obsoletes:      mingw64-libharfbuzz-icu < %{version}-%{release}
Provides:       mingw64-libharfbuzz-icu = %{version}-%{release}

%description -n mingw64-libharfbuzz-icu0
HarfBuzz is an OpenType text shaping engine ICU integration.

%package -n mingw64-libharfbuzz-subset0
Summary:        An OpenType text shaping engine

%description -n mingw64-libharfbuzz-subset0
HarfBuzz is an OpenType text shaping engine.
This package contains the subset library

%package -n mingw64-libharfbuzz-gobject0
Summary:        harfbuzz gobject

%description -n mingw64-libharfbuzz-gobject0
harfbuzz gobject

%_mingw64_debug_package

%prep
%setup -q -n harfbuzz-%{version}

%build
# -Dwith_libstdcxx prevents [   79s] /usr/lib64/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld: src/libharfbuzz-0.dll.p/hb-aat-layout.cc.obj:hb-aat-layout.cc:(.xdata+0x68): undefined reference to `__gxx_personality_seh0'
%_mingw64_meson \
  --default-library=shared \
  -Dchafa=disabled \
  -Dintrospection=disabled \
  -Dwith_libstdcxx=true \
  %{nil}

%_mingw64_meson_build

%install
%_mingw64_meson_install

%files
%{_mingw64_bindir}/hb-info.exe
%{_mingw64_bindir}/hb-shape.exe
%{_mingw64_bindir}/hb-view.exe
%{_mingw64_bindir}/hb-subset.exe

%files -n mingw64-libharfbuzz-devel
%{_mingw64_includedir}/harfbuzz
%{_mingw64_libdir}/cmake/harfbuzz/harfbuzz-config.cmake
%{_mingw64_libdir}/pkgconfig/harfbuzz.pc
%{_mingw64_libdir}/pkgconfig/harfbuzz-cairo.pc
%{_mingw64_libdir}/pkgconfig/harfbuzz-icu.pc
%{_mingw64_libdir}/pkgconfig/harfbuzz-subset.pc
%{_mingw64_libdir}/pkgconfig/harfbuzz-gobject.pc
%{_mingw64_libdir}/libharfbuzz.dll.a
%{_mingw64_libdir}/libharfbuzz-cairo.dll.a
%{_mingw64_libdir}/libharfbuzz-icu.dll.a
%{_mingw64_libdir}/libharfbuzz-subset.dll.a
%{_mingw64_libdir}/libharfbuzz-gobject.dll.a
%{_mingw64_datadir}/gtk-doc/html/harfbuzz/

%files -n mingw64-libharfbuzz0
%{_mingw64_bindir}/libharfbuzz-0.dll

%files -n mingw64-libharfbuzz-cairo0
%{_mingw64_bindir}/libharfbuzz-cairo-0.dll

%files -n mingw64-libharfbuzz-icu0
%{_mingw64_bindir}/libharfbuzz-icu-0.dll

%files -n mingw64-libharfbuzz-subset0
%{_mingw64_bindir}/libharfbuzz-subset-0.dll


%files -n mingw64-libharfbuzz-gobject0
%{_mingw64_bindir}/libharfbuzz-gobject-0.dll

%changelog
openSUSE Build Service is sponsored by