---
#description_paragraphs: 3
description: |-
  Pango is a library for laying out and rendering text, with an emphasis on
  internationalization. Pango can be used anywhere that text layout is
  needed, but using Pango in conjunction with L<Cairo> and/or L<Gtk2>
  provides a complete solution with high quality text handling and graphics
  rendering.
  
  Dynamically loaded modules handle text layout for particular
  combinations of script and font backend. Pango provides a wide selection
  of modules, including modules for Hebrew, Arabic, Hangul, Thai, and a
  number of Indic scripts. Virtually all of the world's major scripts are
  supported.
  
  In addition to the low level layout rendering routines, Pango includes
  Pango::Layout, a high level driver for laying out entire blocks of text,
  and routines to assist in editing internationalized text.
#summary: override summary from CPAN
#no_testing: broken upstream
#sources:
#  - source1
#  - source2
#patches:
#  foo.patch: -p1
#  bar.patch:
preamble: |-
  BuildRequires:  xorg-x11
  BuildRequires:  xorg-x11-Xvfb
  BuildRequires:  xorg-x11-server
  BuildRequires:  pkgconfig(cairo)
  BuildRequires:  pkgconfig(pango)
  %if %{with Gtk2}
  BuildRequires:  perl(Gtk2) >= 1.220
  %endif
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s,  *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL 
#post_build: |-
# rm unused.files
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
custom_test: |-
  %if %{with Gtk2}
  #### FIXME
  #### failing with:
  ## (EE) XKB: Couldn't open rules file /usr/share/X11/xkb/rules/base
  ## XKB: Failed to compile keymap
  ## Keyboard initialization failed. This could be a missing or incorrect setup of xkeyboard-config
  #
  Xvfb -fp /usr/share/fonts/misc -extension RANDR :95 &
  trap "kill $! || true" EXIT
  sleep 5
  DISPLAY=:95 make test
  %else
  make test
  %endif


#startserver && make test
#ignore_requires: Bizarre::Module
