diff --git a/pango-1.52.2.tar.xz b/pango-1.52.2.tar.xz deleted file mode 100644 index f389c93794676d32d1078a3ee47759efc8e4bf7f..0000000000000000000000000000000000000000 Binary files a/pango-1.52.2.tar.xz and /dev/null differ diff --git a/pango-1.57.0.tar.xz b/pango-1.57.0.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..fce3672501c8e9976733f1e42c8eeef9482da257 Binary files /dev/null and b/pango-1.57.0.tar.xz differ diff --git a/pango.spec b/pango.spec index 617142db6cb76452bac8f051027580cd9679ef86..821ef9889a63b35a6df95c6acc09c96899a712c0 100644 --- a/pango.spec +++ b/pango.spec @@ -1,22 +1,23 @@ -%global glib2_version 2.62 +%global glib2_version 2.80 %global fribidi_version 1.0.6 %global libthai_version 0.1.9 -%global harfbuzz_version 2.6.0 -%global fontconfig_version 2.13.0 +%global harfbuzz_version 8.4.0 +%global fontconfig_version 2.15.0 %global libXft_version 2.0.0 -%global cairo_version 1.12.10 +%global cairo_version 1.18 +%global freetype_version 2.1.5 Name: pango -Version: 1.52.2 +Version: 1.57.0 Release: 1 Summary: System for layout and rendering of internationalized text License: LGPL-2.0-or-later URL: https://pango.gnome.org/ -Source0: https://download.gnome.org/sources/%{name}/1.52/%{name}-%{version}.tar.xz +Source0: https://download.gnome.org/sources/%{name}/1.57/%{name}-%{version}.tar.xz BuildRequires: pkgconfig(cairo) >= %{cairo_version} BuildRequires: pkgconfig(cairo-gobject) >= %{cairo_version} -BuildRequires: pkgconfig(freetype2) +BuildRequires: pkgconfig(freetype2) >= %{freetype_version} BuildRequires: pkgconfig(glib-2.0) >= %{glib2_version} BuildRequires: pkgconfig(fontconfig) >= %{fontconfig_version} BuildRequires: pkgconfig(harfbuzz) >= %{harfbuzz_version} @@ -27,9 +28,13 @@ BuildRequires: pkgconfig(gobject-introspection-1.0) BuildRequires: help2man BuildRequires: meson >= 0.60.0 BuildRequires: gcc gcc-c++ -BuildRequires: gi-docgen +BuildRequires: gi-docgen +BuildRequires: python3-docutils +# check +BuildRequires: docbook-utils-pdf Requires: glib2%{?_isa} >= %{glib2_version} +Requires: freetype{?_isa} >= %{freetype_version} Requires: fontconfig%{?_isa} >= %{fontconfig_version} Requires: cairo%{?_isa} >= %{cairo_version} Requires: harfbuzz%{?_isa} >= %{harfbuzz_version} @@ -37,6 +42,9 @@ Requires: libthai%{?_isa} >= %{libthai_version} Requires: libXft%{?_isa} >= %{libXft_version} Requires: fribidi%{?_isa} >= %{fribidi_version} +Provides: %{name}-tests = %{version}-%{release} +Obsoletes: %{name}-tests < %{version}-%{release} + %description Pango is a library for laying out and rendering of text, with an emphasis on internationalization. Pango can be used anywhere that text layout is needed, @@ -52,8 +60,10 @@ quality text handling and graphics rendering. %package devel Summary: Development files for pango Requires: pango%{?_isa} = %{version}-%{release} -Provides: %{name}-tests = %{version}-%{release} -Obsoletes: %{name}-tests < %{version}-%{release} +Requires: glib2-devel%{?_isa} = %{glib2_version} +Requires: freetype-devel%{?_isa} = %{freetype_version} +Requires: fontconfig-devel%{?_isa} = %{fontconfig_version} +Requires: cairo-devel%{?_isa} = %{cairo_version} %description devel The pango-devel package includes the header files and developer documentation @@ -65,11 +75,12 @@ for the pango package. %autosetup -n %{name}-%{version} -p1 %build -# "test-font" testcases always failed, so we don't run this case, We have reported this bug to the upstream community -# use this link to track bugs https://gitlab.gnome.org/GNOME/pango/-/issues/682 -sed -i '/test-font.c/d' ./tests/meson.build -sed -i '/test-layout.c/d' ./tests/meson.build -%meson -Dinstall-tests=true -Dgtk_doc=true +export CFLAGS='-std=c11 %optflags' +%meson \ + -Dbuild-testsuite=true \ + -Dbuild-examples=true \ + -Ddocumentation=true + %meson_build %install @@ -99,12 +110,9 @@ fi %{_includedir}/* %{_libdir}/pkgconfig/* %{_datadir}/gir-1.0/*.gir -%{_libexecdir}/installed-tests/%{name} -%{_datadir}/installed-tests %files help %doc NEWS -%{_mandir}/man1/pango-view.1.* %{_docdir}/Pango/ %{_docdir}/PangoCairo/ %{_docdir}/PangoFT2/ @@ -113,6 +121,9 @@ fi %{_docdir}/PangoXft/ %changelog +* Fri Sep 12 2025 liweigang - 1.57.0-1 +- update to version 1.57.0 + * Tue Sep 24 2024 Funda Wang - 1.52.2-1 - update to version 1.52.2