Hello community, here is the log from the commit of package perl-gettext for openSUSE:Factory checked in at 2016-07-09 09:20:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-gettext (Old) and /work/SRC/openSUSE:Factory/.perl-gettext.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-gettext" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-gettext/perl-gettext.changes 2013-03-01 08:03:57.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.perl-gettext.new/perl-gettext.changes 2016-07-09 09:20:48.000000000 +0200 @@ -1,0 +2,15 @@ +Sat Jun 25 06:26:54 UTC 2016 - [email protected] + +- update to 1.07 + Fix test failures caused by $LANGUAGE being set +- remove perl-gettext-1.05-POSIX.diff + +------------------------------------------------------------------- +Mon Sep 21 13:34:02 UTC 2015 - [email protected] + +- updated to 1.06 + Bugfix: #104667 Makefile.PL libaries need to be listed after .o files + Bugfix: #104668 ensure availability of locale API, correct typo in documentation + Add META.yml (Fixes #91921) + +------------------------------------------------------------------- Old: ---- gettext-1.05.tar.gz perl-gettext-1.05-POSIX.diff New: ---- cpanspec.yml gettext-1.07.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-gettext.spec ++++++ --- /var/tmp/diff_new_pack.OYSTtm/_old 2016-07-09 09:20:52.000000000 +0200 +++ /var/tmp/diff_new_pack.OYSTtm/_new 2016-07-09 09:20:52.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-gettext # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,15 +17,15 @@ Name: perl-gettext +Version: 1.07 +Release: 0 %define cpan_name gettext -Summary: Message handling functions -License: Artistic-1.0 or GPL-2.0+ +Summary: Message Handling Functions +License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl -Version: 1.05 -Release: 0 Url: http://search.cpan.org/dist/gettext/ -Source: http://www.cpan.org/authors/id/P/PV/PVANDRY/gettext-%{version}.tar.gz -Patch0: %{name}-%{version}-POSIX.diff +Source0: http://www.cpan.org/authors/id/P/PV/PVANDRY/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros @@ -36,22 +36,71 @@ functions for retrieving message strings from databases constructed to internationalize software. +* $d = Locale::gettext->domain(DOMAIN) + +* $d = Locale::gettext->domain_raw(DOMAIN) + + Creates a new object for retrieving strings in the domain *DOMAIN* and + returns it. 'domain' requests that strings be returned as Perl strings + (possibly with wide characters) if possible while 'domain_raw' requests + that octet strings directly from functions like 'dgettext()'. + +* $d->get(MSGID) + + Calls 'dgettext()' to return the translated string for the given *MSGID*. + +* $d->cget(MSGID, CATEGORY) + + Calls 'dcgettext()' to return the translated string for the given *MSGID* + in the given *CATEGORY*. + +* $d->nget(MSGID, MSGID_PLURAL, N) + + Calls 'dngettext()' to return the translated string for the given *MSGID* + or *MSGID_PLURAL* depending on *N*. + +* $d->ncget(MSGID, MSGID_PLURAL, N, CATEGORY) + + Calls 'dngettext()' to return the translated string for the given *MSGID* + or *MSGID_PLURAL* depending on *N* in the given *CATEGORY*. + +* $d->dir([NEWDIR]) + + If *NEWDIR* is given, calls 'bindtextdomain' to set the name of the + directory where messages for the domain represented by '$d' are found. + Returns the (possibly changed) current directory name. + +* $d->codeset([NEWCODE]) + + For instances created with 'Locale::gettext->domain_raw', manuiplates the + character set of the returned strings. If *NEWCODE* is given, calls + 'bind_textdomain_codeset' to set the character encoding in which messages + for the domain represented by '$d' are returned. Returns the (possibly + changed) current encoding name. + gettext(), dgettext(), and dcgettext() attempt to retrieve a string matching their 'msgid' parameter within the context of the current locale. dcgettext() takes the message's category and the text domain as parameters -while dcgettext() defaults to the LC_MESSAGES category and gettext() +while dgettext() defaults to the LC_MESSAGES category and gettext() defaults to LC_MESSAGES and uses the current text domain. If the string is not found in the database, then 'msgid' is returned. +ngettext(), dngettext(), and dcngettext() function similarily but implement +differentiation of messages between singular and plural. See the +documentation for the corresponding C functions for details. + textdomain() sets the current text domain and returns the previously active domain. _bindtextdomain(domain, dirname)_ instructs the retrieval functions to look for the databases belonging to domain 'domain' in the directory 'dirname' +_bind_textdomain_codeset(domain, codeset)_ instructs the retrieval +functions to translate the returned messages to the character encoding +given by *codeset* if the encoding of the message catalog is known. + %prep -%setup -q -n %{cpan_name}-%{version} -%patch0 +%setup -q -n Locale-%{cpan_name}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" @@ -65,11 +114,8 @@ %perl_process_packlist %perl_gen_filelist -%clean -%{__rm} -rf %{buildroot} - %files -f %{name}.files -%defattr(644,root,root,755) +%defattr(-,root,root,755) %doc README %changelog ++++++ cpanspec.yml ++++++ --- #description_paragraphs: 3 #no_testing: broken upstream #sources: # - source1 # - source2 #patches: # foo.patch: -p1 # bar.patch: #preamble: |- # BuildRequires: gcc-c++ #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_install: |- # sed on %{name}.files #license: SUSE-NonFree #skip_noarch: 1 #custom_build: |- #./Build build flags=%{?_smp_mflags} --myflag #custom_test: |- #startserver && make test #ignore_requires: Bizarre::Module ++++++ gettext-1.05.tar.gz -> gettext-1.07.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gettext-1.05/MANIFEST new/Locale-gettext-1.07/MANIFEST --- old/gettext-1.05/MANIFEST 1970-01-01 01:00:00.000000000 +0100 +++ new/Locale-gettext-1.07/MANIFEST 2015-09-28 18:48:00.000000000 +0200 @@ -0,0 +1,15 @@ +gettext.pm +gettext.xs +Makefile.PL +README +t/bind.t +t/frconvert.t +t/jaconvert.t +t/raw.t +t/use.t +test_data/foo.po +test_data/gen_test_data.pl +test_data/jaeuc.po +MANIFEST +META.yml Module YAML meta-data (added by MakeMaker) +META.json Module JSON meta-data (added by MakeMaker) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gettext-1.05/META.json new/Locale-gettext-1.07/META.json --- old/gettext-1.05/META.json 1970-01-01 01:00:00.000000000 +0100 +++ new/Locale-gettext-1.07/META.json 2015-09-28 18:48:00.000000000 +0200 @@ -0,0 +1,47 @@ +{ + "abstract" : "Perl bindings for POSIX i18n gettext functions", + "author" : [ + "Kim Vandry <vandry.ORG>" + ], + "dynamic_config" : 1, + "generated_by" : "ExtUtils::MakeMaker version 6.66, CPAN::Meta::Converter version 2.120921", + "license" : [ + "perl_5" + ], + "meta-spec" : { + "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", + "version" : "2" + }, + "name" : "Locale-gettext", + "no_index" : { + "directory" : [ + "t", + "inc" + ] + }, + "prereqs" : { + "build" : { + "requires" : { + "ExtUtils::MakeMaker" : "0" + } + }, + "configure" : { + "requires" : { + "ExtUtils::MakeMaker" : "0" + } + }, + "runtime" : { + "requires" : {} + } + }, + "release_status" : "stable", + "resources" : { + "license" : [ + "http://dev.perl.org/licenses/" + ], + "repository" : { + "url" : "https://github.com/vandry/Perl-Locale-gettext" + } + }, + "version" : "1.07" +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gettext-1.05/META.yml new/Locale-gettext-1.07/META.yml --- old/gettext-1.05/META.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/Locale-gettext-1.07/META.yml 2015-09-28 18:48:00.000000000 +0200 @@ -0,0 +1,24 @@ +--- +abstract: 'Perl bindings for POSIX i18n gettext functions' +author: + - 'Kim Vandry <vandry.ORG>' +build_requires: + ExtUtils::MakeMaker: 0 +configure_requires: + ExtUtils::MakeMaker: 0 +dynamic_config: 1 +generated_by: 'ExtUtils::MakeMaker version 6.66, CPAN::Meta::Converter version 2.120921' +license: perl +meta-spec: + url: http://module-build.sourceforge.net/META-spec-v1.4.html + version: 1.4 +name: Locale-gettext +no_index: + directory: + - t + - inc +requires: {} +resources: + license: http://dev.perl.org/licenses/ + repository: https://github.com/vandry/Perl-Locale-gettext +version: 1.07 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gettext-1.05/Makefile.PL new/Locale-gettext-1.07/Makefile.PL --- old/gettext-1.05/Makefile.PL 2005-01-31 00:30:22.000000000 +0100 +++ new/Locale-gettext-1.07/Makefile.PL 2015-09-18 19:06:07.000000000 +0200 @@ -35,6 +35,15 @@ NAME => "Locale::gettext", LIBS => ($libs eq '') ? [] : [$libs], VERSION_FROM => 'gettext.pm', + META_MERGE => { + resources => { + repository => 'https://github.com/vandry/Perl-Locale-gettext', + license => 'http://dev.perl.org/licenses/', + }, + }, + ABSTRACT => "Perl bindings for POSIX i18n gettext functions", + AUTHOR => "Kim Vandry <[email protected]>", + LICENSE => 'perl', ); sub conftest { @@ -50,7 +59,7 @@ close TEST; open(SAVE, ">&STDERR"); open(STDERR, ">/dev/null"); - system($cc . " -o conftest " . $libs . " conftest.c"); + system($cc . " -o conftest " . " conftest.c " . $libs); my $exitstatus = $?; open(STDERR, ">&SAVE"); if ($exitstatus != 0) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gettext-1.05/README new/Locale-gettext-1.07/README --- old/gettext-1.05/README 2005-06-01 05:11:43.000000000 +0200 +++ new/Locale-gettext-1.07/README 2015-09-28 18:44:39.000000000 +0200 @@ -1,5 +1,5 @@ Locale::gettext -version 1.05 +version 1.07 This is a perl5 module quickly written to gain access to the C library functions for internatialization. They @@ -8,7 +8,7 @@ As of version 1.04, an object oriented interface more suitable to native Perl programs is available. -Locale::gettext is Copyright 1996..2005 by Phillip Vandry +Locale::gettext is Copyright 1996..2005 by Kim Vandry <[email protected]>. All rights reserved. This library is free software; you may distribute under the terms @@ -18,6 +18,12 @@ Changes ------- +1.07 Fix test failures caused by $LANGUAGE being set + +1.06 Bugfix: #104667 Makefile.PL libaries need to be listed after .o files + Bugfix: #104668 ensure availability of locale API, correct typo in documentation + Add META.yml (Fixes #91921) + 1.05 Bugfix: [cpan #13042] useless #ifdef should be #if Bugfix: [cpan #13044] make test fails when using POSIX locale @@ -48,7 +54,7 @@ may be a bit different, but I think that in general these are quite standard POSIX functions. -Phillip Vandry <[email protected]> +Kim Vandry <[email protected]> Mlink Internet <http://www.Mlink.NET> July 1996 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gettext-1.05/config.h new/Locale-gettext-1.07/config.h --- old/gettext-1.05/config.h 2005-06-01 04:05:06.000000000 +0200 +++ new/Locale-gettext-1.07/config.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,4 +0,0 @@ -/* Generated automatically by Makefile.PL. Do not edit */ -#define HAVE_DGETTEXT -#define HAVE_NGETTEXT -#define HAVE_BIND_TEXTDOMAIN_CODESET diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gettext-1.05/gettext.pm new/Locale-gettext-1.07/gettext.pm --- old/gettext-1.05/gettext.pm 2005-06-01 05:11:16.000000000 +0200 +++ new/Locale-gettext-1.07/gettext.pm 2015-09-28 18:45:07.000000000 +0200 @@ -32,6 +32,7 @@ =cut use Carp; +use POSIX qw(:locale_h); require Exporter; require DynaLoader; @@ -45,7 +46,7 @@ import Encode if ($encode_available); } -$VERSION = "1.05" ; +$VERSION = "1.07" ; %EXPORT_TAGS = ( @@ -235,7 +236,7 @@ gettext(), dgettext(), and dcgettext() attempt to retrieve a string matching their C<msgid> parameter within the context of the current locale. dcgettext() takes the message's category and the text domain -as parameters while dcgettext() defaults to the LC_MESSAGES category +as parameters while dgettext() defaults to the LC_MESSAGES category and gettext() defaults to LC_MESSAGES and uses the current text domain. If the string is not found in the database, then C<msgid> is returned. @@ -267,7 +268,7 @@ =head1 VERSION -1.05. +1.07. =head1 SEE ALSO @@ -275,7 +276,7 @@ =head1 AUTHOR -Phillip Vandry <[email protected]> +Kim Vandry <[email protected]> =cut diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gettext-1.05/t/frconvert.t new/Locale-gettext-1.07/t/frconvert.t --- old/gettext-1.05/t/frconvert.t 2005-01-31 00:22:02.000000000 +0100 +++ new/Locale-gettext-1.07/t/frconvert.t 2015-09-28 18:12:17.000000000 +0200 @@ -19,9 +19,6 @@ if ($d->get("No problem") eq "Pas de probl\x{e8}me") { ok(1); } else { -use Data::Dumper; -print Dumper($d); -print "[", $d->get("No problem"), "]\n"; ok(0); } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gettext-1.05/test_data/gen_test_data.pl new/Locale-gettext-1.07/test_data/gen_test_data.pl --- old/gettext-1.05/test_data/gen_test_data.pl 2005-04-20 22:33:29.000000000 +0200 +++ new/Locale-gettext-1.07/test_data/gen_test_data.pl 2015-09-28 18:42:19.000000000 +0200 @@ -4,15 +4,19 @@ my ($domain) = @_; my $messages; + my $language; unless (open(LOCALE, "locale|")) { doskip(); } while (<LOCALE>) { if (/^LC_MESSAGES=\"(.*)\"$/) { $messages = $1; - last; } elsif (/^LC_MESSAGES=(.*)$/) { $messages = $1; + } elsif (/^LANGUAGE=\"(.*)\"$/) { + $language = $1; + } elsif (/^LANGUAGE=(.*)$/) { + $language = $1; } } close LOCALE; @@ -20,6 +24,10 @@ doskip(); } + if (!defined($messages)) { + skip("cannot run test without a locale set", 0); + exit 0; + } if ($messages eq 'C') { skip("cannot run test in the C locale", 0); exit 0; @@ -28,6 +36,15 @@ skip("cannot run test in the POSIX locale", 0); exit 0; } + if (defined($language) && $language) { + # In GNU gettext, $LANGUAGE overrides + # all the other environment variables, + # for message translations only. + # https://www.gnu.org/software/gettext/manual/html_node/The-LANGUAGE-variable.html#The-LANGUAGE-variable + # The library will look first for the first entry in + # that list, so give it what it wants. + $messages = (split(':', $language))[0]; + } mkdir "test_data/" . $messages, 0755 unless (-d "test_data/" . $messages); mkdir "test_data/" . $messages . "/LC_MESSAGES", 0755
