# enable_gtkdoc: Toggle whether gtkdoc stuff should be rebuilt # 0 = No # 1 = Yes %define enable_gtkdoc 1 # Define biarch packages %define biarches_32 %{ix86} ppc %define biarches_64 x86_64 ppc64 %define api_version 1.0 %define gir_major 1.0 %define module_version 1.8.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.42.2 Release: %mkrel 1 License: LGPLv2+ Group: System/Internationalization URL: http://www.pango.org/ BuildRequires: pkgconfig(cairo) >= 1.12.10 BuildRequires: pkgconfig(fontconfig) >= 2.10.91 BuildRequires: pkgconfig(freetype2) BuildRequires: pkgconfig(glib-2.0) >= 2.33.12 BuildRequires: pkgconfig(gmodule-no-export-2.0) BuildRequires: pkgconfig(gobject-2.0) BuildRequires: pkgconfig(harfbuzz) >= 0.9.9 BuildRequires: pkgconfig(libthai) >= 0.1.9 BuildRequires: pkgconfig(xft) >= 2.0.0 BuildRequires: pkgconfig(xrender) BuildRequires: pkgconfig(fribidi) BuildRequires: gobject-introspection-devel >= 0.9.5 %if %enable_gtkdoc BuildRequires: gtk-doc >= 0.10 BuildRequires: libxslt-proc BuildRequires: docbook-style-xsl BuildRequires: docbook-dtd412-xml %endif Source0: https://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz %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} 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} Obsoletes: %mklibname -d %{name} %{api_version} %{lib_major} Conflicts: %{name} < 1.18.0-3mdv Conflicts: %{_lib}pango1.0_0 < 1.28.1-2 %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 %autopatch -p1 %build # generate build scripts using our autotools/libtoolize autoreconf -fi %configure2_5x \ --enable-static=no \ %if %enable_gtkdoc --enable-gtk-doc=yes \ %endif --enable-installed-tests %make_build ARCH=%{_arch} %check #disabled for https://bugzilla.gnome.org/show_bug.cgi?id=672981 make check || true %install %make_install # remove unpackaged files find %{buildroot} -name '*.la' -delete %files %doc README AUTHORS %doc NEWS %{_mandir}/man1/* %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 %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 %files doc %doc %{_datadir}/gtk-doc/html/pango %doc ChangeLog %doc pango-view/HELLO.txt %files tests %{_libexecdir}/installed-tests/%{name} %{_datadir}/installed-tests/%{name}