From c4617737480bd02a1c405473e1d83512a851c395661cb5f5c86bd371de04b33d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 19:16:18 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main perl-gettext revision dae73b67816c8f04aa708686244c1fe6 --- .gitattributes | 23 ++++++++ cpanspec.yml | 23 ++++++++ gettext-1.07.tar.gz | 3 + perl-gettext.changes | 127 +++++++++++++++++++++++++++++++++++++++++++ perl-gettext.spec | 121 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 297 insertions(+) create mode 100644 .gitattributes create mode 100644 cpanspec.yml create mode 100644 gettext-1.07.tar.gz create mode 100644 perl-gettext.changes create mode 100644 perl-gettext.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..9b7ec50 --- /dev/null +++ b/cpanspec.yml @@ -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 diff --git a/gettext-1.07.tar.gz b/gettext-1.07.tar.gz new file mode 100644 index 0000000..97cd604 --- /dev/null +++ b/gettext-1.07.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:909d47954697e7c04218f972915b787bd1244d75e3bd01620bc167d5bbc49c15 +size 8651 diff --git a/perl-gettext.changes b/perl-gettext.changes new file mode 100644 index 0000000..572f5d2 --- /dev/null +++ b/perl-gettext.changes @@ -0,0 +1,127 @@ +------------------------------------------------------------------- +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 + +- update license to new format + +------------------------------------------------------------------- +Thu Nov 17 12:44:02 UTC 2011 - coolo@suse.com + +- use original tar + +------------------------------------------------------------------- +Mon Apr 11 10:57:59 UTC 2011 - chris@computersalat.de + +- recreated by cpanspec 1.78.03 +- removed old Obsoletes/Provides perl_gtx + +------------------------------------------------------------------- +Sun Apr 10 16:08:29 UTC 2011 - crrodriguez@opensuse.org + +- USe perl macros to generate filelist + +------------------------------------------------------------------- +Wed Dec 1 13:32:37 UTC 2010 - coolo@novell.com + +- switch to perl_requires macro + +------------------------------------------------------------------- +Mon Nov 29 18:30:05 UTC 2010 - coolo@novell.com + +- remove /var/adm/perl-modules + +------------------------------------------------------------------- +Sun Dec 6 14:51:48 CET 2009 - jengelh@medozas.de + +- enable parallel building + +------------------------------------------------------------------- +Wed Jan 30 11:55:19 CET 2008 - pth@suse.de + +- Fix bug reference. + +------------------------------------------------------------------- +Tue Jan 29 21:54:26 CET 2008 - anicka@suse.de + +- fix mismatched prototypes [bnc#353715] +- fix specfile (rpmlint warnings), enable tests + +------------------------------------------------------------------- +Sun May 27 18:17:53 CEST 2007 - rguenther@suse.de + +- add perl BuildRequires + +------------------------------------------------------------------- +Wed Jan 25 21:30:49 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Mon Jul 11 16:13:54 CEST 2005 - schubi@suse.de + +- update to 1.05 + +------------------------------------------------------------------- +Fri Apr 15 11:43:30 CEST 2005 - schubi@suse.de + +- update to 1.04 + +------------------------------------------------------------------- +Sun Jan 11 09:41:09 CET 2004 - adrian@suse.de + +- add %defattr + +------------------------------------------------------------------- +Fri Aug 22 16:07:51 CEST 2003 - mjancar@suse.cz + +- require the perl version we build with + +------------------------------------------------------------------- +Tue Jul 15 21:13:55 CEST 2003 - schwab@suse.de + +- Update specfile. + +------------------------------------------------------------------- +Tue Jun 17 11:32:11 CEST 2003 - choeger@suse.de + +- updated filelist + +------------------------------------------------------------------- +Thu Aug 8 18:53:09 CEST 2002 - mls@suse.de + +- use sitearch macro + +------------------------------------------------------------------- +Thu Nov 16 00:39:47 CET 2000 - ro@suse.de + +- use BuildRoot + +------------------------------------------------------------------- +Thu Nov 16 00:37:02 CET 2000 - ro@suse.de + +- renamed package perl_gtx to perl-gettext + +------------------------------------------------------------------- +Wed Sep 20 15:18:31 CEST 2000 - schwab@suse.de + +- Fix missing declarations. + +------------------------------------------------------------------- +Wed May 31 10:29:09 MEST 2000 - choeger@suse.de + +- first version, 1.01 + diff --git a/perl-gettext.spec b/perl-gettext.spec new file mode 100644 index 0000000..88b4dc0 --- /dev/null +++ b/perl-gettext.spec @@ -0,0 +1,121 @@ +# +# spec file for package perl-gettext +# +# 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 +# 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/ +# + + +Name: perl-gettext +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/ +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 +%{perl_requires} + +%description +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 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 Locale-%{cpan_name}-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +%{__make} %{?_smp_mflags} + +%check +%{__make} test + +%install +%perl_make_install +%perl_process_packlist +%perl_gen_filelist + +%files -f %{name}.files +%defattr(-,root,root,755) +%doc README + +%changelog