1Name: harfbuzz 2Version: 2.8.2 3Release: 4 4Summary: A text shaping engine 5 6License: MIT 7URL: https://harfbuzz.github.io/what-is-harfbuzz.html 8Source0: https://github.com/harfbuzz/harfbuzz/releases/download/2.8.2/%{name}-%{version}.tar.xz 9 10Patch0001: backport-CVE-2022-33068.patch 11Patch0002: backport-0001-CVE-2023-25193.patch 12Patch0003: backport-0002-CVE-2023-25193.patch 13 14BuildRequires: gcc-c++ freetype-devel cairo-devel glib2-devel graphite2-devel 15BuildRequires: gtk-doc libicu-devel gobject-introspection-devel 16Provides: harfbuzz-icu 17Obsoletes: harfbuzz-icu 18 19%description 20HarfBuzz is a text-shaping engine. If you give HarfBuzz a font and a string 21containing a sequence of Unicode codepoints, HarfBuzz selects and positions 22the corresponding glyphs from the font, applying all of the necessary layout 23rules and font features. HarfBuzz then returns the string to you in the form 24that is correctly arranged for the language and writing system. 25 26%package devel 27Summary: The development environment for %{name} 28Requires: %{name} = %{version}-%{release} 29 30%description devel 31Header files and libraries for building a extension library for %{name}. 32 33%package_help 34 35%prep 36%autosetup -n %{name}-%{version} -p1 37 38%build 39%configure --disable-static --with-graphite2 --with-gobject --enable-introspection 40 41make %{?_smp_mflags} 42 43%check 44make check 45 46%install 47make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" 48%delete_la 49 50%ldconfig_scriptlets 51 52%files 53%doc AUTHORS NEWS 54%license COPYING 55%{_libdir}/libharfbuzz.so.* 56%{_libdir}/libharfbuzz-subset.so.* 57%{_libdir}/libharfbuzz-gobject.so.0* 58%{_libdir}/libharfbuzz-icu.so.* 59%dir %{_libdir}/girepository-1.0 60%{_libdir}/girepository-1.0/HarfBuzz-0.0.typelib 61 62%files devel 63%{_bindir}/* 64%{_libdir}/*.so 65%{_libdir}/pkgconfig/*.pc 66%{_libdir}/cmake/harfbuzz/ 67%{_includedir}/harfbuzz/ 68%dir %{_datadir}/gir-1.0 69%{_datadir}/gir-1.0/HarfBuzz-0.0.gir 70 71%files help 72%doc README 73%{_datadir}/gtk-doc/html/harfbuzz/* 74 75%changelog 76* Wed Feb 15 2023 zhouwenpei <zhouwenpei1@h-partners.com> - 2.8.2-4 77- fix CVE-2023-25193 78 79* Thu Jul 14 2022 zhouwenpei <zhouwenpei1@h-partners.com> - 2.8.2-3 80- fix CVE-2022-33068 81 82* Tue May 24 2022 loong_C <loong_c@yeah.net> - 2.8.2-2 83- fix spec changelog date 84 85* Fri Dec 03 2021 liuyumeng <liuyumeng5@huawei.com> - 2.8.2-1 86- update to harfbuzz-2.8.2-1 87 88* Mon Jul 05 2021 wangkerong <wangkerong@huawei.com> - 2.8.1-2 89- enable make check 90 91* Fri Jun 25 2021 wangkerong <wangkerong@huawei.com> - 2.8.1-1 92- update to 2.8.1 93 94* Thu Jan 28 2021 zhanzhimin <zhanzhimin@huawei.com> - 2.7.4-1 95- update to 2.7.4 96 97* Thu Sep 10 2020 chengguipeng <chengguipeng1@huawei.com> - 2.6.8-3 98- Type:bugfix 99- ID:NA 100- SUG:NA 101- DESC:modify source0 url 102 103* Wed Jul 29 2020 hanhui <hanhui15@huawei.com> - 2.6.8-2 104- modify HarfBuzz-0.0.gir patch 105 106* Tue Jul 21 2020 hanhui <hanhui15@huawei.com> - 2.6.8-1 107- Update to 2.6.8 108 109* Mon Jun 15 2020 hanhui <hanhui15@huawei.com> - 2.6.1-1 110- Update to 2.6.1 111 112* Mon Aug 26 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.8.7-2 113- Package Init 114