Name:           harfbuzz
Version:        14.2.0
Release:        1
Summary:        A text shaping engine
License:        MIT-Modern-Variant
URL:            https://harfbuzz.github.io/
Source0:        https://github.com/harfbuzz/harfbuzz/releases/download/%{version}/harfbuzz-%{version}.tar.xz
BuildRequires:  meson >= 0.60.0
BuildRequires:  gobject-introspection-devel
BuildRequires:  gtk-doc
BuildRequires:  pkgconfig(cairo) >= 1.10.0
BuildRequires:  pkgconfig(cairo-ft) >= 1.10.0
BuildRequires:  pkgconfig(freetype2) >= 12.0.6
BuildRequires:  pkgconfig(glib-2.0) >= 2.30.0
BuildRequires:  pkgconfig(graphite2) >= 1.2.0
BuildRequires:  pkgconfig(icu-uc) >= 49.0
BuildRequires:  cmake-rpm-macros
Provides:       harfbuzz-icu = %{version}-%{release}
Obsoletes:      harfbuzz-icu < %{version}-%{release}

%description
HarfBuzz is a text-shaping engine. If you give HarfBuzz a font and a string
containing a sequence of Unicode codepoints, HarfBuzz selects and positions
the corresponding glyphs from the font, applying all of the necessary layout
rules and font features. HarfBuzz then returns the string to you in the form
that is correctly arranged for the language and writing system.

%package        devel
Summary:        The development environment for %{name}
Requires:       %{name} = %{version}-%{release}

%description    devel
Header files and libraries for building a extension library for %{name}.

%package_help

%prep
%autosetup -n %{name}-%{version} -p1

%build
# https://github.com/harfbuzz/harfbuzz/issues/3163
%global build_cxxflags %{optflags}
%meson -Dgraphite2=enabled -Dchafa=disabled -Dgpu_demo=disabled
%meson_build

%install
%meson_install

%check
%meson_test

%files
%doc AUTHORS NEWS
%license COPYING
%{_libdir}/libharfbuzz*.so.*
%dir %{_libdir}/girepository-1.0
%{_libdir}/girepository-1.0/HarfBuzz-0.0.typelib

%files devel
%{_bindir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/cmake/harfbuzz/
%{_includedir}/harfbuzz/
%dir %{_datadir}/gir-1.0
%{_datadir}/gir-1.0/HarfBuzz-0.0.gir

%files help
%doc README.md
%{_datadir}/gtk-doc/html/harfbuzz

%changelog
* Wed Apr 29 2026 Funda Wang <fundawang@yeah.net> - 14.2.0-1
- update to 14.2.0

* Sun Apr 05 2026 Funda Wang <fundawang@yeah.net> - 14.1.0-1
- update to 14.1.0

* Sun Dec 28 2025 Funda Wang <fundawang@yeah.net> - 12.3.0-1
- update to 12.3.0

* Thu Nov 06 2025 Funda Wang <fundawang@yeah.net> - 12.2.0-1
- update to 12.2.0

* Sun Sep 28 2025 Funda Wang <fundawang@yeah.net> - 12.0.0-1
- update to 12.0.0

* Wed Sep 24 2025 Funda Wang <fundawang@yeah.net> - 11.5.1-1
- update to 11.5.1

* Sat Sep 13 2025 Funda Wang <fundawang@yeah.net> - 11.5.0-1
- update to 11.5.0

* Mon Dec 30 2024 zhangpan <zhnagpan103@h-partners.com> - 10.1.0-2
- fix CVE-2024-56732

* Fri Nov 08 2024 Funda Wang <fundawang@yeah.net> - 10.1.0-1
- Update to 10.1.0

* Mon Apr 29 2024 wangqia <wangqia@uniontech.com> - 8.4.0-1
- Update to 8.4.0

* Wed Nov 22 2023 wangqia <wangqia@uniontech.com> - 8.3.0-1
- Update to 8.3.0

* Wed Feb 22 2023 liweiganga <liweiganga@uniontech.com> - 6.0.0-1
- upstream to 6.0.0

* Wed Feb 15 2023 zhouwenpei <zhouwenpei1@h-partners.com> - 4.3.0-3
- fix CVE-2023-25193

* Thu Jul 14 2022 zhouwenpei <zhouwenpei1@h-partners.com> - 4.3.0-2
- fix CVE-2022-33068

* Mon Jun 20 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 4.3.0-1
- update to 4.3.0

* Tue May 24 2022 loong_C <loong_c@yeah.net> - 2.8.2-2
- fix spec changelog date

* Fri Dec 03 2021 liuyumeng <liuyumeng5@huawei.com> - 2.8.2-1
- update to harfbuzz-2.8.2-1

* Mon Jul 05 2021 wangkerong <wangkerong@huawei.com> - 2.8.1-2
- enable make check

* Fri Jun 25 2021 wangkerong <wangkerong@huawei.com> - 2.8.1-1
- update to 2.8.1

* Thu Jan 28 2021 zhanzhimin <zhanzhimin@huawei.com> - 2.7.4-1
- update to 2.7.4

* Thu Sep 10 2020 chengguipeng <chengguipeng1@huawei.com> - 2.6.8-3
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:modify source0 url

* Wed Jul 29 2020 hanhui <hanhui15@huawei.com> - 2.6.8-2
- modify HarfBuzz-0.0.gir patch

* Tue Jul 21 2020 hanhui <hanhui15@huawei.com> - 2.6.8-1
- Update to 2.6.8

* Mon Jun 15 2020 hanhui <hanhui15@huawei.com> - 2.6.1-1
- Update to 2.6.1

* Mon Aug 26 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.8.7-2
- Package Init