1 %define freetype_version 2.1.3-3
2 %define fontconfig_version 2.6
3 %define cairo_version 1.7.6
6 Summary: System for layout and rendering of internationalized text
9 Group: System/GUI/GNOME
11 URL: http://www.pango.org
12 Source0: http://download.gnome.org/sources/pango/1.26/pango-%{version}.tar.gz
13 Patch0: 10_scan-module-files-in-dirs.patch
14 Patch1: 11_module-files-append-module-files-d.patch
15 Patch2: 12_module-files-append-compat-module-files-d.patch
16 BuildRequires: pkgconfig(glib-2.0)
17 BuildRequires: pkgconfig(freetype2) >= %{freetype_version}
18 BuildRequires: pkgconfig(fontconfig) >= %{fontconfig_version}
19 BuildRequires: pkgconfig(xt)
20 BuildRequires: pkgconfig(xrender)
21 BuildRequires: pkgconfig(x11)
22 BuildRequires: pkgconfig(xext)
23 BuildRequires: pkgconfig(xft)
24 BuildRequires: pkgconfig(cairo) >= %{cairo_version}
27 Pango is a library for laying out and rendering of text, with an emphasis
28 on internationalization. Pango can be used anywhere that text layout is needed,
29 though most of the work on Pango so far has been done in the context of the
30 GTK+ widget toolkit. Pango forms the core of text and font handling for GTK+.
32 Pango is designed to be modular; the core Pango layout engine can be used
33 with different font backends.
35 The integration of Pango with Cairo provides a complete solution with high
36 quality text handling and graphics rendering.
39 Summary: Development files for pango
40 Group: Development/Libraries
41 Requires: %{name} = %{version}-%{release}
44 The pango-devel package includes the header files and developer documentation
45 for the pango package.
57 %configure --disable-static \
62 --enable-explicit-deps=yes \
64 ac_cv_lib_cairo_cairo_xlib_surface_create=yes \
65 ac_cv_lib_cairo_cairo_ft_scaled_font_lock_face=yes
72 rm -rf $RPM_BUILD_ROOT/usr/share/gtk-doc
73 rm -rf $RPM_BUILD_ROOT/usr/share/man
75 mkdir -p %{buildroot}%{_libdir}/pango/%{MODVER}/module-files.d
76 touch $RPM_BUILD_ROOT%{_libdir}/pango/%{MODVER}/module-files.d/%{name}.modules
80 %{_bindir}/pango-querymodules > %{_libdir}/pango/%{MODVER}/module-files.d/%{name}.modules
82 %postun -p /sbin/ldconfig
85 %{_libdir}/libpango*-*.so.*
87 %{_bindir}/pango-querymodules
90 %{_libdir}/libpango*.so
92 %{_libdir}/pkgconfig/*.pc
94 %dir %{_sysconfdir}/pango
95 %config %{_sysconfdir}/pango/pangox.aliases