File mingw32-harfbuzz.spec of Package mingw32-harfbuzz
#
# spec file for package mingw32-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: mingw32-harfbuzz
Version: 8.3.0
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
# For glib-mkenums
BuildRequires: glib2-devel
BuildRequires: mingw32-cairo-devel
#!BuildIgnore: post-build-checks
BuildRequires: mingw32-cross-binutils
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-gcc-c++
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-filesystem
BuildRequires: mingw32-freetype-devel
BuildRequires: mingw32-glib2-devel
BuildRequires: mingw32-libgraphite2-devel >= 1.2.0
BuildRequires: mingw32-libicu-devel
BuildRequires: python3
%_mingw32_package_header_debug
BuildArch: noarch
%description
HarfBuzz is an OpenType text shaping engine.
%package -n mingw32-libharfbuzz-devel
Summary: Development files for the HarfBuzz library
Group: Development/Libraries/C and C++
%description -n mingw32-libharfbuzz-devel
This package contains header files and libraries needed for developing programs
using the Harfbuzz library.
%package -n mingw32-libharfbuzz0
Summary: An OpenType text shaping engine
Group: System/Libraries
Obsoletes: mingw32-libharfbuzz < %{version}-%{release}
Provides: mingw32-libharfbuzz = %{version}-%{release}
%description -n mingw32-libharfbuzz0
HarfBuzz is an OpenType text shaping engine.
%package -n mingw32-libharfbuzz-cairo0
Summary: An OpenType text shaping engine Cairo integration
Group: System/Libraries
%description -n mingw32-libharfbuzz-cairo0
HarfBuzz is an OpenType text shaping engine Cairo integration.
%package -n mingw32-libharfbuzz-icu0
Summary: An OpenType text shaping engine ICU integration
Group: System/Libraries
Obsoletes: mingw32-libharfbuzz-icu < %{version}-%{release}
Provides: mingw32-libharfbuzz-icu = %{version}-%{release}
%description -n mingw32-libharfbuzz-icu0
HarfBuzz is an OpenType text shaping engine ICU integration.
%package -n mingw32-libharfbuzz-subset0
Summary: An OpenType text shaping engine
%description -n mingw32-libharfbuzz-subset0
HarfBuzz is an OpenType text shaping engine.
This package contains the subset library
%_mingw32_debug_package
%prep
%setup -q -n harfbuzz-%{version}
%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
# Only build shared libraries.
configure_args="--enable-shared --disable-static"
# Configure
%{_mingw32_configure} ${configure_args}
# Make
%{_mingw32_make} %{?_smp_mflags} || %{_mingw32_make}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%files
%{_mingw32_bindir}/hb-info.exe
%{_mingw32_bindir}/hb-ot-shape-closure.exe
%{_mingw32_bindir}/hb-shape.exe
%{_mingw32_bindir}/hb-view.exe
%{_mingw32_bindir}/hb-subset.exe
%files -n mingw32-libharfbuzz-devel
%{_mingw32_includedir}/harfbuzz
%{_mingw32_libdir}/cmake/harfbuzz/harfbuzz-config.cmake
%{_mingw32_libdir}/pkgconfig/harfbuzz.pc
%{_mingw32_libdir}/pkgconfig/harfbuzz-cairo.pc
%{_mingw32_libdir}/pkgconfig/harfbuzz-icu.pc
%{_mingw32_libdir}/pkgconfig/harfbuzz-subset.pc
%{_mingw32_libdir}/libharfbuzz.dll.a
%{_mingw32_libdir}/libharfbuzz-cairo.dll.a
%{_mingw32_libdir}/libharfbuzz-icu.dll.a
%{_mingw32_libdir}/libharfbuzz-subset.dll.a
%{_mingw32_datadir}/gtk-doc/html/harfbuzz/
%files -n mingw32-libharfbuzz0
%{_mingw32_bindir}/libharfbuzz-0.dll
%files -n mingw32-libharfbuzz-cairo0
%{_mingw32_bindir}/libharfbuzz-cairo-0.dll
%files -n mingw32-libharfbuzz-icu0
%{_mingw32_bindir}/libharfbuzz-icu-0.dll
%files -n mingw32-libharfbuzz-subset0
%{_mingw32_bindir}/libharfbuzz-subset-0.dll
%changelog