File perl-Gtk2.spec of Package perl-Gtk2
#
# spec file for package perl-Gtk2 (Version 1.221)
#
# 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-Gtk2
BuildRequires: gtk2-devel perl-Cairo perl-ExtUtils-Depends perl-ExtUtils-PkgConfig perl-Glib perl-Pango update-desktop-files xorg-x11 xorg-x11-Xvfb xorg-x11-server
Version: 1.221
Release: 2
Requires: perl = %{perl_version}
Requires: perl-Glib perl-Cairo perl-Pango
AutoReqProv: on
Group: Development/Libraries/Perl
License: LGPL v2.1 or later
Url: http://cpan.org/modules/by-module/Gtk2/
Summary: Gtk2 Perl module
Source: Gtk2-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Perl bindings to the 2.x series of the Gtk+ widget set. This module
allows you to write graphical user interfaces in a perlish and
object-oriented way, freeing you from the casting and memory management
in C, yet remaining very close in spirit to original API.
Authors:
--------
muppet <scott@asofyet.org>
Ross McFarland <rwmcfa1@neces.com>
Torsten Schoenfeld <kaffeetisch@web.de>
Marc Lehmann <pcg@goof.com>
Goran Thyni <goran@kirra.net>
Joern Reder <joern@zyn.de>
Chas Owens <alas@wilma.widomaker dot com>
Guillaume Cottenceau <gc@mandrakesoft.com>
%prep
%setup -q -n Gtk2-%{version}
%build
export OPTIMIZE="$RPM_OPT_FLAGS"
perl Makefile.PL OPTIMIZE="$OPTIMIZE"
make OPTIMIZE="$OPTIMIZE"
%check
Xvfb :95 &
trap "kill $! || true" EXIT
sleep 5
#disable tests that randomly fail
mv t/GdkGC.t t/GdkGC.tt
mv t/GtkStyle.t t/GtkStyle.tt
mv t/GdkDnd.t t/GdkDnd.tt
mv t/GdkKeys.t t/GdkKeys.tt
mv t/GtkScaleButton.t t/GtkScaleButton.tt
mv t/GtkIconView.t t/GtkIconView.tt
%if %suse_version <= 1110
mv t/GtkTreeView.t t/GtkTreeView.tt
%endif
DISPLAY=:95 make test
%install
%perl_make_install
%perl_process_packlist
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc examples gtk-demo AUTHORS LICENSE NEWS README TODO
%doc %{_mandir}/man?/*
%{perl_vendorarch}/Gtk2.pm
%{perl_vendorarch}/Gtk2
%{perl_vendorarch}/auto/Gtk2
/var/adm/perl-modules/%{name}
%changelog