File perl-Gtk2.spec of Package perl-Gtk2

#
# spec file for package perl-Gtk2 (Version 1.200)
#
# Copyright (c) 2008 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 update-desktop-files xorg-x11 xorg-x11-Xvfb xorg-x11-server
Version:        1.200
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://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"
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
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
* Mon Oct 06 2008 anicka@suse.cz
- update to 1.200
  * xs/GtkDialog.xs: Use gtk_dialog_get_content_area and
  gtk_dialog_get_action_area if available to implement
  Gtk2::Dialog->get_content_area and Gtk2::Dialog->get_action_area,
  and fallback to direct struct access otherwise.  Deprecate
  Gtk2::Dialog->vbox and Gtk2::Dialog->action_area.
  * bug fixes, test fixes
* Thu Jun 19 2008 anicka@suse.cz
- update to 1.183
  * xs/GtkAdjustment.xs: Improve the documentation for the
  accessors.
  * xs/GtkWidget.xs: Document why signal_chain_from_overridden
  doesn't quite work when used in a size-request handler.
  * t/GtkRecentManager.t: Fix test failures due to the asynchronous
  nature of the manager's add_item().
  * xs/GdkProperty.xs: Overload '!=' for GdkAtoms.
  * xs/GdkWindow.xs: Add documentation for Gtk2::Gdk::Window::new.
  * xs/GdkWindow.xs (SvGdkWindowAttrReal): Use sv_2bool instead of
  SvUV to convert override_redirect values.
  * xs/GtkTreeModel.xs (gtk2perl_tree_model_iter_has_child): Accept
  all the usual boolean values for the return value of
  ITER_HAS_CHILD.
  * t/PangoLayout.t: Fix test failure on newer pango versions.
  * xs/GtkTreeView.xs: Describe the return values of
  get_visible_range and get_tooltip_context.
  * xs/GtkTreeModel.xs: In the POD section about tree iterators, add
  a paragraph explaining how data put into iterators needs to be
  kept alive by the model.
  * xs/GdkDisplay.xs: Allow undef for the display name parameter of
  Gtk2::Gdk::Display::open.
* Wed Apr 09 2008 anicka@suse.cz
- update to 1.182
  * xs/GtkScaleButton.xs: NULL-terminate the icon list passed to
  gtk_scale_button_new and gtk_scale_button_set_icons.
  * xs/GtkBuildable.xs (gtk2perl_buildable_custom_tag_start): Don't
  declare variables after expressions.
  * Makefile.PL: Depend on ExtUtils::Depends 0.300 and thereby void
  the need for the find_extra_libs stuff.
  * Gtk2/t/PangoCairo.t: Fix test failures, mostly on MSWin32
  and cygwin.
  * Makefile.PL: Trap exceptions thrown by EU::PkgConfig->find.
  When one occurs, exit with status 0 to indicate to CPAN testers
  that their system isn't supported.
* Mon Mar 17 2008 anicka@suse.cz
- update to 1.181
  * t/GtkBuildableIface.t: Fix test failure on gtk+ < 2.12.
  * Makefile.PL: Remove the no_index specification from EXTRA_META
  because the YAML implementations currently in use don't seem to
  support this syntax yet.
  * t/GtkTreeView.t: Fix remaining test failures.
  * xs/PangoLayout.xs: Wrap pango_layout_set_height and
  pango_layout_get_height.
  * xs/PangoTypes.xs (Gtk2::Pango::extents_to_pixel): Change the
  names of the arguments from "ink_rect, logical_rect" to
  "inclusive, nearest" as suggested by upstream.
  * xs/PangoLayout.xs: Wrap pango_layout_iter_get_layout and make
  use of pango_layout_iter_copy if available.
  * xs/PangoRenderer.xs: Wrap pango_renderer_get_layout and
  pango_renderer_get_layout_line.
  * t/GtkTreeView.t: Hopefully fix some test failures involving a
  wrong number of tests run by having every callback with tests
  run only once.
* Tue Jan 15 2008 anicka@suse.cz
- update to 1.164
  * xs/PangoLayout.xs: Work around what appears to be a bug in
  ExtUtils::ParseXS' xsubpp (used by default in perl 5.10.0) for
  the pango_layout_line_x_to_index xsub: manually handle output
  arguments, i.e. dont't rely on OUTLIST.  This should fix the
  "Modification of a read-only value attempted" issue.
  * xs/GdkPixbuf.xs: Fix the signature docs for get_file_info(),
  suggested by Kevin Ryde.  Also add a brief description of the
  function.
  * t/GtkIconTheme.t (list_contexts test): Fix test failure.
  * bugfixes, test fixes
* Wed Nov 21 2007 anicka@suse.cz
- update to 1.162
  * Gtk2.pm (Gtk2::Builder::_do_connect): Don't use the qw//
  operator to qoute a flag value as it seems to cause parse
  failures on some perls.
* Fri Nov 09 2007 anicka@suse.cz
- update to 1.161
  * bugfixes, test fixes
