# # spec file for package perl-Glib (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-Glib BuildRequires: glib2-devel perl-ExtUtils-Depends perl-ExtUtils-PkgConfig Version: 1.220 Release: 1 Requires: perl = %{perl_version} AutoReqProv: on Group: Development/Libraries/Perl License: LGPL v2.1 or later Url: http://cpan.org/modules/by-module/Glib/ Summary: Glib Perl module Source: Glib-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build %description This module provides perl access to GLib and GLib's GObject libraries. GLib is a portability and utility library; GObject provides a generic type system with inheritance and a powerful signal system. Together these libraries are used as the foundation for many of the libraries that make up the Gnome environment, and are used in many unrelated projects. Authors: -------- muppet Ross McFarland Goran Thyni Joern Reder Chas Owens Guillaume Cottenceau Marc Lehmann Torsten Schoenfeld %prep %setup -q -n Glib-%{version} %build perl Makefile.PL make %check make test %install %perl_make_install %perl_process_packlist %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc ChangeLog README AUTHORS LICENSE NEWS TODO %doc %{_mandir}/man?/* %{perl_vendorarch}/Glib %{perl_vendorarch}/Glib.pm %{perl_vendorarch}/auto/Glib /var/adm/perl-modules/%{name} %changelog * Wed Mar 18 2009 anicka@suse.cz - update to 1.220 * GType.xs (gperl_fundamental_type_from_obj): Check the SV for definedness before passing it to SvRV. * GClosure.xs (gperl_closure_marshal): Synchronize the way signals with no return value are handled with how it's done in gperl_signal_class_closure_marshal. This means that Perl handlers for these kinds of signals are now always called in void context, as they should be. * gperl.h: Provide gperl_register_boxed_alias, gperl_register_fundamental_alias, and gperl_register_object_alias to register aliases for other registered types. An alias is a package name that will resolve to the specified type, while the type will still resolve to its originally registered package when going the other way. * Glib.pm: Add constants Glib::SOURCE_CONTINUE and SOURCE_REMOVE for use in source-type callbacks. * test fixes, docs fixes * Mon Oct 06 2008 anicka@suse.cz - update to 1.200 * GClosure.xs (gperl_callback_invoke): Instead of putting a mortal copy of the user data on the stack, increment its ref count and mortalize it. This ensure that modifications to $_[-1] in the callback actually change the user data. Patch by Kevin Ryde. * GValue.xs: Handle NULL GParamSpecs in newSVGParamSpec by returning undef. Consequently, remove the NULL handling in _gperl_sv_from_value_internal. * GType.xs (gperl_convert_flag_one, gperl_convert_flags): Improve the wording of the error messages for invalid flags a bit. * GValue.xs (_gperl_sv_from_value_internal): Handle NULL GParamSpecs gracefully by returning undef. * GParamSpec.xs (newSVGParamSpec): Croak on NULL GParamSpecs. * GParamSpec.xs: Add hierarchy POD sections to the various Glib::ParamSpec subclasses. * GenPod.pm: Document how to hide arguments with "=for arg". Cope with _noinc_ornull type variants. * GObject.xs (g_object_new): Check that we got a correct number of arguments. * test fixes * Thu Jun 19 2008 anicka@suse.cz - update to 1.183 * GSignal.xs: In the xsub for g_signal_add_emission_hook, make sure that the type class exists before we try to fetch information about one of its signals. * t/c.t: Overload '!=' and 'ne' for flags values for consistency. * GClosure.xs (gperl_callback_invoke): Put a mortal copy of the user data on the stack to avoid prematurely destroying it in certain cases. Patch by Kevin Ryde. * t/c.t: Test that empty flags values ([], undef) work. * GType.xs (gperl_convert_flag_one): Don't call gperl_type_flags_get_values needlessly. * GType.xs: Use const char* to store the return value of sv_reftype. * Subclass.pm: Improve the documentation of GET_PROPERTY and SET_PROPERTY. (Patch by Kevin Ryde) * t/c.t: Register Glib::Enum and Glib::Flags. Remove special case logic for these from Glib::Type::register(). * Wed Apr 09 2008 anicka@suse.cz - update to 1.182 * GType.xs: For the 64 bit integer converters: use g_ascii_strtoll, g_ascii_strtoull, and _atoi64 when available. Only use _strtoi64 and _strtoui64 if _MSC_VER >= 1300. * GenPod.pm: Add setters set_copyright, set_year, set_authors, and set_main_mod for the corresponding package variables. * Mon Mar 24 2008 anicka@suse.cz - update to 1.181 * 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. * Makefile.PL (MY::postamble): Handle the EU::Depends object $glib being undefined gracefully. * Makefile.PL: Don't warn about this release being unstable because it isn't. * copyright.pod: Update for 2008. * Thu Mar 13 2008 anicka@suse.cz - update to 1.180 * Makefile.PL: Tell the compiler to always look for headers in '.' first so that ours are preferred in case of name clashes. * ParseXSDoc.pm (parse_file): When parsing an #else pre-processor directive, make sure we have actually seen and parsed a corresponding #if before trying to negate its entry. This can happen when our parsing heurestics fail. The result was an exception: "Modification of non-creatable array value attempted." * GType.xs: Defer the instantiation of a newly-registered object class's class until after we've parsed the list of signals, properties, and interfaces to add to it. This allows perl-derived GObjects to override GInterfaces that are implemented by parent classes. * GObject.xs: Load GInterface types immediately, instead of leaving them for lazy loading. Otherwise, it is possible to get into situations in which a GInterface has not triggered its lazy loading by the time it is needed. * GObject.xs (class_info_finish_loading): When handling a class' @ISA, instead of simple av_fetch calls and a final av_clear, use repeated av_shift calls. Invoking av_clear on an @ISA array seems to break the caching magic associated with it when running under perl 5.10.0. This in turn breaks our lazy-loading scheme. * Glib.xs: Use gperl_sv_defined instead of SvOK to check SVs for definedness. This keeps Glib from erroneously thinking your scalars are undefined, for example when using tied hashes. * GType.xs: Define and use PORTABLE_LL_FORMAT and PORTABLE_ULL_FORMAT. * Mon Jan 14 2008 anicka@suse.cz - update to 1.164 * GType.xs: Defer the instantiation of a newly-registered object class's class until after we've parsed the list of signals, properties, and interfaces to add to it. * GObject.xs: Load GInterface types immediately, instead of leaving them for lazy loading. * ParseXSDoc.pm (parse_file): When parsing an #else pre-processor directive, make sure we have actually seen and parsed a corresponding #if before trying to negate its entry. * GObject.xs (class_info_finish_loading): When handling a class' @ISA, instead of simple av_fetch calls and a final av_clear, use repeated av_shift calls. * GBookmarkFile.xs: Hush compiler warning. * GError.xs (gperl_gerror_from_sv): Fix the check for undefined domain keys in GError hashes. * GType.xs (add_interfaces): Fix the check for undefined interface names. * Wed Nov 21 2007 anicka@suse.cz - update to 1.162 * MakeHelper.pm (postamble_docs_full): When constructing the add_types call, make sure to properly quote the paths. * Thu Nov 01 2007 anicka@suse.cz - update to 1.161 * Makefile.PL: Use BEGIN { require 5.008; } instead of use 5.008; so automatic CPAN testers know which perl version we need. Also get rid of the MY package by prefixing the relevant subs with `MY::ยด. * GObject.xs (Glib::Object::CLONE): Check that perl_gobjects != NULL before working with it, to avoid an assertion. * Fri Oct 05 2007 anicka@suse.cz - update to 1.160 * GenPod.pm: Output a warning if a type name isn't recognized by the doc parser. Add 'package' and 'list' to the basic types and fix the remaining type name issues the new warning uncovered. * ParseXSDoc.pm: Parse preprocessor conditionals in the XS code to add Since: tags to methods' POD. * ParseXSDoc.pm: Make it possible to document specific packages in different POD files by providing a new =for object variant. * GObject.xs: Register G_TYPE_INTERFACES as Glib::Interfaces to avoid having it appear under Glib::Object::_Unregistered in hierarchies in the generated POD. * test fixes - do not ignore test results anymore (package builds fine on all supported archs) * Mon Feb 26 2007 anicka@suse.cz - update to 1.144 * MakeHelper.pm: Use BSD make syntax for the BLIB_DONE stuff on BSD systems, unless the environment variable FORCE_GMAKE is set. * Wed Feb 14 2007 anicka@suse.cz - update to 1.143 * Makefile.PL: Check that glib >= 2.12.0, not 2.11.0, before including GBookmarkFile.xs. * Glib.xs: Call g_threads_init before g_type_init. Required (and probably enforced in the near future) by recent glib versions. * Tue Dec 12 2006 anicka@suse.cz - update to 1.142 * bugfixes, test fixes * GType.xs: Add macros, PORTABLE_STRTOLL and PORTABLE_STRTOULL, to centralize the preprocessor madness for 64bit integer support. * Thu Sep 07 2006 anicka@suse.cz - update to 1.140 * bugfixes and fixes in tests * Fri Jul 21 2006 anicka@suse.cz - update to 1.120 * add a new header file for private functions that are used in more than one xs file * bugfixes - remove last patch (fixed in upstream) * Tue Mar 21 2006 schwab@suse.de - Fix broken casts. * Tue Jan 31 2006 ro@suse.de - fixed missing ";" in GType.xs - ignore failed test for the moment * Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires * Tue Jan 03 2006 anicka@suse.cz - update to 1.102 * Thu Nov 10 2005 anicka@suse.cz - update to 1.101 * Fri Jul 29 2005 mjancar@suse.cz - update to 1.082 * Thu Jun 23 2005 ro@suse.de - update to 1.081 - removed G_PARAM_PRIVATE (removed from glib2) * Fri Jan 21 2005 ro@suse.de - update to 1.072 * Tue Nov 02 2004 mcihar@suse.cz - initial packaging