3
0
forked from pool/perl-gettext

Accepting request 405486 from devel:languages:perl

- update to 1.07
  Fix test failures caused by $LANGUAGE being set
- remove perl-gettext-1.05-POSIX.diff

- 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)

OBS-URL: https://build.opensuse.org/request/show/405486
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-gettext?expand=0&rev=25
This commit is contained in:
Dominique Leuenberger 2016-07-09 07:20:44 +00:00 committed by Git OBS Bridge
commit 3f9d5f2949
6 changed files with 102 additions and 28 deletions

23
cpanspec.yml Normal file
View File

@ -0,0 +1,23 @@
---
#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

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:27367f3dc1be79c9ed178732756e37e4cfce45f9e2a27ebf26e1f40d80124694
size 7693

BIN
gettext-1.07.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,10 +0,0 @@
--- gettext.pm
+++ gettext.pm
@@ -32,6 +32,7 @@
=cut
use Carp;
+use POSIX;
require Exporter;
require DynaLoader;

View File

@ -1,3 +1,18 @@
-------------------------------------------------------------------
Sat Jun 25 06:26:54 UTC 2016 - coolo@suse.com
- 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 - coolo@suse.com
- 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)
-------------------------------------------------------------------
Wed Feb 27 06:18:54 UTC 2013 - coolo@suse.com

View File

@ -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
%define cpan_name gettext
Summary: Message handling functions
License: Artistic-1.0 or GPL-2.0+
Group: Development/Libraries/Perl
Version: 1.05
Version: 1.07
Release: 0
%define cpan_name gettext
Summary: Message Handling Functions
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
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 @@ The gettext module permits access from perl to the gettext() family of
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 @@ for the databases belonging to domain 'domain' in the directory 'dirname'
%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