File perl-Pango.spec of Package perl-Pango

#
# spec file for package perl-Pango (Version 1.220)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           perl-Pango
BuildRequires:  cairo-devel pango-devel perl-Cairo perl-ExtUtils-Depends perl-ExtUtils-PkgConfig perl-Glib update-desktop-files xorg-x11 xorg-x11-Xvfb xorg-x11-server
Version:        1.220
Release:        1
Requires:       perl = %{perl_version}
Requires:       perl-Glib perl-Cairo
AutoReqProv:    on
Group:          Development/Libraries/Perl
License:        LGPL v2.1 or later
Url:            http://gtk2-perl.sourceforge.net
Summary:        Pango Perl module (bindings)
Source:         Pango-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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.



%prep
%setup -q -n Pango-%{version}

%build
export OPTIMIZE="$RPM_OPT_FLAGS"
perl Makefile.PL OPTIMIZE="$OPTIMIZE"
make OPTIMIZE="$OPTIMIZE"

%check
Xvfb -fp /usr/share/fonts/misc -extension RANDR :95 &
trap "kill $! || true" EXIT
sleep 5
DISPLAY=:95 make test

%install
%perl_make_install
%perl_process_packlist

%clean
rm -rf $RPM_BUILD_ROOT

%files 
%defattr(-,root,root)
%doc AUTHORS LICENSE NEWS README
%doc %{_mandir}/man?/*
%{perl_vendorarch}/Pango.pm
%{perl_vendorarch}/Pango
%{perl_vendorarch}/auto/Pango
/var/adm/perl-modules/%{name}

%changelog
* Mon Mar 23 2009 anicka@suse.cz
- update to 1.220
  * Makefile.PL: Use Glib::MakeMaker to add a precompiled-headers
  Makefile target that precompiles pango-perl.h.
  * xs/PangoLayout.xs: Allow passing undef to
  Gtk2::Pango::Layout::set_attributes().
* Thu Feb 12 2009 ro@suse.de
- created package version 1.210 (unstable)
openSUSE Build Service is sponsored by