diff --git a/pango-1.49.3.tar.xz b/pango-1.49.3.tar.xz deleted file mode 100644 index 5d058d87c0131e9ab4d0de2e6eea3ed9cabb55c8..0000000000000000000000000000000000000000 Binary files a/pango-1.49.3.tar.xz and /dev/null differ diff --git a/pango-1.50.6.tar.xz b/pango-1.50.6.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..b850b8bbd194416d13ab1c2af532cd70fa2ea905 Binary files /dev/null and b/pango-1.50.6.tar.xz differ diff --git a/pango.spec b/pango.spec index 7586d2e9563ae0c0fe645c73fc0c84ccc28b832e..419777bfa0005c196b0b561be3efea6bc345ea31 100644 --- a/pango.spec +++ b/pango.spec @@ -1,82 +1,134 @@ -Name: pango -Version: 1.49.3 -Release: 1 -Summary: A library for layout and rendering of text +%global glib2_version 2.62 +%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 libXft_version 2.0.0 +%global cairo_version 1.12.10 +%global freetype_version 2.1.5 + +Name: pango +Version: 1.50.6 +Release: 1 +Summary: System for layout and rendering of internationalized text + +License: LGPLv2+ +URL: https://pango.gnome.org/ +Source0: https://download.gnome.org/sources/%{name}/1.50/%{name}-%{version}.tar.xz + +BuildRequires: pkgconfig(cairo) >= %{cairo_version} +BuildRequires: pkgconfig(cairo-gobject) >= %{cairo_version} +BuildRequires: pkgconfig(freetype2) >= %{freetype_version} +BuildRequires: pkgconfig(glib-2.0) >= %{glib2_version} +BuildRequires: pkgconfig(fontconfig) >= %{fontconfig_version} +BuildRequires: pkgconfig(harfbuzz) >= %{harfbuzz_version} +BuildRequires: pkgconfig(libthai) >= %{libthai_version} +BuildRequires: pkgconfig(xft) >= %{libXft_version} +BuildRequires: pkgconfig(fribidi) >= %{fribidi_version} +BuildRequires: pkgconfig(gobject-introspection-1.0) +BuildRequires: help2man +BuildRequires: meson +BuildRequires: gcc gcc-c++ + +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} +Requires: libthai%{?_isa} >= %{libthai_version} +Requires: libXft%{?_isa} >= %{libXft_version} +Requires: fribidi%{?_isa} >= %{fribidi_version} -License: LGPLv2+ -URL: https://pango.gnome.org/ -Source0: https://download.gnome.org//sources/pango/1.49/%{name}-%{version}.tar.xz +%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, +though most of the work on Pango so far has been done in the context of the +GTK+ widget toolkit. Pango forms the core of text and font handling for GTK+. -BuildRequires: pkgconfig(cairo) >= 1.12.10 pkgconfig(fontconfig) >= 2.12.92 pkgconfig(freetype2) >= 2.1.5 -BuildRequires: pkgconfig(fribidi) >= 1.0 pkgconfig(glib-2.0) >= 2.59.2 pkgconfig(harfbuzz) >= 2.0.0 -BuildRequires: pkgconfig(xft) >= 2.0.0 pkgconfig(libthai) >= 0.1.9 pkgconfig(gobject-introspection-1.0) -BuildRequires: cairo-gobject-devel meson help2man gcc gcc-c++ harfbuzz-help -BuildRequires: pango +Pango is designed to be modular; the core Pango layout engine can be used +with different font backends. -Requires: cairo >= 1.12.10 fontconfig >= 2.12.92 freetype >= 2.1.5 fribidi >= 1.0 -Requires: glib2 >= 2.59.2 harfbuzz >= 2.0.0 libXft >= 2.0.0 libthai >= 0.1.9 +The integration of Pango with Cairo provides a complete solution with high +quality text handling and graphics rendering. -%description -Pango is a library for layout and rendering of text, with an emphasis -on internationalization. Pango can be used anywhere that text layout -is needed; however, most of the work on Pango so far has been done using -the GTK+ widget toolkit as a test platform. Pango forms the core of text -and font handling for GTK+-2.x. +%package devel +Summary: Development files for pango +Requires: pango%{?_isa} = %{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 +for the pango package. -%package devel -Summary: Development environment for %{name} -Requires: %{name} = %{version}-%{release} freetype-devel >= 2.1.5 -Requires: glib2-devel >= 2.59.2 fontconfig-devel >= 2.12.92 cairo-devel >= 1.12.10 -Provides: %{name}-tests = %{version}-%{release} -Obsoletes: %{name}-tests < %{version}-%{release} +%package tests +Summary: Tests for the %{name} package +Requires: %{name}%{?_isa} = %{version}-%{release} -%description devel -The %{name}-devel package contains libraries header files and tests for -the %{name}. +%description tests +The %{name}-tests package contains tests that can be used to verify +the functionality of the installed %{name} package. -%package_help %prep -%autosetup -n %{name}-%{version} -p1 +%autosetup -n pango-%{version} -p1 + %build -%meson -Denable_docs=true -Dinstall-tests=true +%meson \ + -Dinstall-tests=true + %meson_build + %install %meson_install -test -e %{buildroot}%{_libdir}/libpangoxft-1.0.so -cp -a %{_libdir}/libpango-1.0.so.0.4700.0 $RPM_BUILD_ROOT%{_libdir} -cp -a %{_libdir}/libpangocairo-1.0.so.0.4700.0 $RPM_BUILD_ROOT%{_libdir} -cp -a %{_libdir}/libpangoft2-1.0.so.0.4700.0 $RPM_BUILD_ROOT%{_libdir} -cp -a %{_libdir}/libpangoxft-1.0.so.0.4700.0 $RPM_BUILD_ROOT%{_libdir} +PANGOXFT_SO=$RPM_BUILD_ROOT%{_libdir}/libpangoxft-1.0.so +if ! test -e $PANGOXFT_SO; then + echo "$PANGOXFT_SO not found; did not build with Xft support?" + ls $RPM_BUILD_ROOT%{_libdir} + exit 1 +fi + %files -%defattr(-,root,root) -%doc README.md %license COPYING +%doc NEWS README.md %{_libdir}/libpango*-*.so.* -%{_bindir}/%{name}-list -%{_bindir}/%{name}-view -%{_bindir}/%{name}-segmentation -%{_libdir}/girepository-1.0/Pango*-1.0.typelib +%{_bindir}/pango-list +%{_bindir}/pango-segmentation +%{_bindir}/pango-view +%{_mandir}/man1/pango-view.1* +%{_libdir}/girepository-1.0/Pango-1.0.typelib +%{_libdir}/girepository-1.0/PangoCairo-1.0.typelib +%{_libdir}/girepository-1.0/PangoFc-1.0.typelib +%{_libdir}/girepository-1.0/PangoFT2-1.0.typelib +%{_libdir}/girepository-1.0/PangoOT-1.0.typelib +%{_libdir}/girepository-1.0/PangoXft-1.0.typelib %files devel -%defattr(-,root,root) -%{_libdir}/*.so +%{_libdir}/libpango*.so %{_includedir}/* %{_libdir}/pkgconfig/* -%{_datadir}/gir-1.0/*.gir -%{_libexecdir}/installed-tests/pango/ +%{_datadir}/gir-1.0/Pango-1.0.gir +%{_datadir}/gir-1.0/PangoCairo-1.0.gir +%{_datadir}/gir-1.0/PangoFc-1.0.gir +%{_datadir}/gir-1.0/PangoFT2-1.0.gir +%{_datadir}/gir-1.0/PangoOT-1.0.gir +%{_datadir}/gir-1.0/PangoXft-1.0.gir + +%files tests +%{_libexecdir}/installed-tests/%{name} %{_datadir}/installed-tests -%files help -%defattr(-,root,root) -%doc NEWS -%{_mandir}/man1/pango-view.1.* %changelog +* Mon Mar 28 2022 lin zhang - 1.50.6-1 +- Upgrade to 1.50.6 + * Fri Dec 17 2021 yangcheng - 1.49.3-1 - Upgrade to 1.49.3 @@ -121,4 +173,3 @@ cp -a %{_libdir}/libpangoxft-1.0.so.0.4700.0 $RPM_BUILD_ROOT%{_libdir} * Sun Sep 15 2019 openEuler Buildteam - 1.43.0-1 - Package Init -