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/Libraries
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(cairo) >= %{cairo_version}
26 Pango is a library for laying out and rendering of text, with an emphasis
27 on internationalization. Pango can be used anywhere that text layout is needed,
28 though most of the work on Pango so far has been done in the context of the
29 GTK+ widget toolkit. Pango forms the core of text and font handling for GTK+.
31 Pango is designed to be modular; the core Pango layout engine can be used
32 with different font backends.
34 The integration of Pango with Cairo provides a complete solution with high
35 quality text handling and graphics rendering.
38 Summary: Development files for pango
39 Group: Development/Libraries
40 Requires: %{name} = %{version}-%{release}
43 The pango-devel package includes the header files and developer documentation
44 for the pango package.
56 %configure --disable-static \
61 --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