* Thu Oct 25 2007 anicka@suse.cz
- update to 1.160
  * xs/GtkStatusIcon.xs: Make the x, y arguments to
  Gtk2::StatusIcon::position_menu optional.
  * xs/PangoAttributes.xs: Bless the array used to represent
  PangoColor so it becomes possible to call methods on it.
  Introduce some stack fiddling so you can use
  Gtk2::Pango::Color::to_string as a method and a class
  function.
  * xs/GtkBuilder.xs: Document the $builder->connect_signals
  ($user_data, $object) way of connecting signals.
  * xs/GtkCellRenderer.xs: Mortalize all SVs we put on the stack.
  In the past, we had to be careful not to cause destruction of
  pre-existing C objects, but that's not necessary anymore.
  * xs/GdkPixbuf.xs: Really plug the leaks in
  Gtk2::Gdk::Pixbuf::render_pixmap_and_mask() and
  render_pixmap_and_mask_for_colormap().
  * bugfixes, test fixes
- temporarily disable GdkKeys.t to avoid failing builds
* Tue Aug 21 2007 ro@suse.de
- update to 1.146 to fix test failures
* Thu Jul 12 2007 anicka@suse.cz
- temporarily disable some tests failing with gtk2 2.11.5
  (they seem to be wrong anyway)
* Mon Jul 09 2007 anicka@suse.cz
- update to 1.145
  * xs/GtkAboutDialog.xs: Hide the AboutDialog on any reponse.
  * xs/GdkPixbuf.xs: Plug reference leaks on the pixmap and bitmap
  returned from Gtk2::Gdk::Pixbuf::render_pixmap_and_mask() and
  render_pixmap_and_mask_for_colormap(). Also add a couple of
  FIXMEs.
  * xs/GtkIconView.xs: Supply default values for scroll_to_path.
  * xs/GtkTreeStore.xs: Make sure Gtk2::ListStore's and
  Gtk2::TreeStore's move_before() and move_after() accept undef
  for the position parameter.
  * test fixes
- remove last patch (fixed in upstream)
* Tue Jul 03 2007 jw@suse.de
- added gtk-demo next to examples.
* Thu Jun 21 2007 anicka@suse.cz
- disable one wrong test in GtkIconTheme.t
* Wed Mar 14 2007 anicka@suse.cz
- update to 1.144
  * t/GtkEditable.t, xs/GtkEditbale.xs: fix string encoding problems
  in the insert-text signal marshaller.
* Mon Feb 26 2007 anicka@suse.cz
- update to 1.143
  * Gtk2.pm, t/GtkTreeModelSort.t, xs/GtkTreeModelSort.xs: Make
  sure calling get() on a Gtk2::TreeModelSort resolves to
  Gtk2::TreeModel::get if appropriate, and, to keep backwards
  compatibility, to Glib::Object::get otherwise.
  * t/GtkTreeModelSort.t, xs/GtkTreeModelSort.xs: fix copy and
  paste error that made
  gtk_tree_model_sort_convert_child_iter_to_iter() unusable.
- enable one test fixed in upstream
* Thu Jan 25 2007 anicka@suse.cz
- update to 1.142
  * t/GtkIconView.t, xs/GtkIconView.xs: Fix the path handling in
  Gtk2::IconView::get_selected_items.  Previously, the returned
  paths were pointing to dead memory and any attempt to use them
  caused havoc.
  * xs/GtkRecentManager.xs: Add more documentation for the
  Gtk2::RecentManager::add_item and Gtk2::RecentManager::add_full
  methods; define the needed keys for the hashref to be passed
  to the add_full method.
  * GtkTreeSortable.xs: Don't segfault in the GET_SORT_COLUMN_ID
  marshaller if any of the output parameter pointers is NULL.
- enable test fixed in upstream
* Thu Dec 21 2006 anicka@suse.cz
- update to 1.141
  * t/PangoCairo.t, xs/PangoCairo.xs: Also allow using method
  calling semantics for pango_cairo_context_*.
  * fixes in documentation and tests
- enable tests fixed in upstream
* Sat Sep 16 2006 anicka@suse.de
- disable GtkIconView.t because it hangs on ppc64 machines
  (#206001)
* Wed Sep 13 2006 anicka@suse.cz
- add xorg-x11-Xvfb, xorg-x11, xorg-x11-server to BuildRequires
- disable some tests that randomly fail
* Tue Sep 12 2006 anicka@suse.cz
- update to 1.140
  * Don't call Gtk2::Gdk::Threads::init on a non-threading perl.
  * added support for more GTK objects
  * require Cairo.pm
  * bugfixes, new testsuites
* Fri Aug 18 2006 aj@suse.de
- Reduce BuildRequires.
* Fri Jul 21 2006 anicka@suse.cz
- update to 1.122
  * bugfixes and fixes to tests added
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jan 04 2006 anicka@suse.cz
- update to 1.102
* Fri Nov 11 2005 anicka@suse.cz
- update to 1.101
* Mon Aug 01 2005 mjancar@suse.cz
- update to 1.083
* Thu Jul 21 2005 anicka@suse.cz
- add perl-Glib to Requires (#95905)
* Fri Jan 21 2005 ro@suse.de
- update to 1.072
* Tue Nov 02 2004 mcihar@suse.cz
- initial packaging
openSUSE Build Service is sponsored by