# bcond_with = disable # bcond_without = enable %bcond_without gtkdoc %define api_version 1.0 %define gir_major 1.0 %define lib_major 0 %define lib_name %mklibname %{name} %{api_version} %{lib_major} %define libnamedev %mklibname -d %{name} %{api_version} %define gir_name %mklibname %{name}-gir %{gir_major} %define url_ver %(echo %{version}|cut -d. -f1,2) Summary: System for layout and rendering of internationalized text Name: pango Version: 1.45.1 Release: %mkrel 3 License: LGPLv2+ Group: System/Internationalization URL: https://pango.gnome.org/ Source0: https://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz # Fix for MGA#25737 ( https://bugs.mageia.org/show_bug.cgi?id=25737 ) # Taken from https://bugs.mageia.org/show_bug.cgi?id=25737 Patch1: pango-mga25737.patch Patch2: https://gitlab.gnome.org/GNOME/pango/-/commit/1f06c9154675fb6f956ecfadcf9dcdf790413c8e.patch Patch3: https://gitlab.gnome.org/GNOME/pango/-/commit/9b7b67f5e01397de03bf46bb5f8446c30952fb33.patch # See: https://gitlab.gnome.org/GNOME/pango/-/issues/479 # crash in gtk2 apps # Patch4: https://gitlab.gnome.org/GNOME/pango/-/commit/89ca7a4299b873746e3b6c1e1260ee8430b63fd4.patch Patch4: 89ca7-backport.patch # See: https://gitlab.gnome.org/GNOME/pango/-/issues/480 # Patch5: https://gitlab.gnome.org/GNOME/pango/-/commit/279bd5256b17ed68d50fbaaf7df60f189de33c96.patch Patch5: 279bd5256b17ed68d50fbaaf7df60f189de33c96-backport.patch BuildRequires: pkgconfig(cairo) BuildRequires: pkgconfig(fontconfig) BuildRequires: pkgconfig(freetype2) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gmodule-no-export-2.0) BuildRequires: pkgconfig(gobject-2.0) BuildRequires: pkgconfig(harfbuzz) BuildRequires: pkgconfig(libthai) BuildRequires: pkgconfig(xft) BuildRequires: pkgconfig(xrender) BuildRequires: pkgconfig(fribidi) BuildRequires: meson BuildRequires: pkgconfig(gobject-introspection-1.0) %if %{with gtkdoc} BuildRequires: gtk-doc BuildRequires: libxslt-proc BuildRequires: docbook-style-xsl BuildRequires: docbook-dtd412-xml %endif %description A library to handle Unicode strings as well as complex bidirectional or context dependent shaped strings. It is the next step on Gtk+ internationalization. %package -n %{lib_name} Summary: %{summary} Group: %{group} Provides: lib%{name}%{api_version} = %{version}-%{release} Provides: lib%{name} = %{version}-%{release} Requires: %{name} >= %{version}-%{release} Obsoletes: %{lib_name}-modules < 1.37.0 Conflicts: gir-repository < 0.6.5 %description -n %{lib_name} A library to handle Unicode strings as well as complex bidirectional or context dependent shaped strings. It is the next step on Gtk+ internationalization. %package -n %{libnamedev} Summary: %{summary} Group: Development/GNOME and GTK+ Obsoletes: %{name}-devel Provides: %{name}-devel = %{version}-%{release} Provides: lib%{name}-devel = %{version}-%{release} Provides: lib%{name}%{api_version}-devel = %{version}-%{release} Requires: %{name} = %{version} Requires: %{lib_name} = %{version} Requires: %{gir_name} = %{version} Recommends: %{name}-doc >= %{version} %description -n %{libnamedev} This package includes the static libraries and header files for the pango package. %package -n %{gir_name} Summary: GObject Introspection interface description for %{name} Group: System/Libraries Requires: %{lib_name} = %{version}-%{release} Conflicts: %{mklibname %{name}1.0-gir 1.0}} < 1.29.3-4 %description -n %{gir_name} GObject Introspection interface description for %{name}. %package doc Summary: %{summary} Group: Development/GNOME and GTK+ BuildArch: noarch %description doc This package provides API documentation for Pango. %package tests Summary: Tests for the %{name} package Group: Development/GNOME and GTK+ Requires: %{name} = %{version}-%{release} %description tests The %{name}-tests package contains tests that can be used to verify the functionality of the installed %{name} package. %prep %setup -q %patch1 -p1 #patch2 -p1 #patch3 -p1 -R %patch4 -p1 %patch5 -p1 %build %meson \ -Dinstall-tests=true \ -Dgtk_doc=%{?with_gtkdoc:true}%{!?with_gtkdoc:false} %meson_build %check #disabled for https://bugzilla.gnome.org/show_bug.cgi?id=672981 %meson_check || true %install %meson_install %files %doc README.md THANKS %doc NEWS %if %{with gtkdoc} %{_mandir}/man1/* %endif %{_bindir}/pango-list %files -n %{lib_name} %{_libdir}/libpango-%{api_version}.so.%{lib_major}{,.*} %{_libdir}/libpangoft2-%{api_version}.so.%{lib_major}{,.*} %{_libdir}/libpangoxft-%{api_version}.so.%{lib_major}{,.*} %{_libdir}/libpangocairo-%{api_version}.so.%{lib_major}{,.*} %files -n %{gir_name} %{_libdir}/girepository-1.0/Pango-%{gir_major}.typelib %{_libdir}/girepository-1.0/PangoCairo-%{gir_major}.typelib %{_libdir}/girepository-1.0/PangoFT2-%{gir_major}.typelib %{_libdir}/girepository-1.0/PangoXft-%{gir_major}.typelib %{_libdir}/girepository-1.0/PangoFc-%{gir_major}.typelib %{_libdir}/girepository-1.0/PangoOT-%{gir_major}.typelib %files -n %{libnamedev} %{_bindir}/pango-view* %{_libdir}/libpango-*.so %{_libdir}/libpangoxft-*.so %{_libdir}/libpangoft2-*.so %{_libdir}/libpangocairo*.so %{_libdir}/pkgconfig/* %{_includedir}/* %{_datadir}/gir-1.0/Pango-%{gir_major}.gir %{_datadir}/gir-1.0/PangoCairo-%{gir_major}.gir %{_datadir}/gir-1.0/PangoFT2-%{gir_major}.gir %{_datadir}/gir-1.0/PangoXft-%{gir_major}.gir %{_datadir}/gir-1.0/PangoFc-%{gir_major}.gir %{_datadir}/gir-1.0/PangoOT-%{gir_major}.gir %if %{with gtkdoc} %files doc %doc %{_datadir}/gtk-doc/html/pango %doc utils/HELLO.txt %endif %files tests %{_libexecdir}/installed-tests/%{name} %{_datadir}/installed-tests/%{name}