From 9efda21c111e521d86998d075f2f7587876d09ae40262b8bbe4725367ee394b3 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 18 Jul 2024 08:43:30 +0000 Subject: [PATCH] replace with upstream patch - Use %autosetup - Add reproducible-jar.patch to use a constant jar mtime for bit-reproducible builds OBS-URL: https://build.opensuse.org/package/show/Base:System/gettext-runtime?expand=0&rev=200 --- .gitattributes | 23 + .gitignore | 1 + ...dd-feature-to-use-the-newest-po-file.patch | 398 ++++ ...-msgcat-Merge-headers-when-use-first.patch | 304 +++ _multibuild | 6 + baselibs.conf | 4 + ...629-unnessary-rpath-on-standard-path.patch | 15 + gettext-0.12.1-gettextize.patch | 25 + gettext-0.12.1-sigfpe.patch | 47 + gettext-0.19.3-fix-bashisms.patch | 17 + gettext-0.22.5.tar.xz | 3 + gettext-0.22.5.tar.xz.sig | 16 + gettext-csharp.changes | 699 +++++++ gettext-csharp.spec | 131 ++ gettext-dont-test-gnulib.patch | 26 + gettext-initialize_vars.patch | 17 + gettext-java.changes | 760 ++++++++ gettext-java.spec | 149 ++ gettext-linkdupes.sh | 85 + gettext-po-mode.diff | 12 + gettext-rpmlintrc | 12 + gettext-runtime-mini.changes | 1734 +++++++++++++++++ gettext-runtime-mini.spec | 379 ++++ gettext-runtime.changes | 1734 +++++++++++++++++ gettext-runtime.keyring | 63 + gettext-runtime.spec | 379 ++++ pre_checkin.sh | 6 + reproducible-jar.patch | 186 ++ reproducible.patch | 50 + suse-start-po-mode.el | 23 + use-acinit-for-libtextstyle.patch | 18 + 31 files changed, 7322 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 0001-msgcat-Add-feature-to-use-the-newest-po-file.patch create mode 100644 0002-msgcat-Merge-headers-when-use-first.patch create mode 100644 _multibuild create mode 100644 baselibs.conf create mode 100644 boo941629-unnessary-rpath-on-standard-path.patch create mode 100644 gettext-0.12.1-gettextize.patch create mode 100644 gettext-0.12.1-sigfpe.patch create mode 100644 gettext-0.19.3-fix-bashisms.patch create mode 100644 gettext-0.22.5.tar.xz create mode 100644 gettext-0.22.5.tar.xz.sig create mode 100644 gettext-csharp.changes create mode 100644 gettext-csharp.spec create mode 100644 gettext-dont-test-gnulib.patch create mode 100644 gettext-initialize_vars.patch create mode 100644 gettext-java.changes create mode 100644 gettext-java.spec create mode 100644 gettext-linkdupes.sh create mode 100644 gettext-po-mode.diff create mode 100644 gettext-rpmlintrc create mode 100644 gettext-runtime-mini.changes create mode 100644 gettext-runtime-mini.spec create mode 100644 gettext-runtime.changes create mode 100644 gettext-runtime.keyring create mode 100644 gettext-runtime.spec create mode 100644 pre_checkin.sh create mode 100644 reproducible-jar.patch create mode 100644 reproducible.patch create mode 100644 suse-start-po-mode.el create mode 100644 use-acinit-for-libtextstyle.patch 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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/0001-msgcat-Add-feature-to-use-the-newest-po-file.patch b/0001-msgcat-Add-feature-to-use-the-newest-po-file.patch new file mode 100644 index 0000000..ee72c66 --- /dev/null +++ b/0001-msgcat-Add-feature-to-use-the-newest-po-file.patch @@ -0,0 +1,398 @@ +From a079538e51c6c6e9855d9e7bde1519eaa59bb94d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Mark=C3=A9ta=20Cal=C3=A1bkov=C3=A1?= + +Date: Thu, 9 Jan 2020 14:40:25 +0100 +Subject: [PATCH 1/2] msgcat: Add feature to use the newest po file. + +When concatenating po files, it is often useful to prefer strings from +the newest file regardless their ordering on the command line. +--- + gettext-tools/src/Makefile.am | 4 +- + gettext-tools/src/message.c | 6 +++ + gettext-tools/src/message.h | 4 ++ + gettext-tools/src/msgcat.c | 10 ++++ + gettext-tools/src/msgl-age.c | 96 +++++++++++++++++++++++++++++++++ + gettext-tools/src/msgl-age.h | 36 +++++++++++++ + gettext-tools/src/msgl-cat.c | 15 ++++++ + gettext-tools/src/msgl-cat.h | 1 + + gettext-tools/src/msgl-header.c | 47 ++++++++++++++++ + gettext-tools/src/msgl-header.h | 6 +++ + 10 files changed, 223 insertions(+), 2 deletions(-) + create mode 100644 gettext-tools/src/msgl-age.c + create mode 100644 gettext-tools/src/msgl-age.h + +Index: gettext-0.21/gettext-tools/src/Makefile.am +=================================================================== +--- gettext-0.21.orig/gettext-tools/src/Makefile.am ++++ gettext-0.21/gettext-tools/src/Makefile.am +@@ -43,7 +43,7 @@ noinst_HEADERS = \ + write-catalog.h write-po.h write-properties.h write-stringtable.h \ + dir-list.h file-list.h po-gram-gen.h po-gram-gen2.h cldr-plural.h \ + cldr-plural-exp.h locating-rule.h its.h search-path.h \ +- msgl-charset.h msgl-equal.h msgl-iconv.h msgl-ascii.h msgl-ofn.h msgl-cat.h \ ++ msgl-age.h msgl-charset.h msgl-equal.h msgl-iconv.h msgl-ascii.h msgl-ofn.h msgl-cat.h \ + msgl-header.h msgl-english.h msgl-check.h msgl-fsearch.h msgfmt.h msgunfmt.h \ + plural-count.h plural-eval.h plural-distrib.h \ + read-mo.h write-mo.h \ +@@ -174,6 +174,7 @@ FORMAT_SOURCE += \ + $(COMMON_SOURCE) \ + read-catalog.c \ + write-catalog.c write-properties.c write-stringtable.c write-po.c \ ++ msgl-age.c \ + msgl-ascii.c \ + msgl-ofn.c \ + msgl-iconv.c \ +Index: gettext-0.21/gettext-tools/src/message.c +=================================================================== +--- gettext-0.21.orig/gettext-tools/src/message.c ++++ gettext-0.21/gettext-tools/src/message.c +@@ -356,6 +356,12 @@ message_list_append (message_list_ty *ml + abort (); + } + ++void ++message_list_append_list (message_list_ty *mlp, message_list_ty *mlp2) ++{ ++ for (int i = 0; i < mlp2->nitems; i++) ++ message_list_append (mlp,mlp2->item[i]); ++} + + void + message_list_prepend (message_list_ty *mlp, message_ty *mp) +Index: gettext-0.21/gettext-tools/src/message.h +=================================================================== +--- gettext-0.21.orig/gettext-tools/src/message.h ++++ gettext-0.21/gettext-tools/src/message.h +@@ -24,6 +24,7 @@ + #include "mem-hash-map.h" + + #include ++#include + + + #ifdef __cplusplus +@@ -269,6 +270,8 @@ extern void + extern void + message_list_append (message_list_ty *mlp, message_ty *mp); + extern void ++ message_list_append_list (message_list_ty *mlp, message_list_ty *mlp2); ++extern void + message_list_prepend (message_list_ty *mlp, message_ty *mp); + extern void + message_list_insert_at (message_list_ty *mlp, size_t n, message_ty *mp); +@@ -350,6 +353,7 @@ struct msgdomain_list_ty + size_t nitems_max; + bool use_hashtable; + const char *encoding; /* canonicalized encoding or NULL if unknown */ ++ time_t msgage; + }; + + extern msgdomain_list_ty * +Index: gettext-0.21/gettext-tools/src/msgcat.c +=================================================================== +--- gettext-0.21.orig/gettext-tools/src/msgcat.c ++++ gettext-0.21/gettext-tools/src/msgcat.c +@@ -88,6 +88,7 @@ static const struct option long_options[ + { "to-code", required_argument, NULL, 't' }, + { "unique", no_argument, NULL, 'u' }, + { "use-first", no_argument, NULL, CHAR_MAX + 1 }, ++ { "use-newest", no_argument, NULL, CHAR_MAX + 9 }, + { "version", no_argument, NULL, 'V' }, + { "width", required_argument, NULL, 'w' }, + { "more-than", required_argument, NULL, '>' }, +@@ -141,6 +142,7 @@ main (int argc, char **argv) + more_than = 0; + less_than = INT_MAX; + use_first = false; ++ use_newest = false; + + while ((optchar = getopt_long (argc, argv, "<:>:D:eEf:Fhino:pPst:uVw:", + long_options, NULL)) != EOF) +@@ -277,6 +279,11 @@ main (int argc, char **argv) + message_print_style_filepos (filepos_comment_none); + break; + ++ case CHAR_MAX + 9: /* --use-newest */ ++ use_newest = true; ++ use_first = true; ++ break; ++ + default: + usage (EXIT_FAILURE); + /* NOTREACHED */ +@@ -428,6 +435,9 @@ Output details:\n")); + --use-first use first available translation for each\n\ + message, don't merge several translations\n")); + printf (_("\ ++ --use-newest use the most up-to-date available translation\n\ ++ for each message, don't merge several translations\n")); ++ printf (_("\ + --lang=CATALOGNAME set 'Language' field in the header entry\n")); + printf (_("\ + --color use colors and other text attributes always\n\ +Index: gettext-0.21/gettext-tools/src/msgl-age.c +=================================================================== +--- /dev/null ++++ gettext-0.21/gettext-tools/src/msgl-age.c +@@ -0,0 +1,96 @@ ++/* Message list header time simple parser. ++ Copyright (C) 2019 Free Software Foundation, Inc. ++ Written by Markéta Calábková , 2019. ++ ++ This program is free software: you can redistribute it and/or modify ++ it under the terms of the GNU General Public License as published by ++ the Free Software Foundation; either version 3 of the License, or ++ (at your option) any later version. ++ ++ This program is distributed in the hope that it will be useful, ++ but WITHOUT ANY WARRANTY; without even the implied warranty of ++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ GNU General Public License for more details. ++ ++ You should have received a copy of the GNU General Public License ++ along with this program. If not, see . */ ++ ++#ifdef HAVE_CONFIG_H ++# include "config.h" ++#endif ++ ++#include ++#include ++ ++#include "xalloc.h" ++#include "error.h" ++#include "xerror.h" ++#include "xvasprintf.h" ++ ++#include "msgl-header.h" ++#include ++#include ++#include "gettext.h" ++ ++#include "msgl-age.h" ++ ++#define _(str) gettext (str) ++ ++void ++msgdomain_sort_by_ages (msgdomain_list_ty **mdlps, size_t nfiles) ++{ ++ qsort (mdlps, nfiles, sizeof(msgdomain_list_ty*), msgdomain_compare_ages); ++} ++ ++int ++msgdomain_compare_ages (const void * p1, const void * p2) ++{ ++ if (difftime((*(msgdomain_list_ty **)p2)->msgage, (*(msgdomain_list_ty **)p1)->msgage) > 0) ++ return 1; ++ else ++ return 0; ++} ++ ++void ++msgdomain_read_ages (msgdomain_list_ty *mdlp) ++{ ++ time_t times[mdlp->nitems]; ++ const char * field = "PO-Revision-Date:"; ++ char * where; ++ ++ for (int i = 0; i < mdlp->nitems; i++) ++ { ++ message_list_ty *mlp = mdlp->item[i]->messages; ++ ++ message_list_read_header_field (mlp, field, &where); ++ } ++ struct tm tmptm; ++ char *trail; ++ memset (&tmptm, 0, sizeof(struct tm)); ++ if ((trail = strptime (where, "%Y-%m-%d %H:%M:%S%z", &tmptm)) != NULL) ++ mdlp->msgage = mktime (&tmptm); ++ else if ((trail = strptime (where, "%Y-%m-%d %H:%M:%S", &tmptm)) != NULL) ++ mdlp->msgage = mktime (&tmptm); ++ else if ((trail = strptime (where, "%Y-%m-%d %H:%M%z", &tmptm)) != NULL) ++ mdlp->msgage = mktime (&tmptm); ++ else if ((trail = strptime (where, "%Y-%m-%d %H:%M", &tmptm)) != NULL) ++ mdlp->msgage = mktime (&tmptm); ++ else ++ { ++ /* There is probably no creation date. Assign 0 and throw warning. */ ++ mdlp->msgage = 0; ++ multiline_warning (xasprintf (_("warning: ")), ++ xasprintf (_("\ ++PO-Revision-Date has no or invalid value, assuming it is old.\n\ ++"))); ++ return; ++ } ++ if ((*trail != '\n') && (*trail != '\0')) ++ multiline_warning (xasprintf (_("warning: ")), ++ xasprintf (_("\ ++Unknown trailing characters after PO-Revision-Date, ignoring.\n\ ++"))); ++} ++ ++ ++ +Index: gettext-0.21/gettext-tools/src/msgl-age.h +=================================================================== +--- /dev/null ++++ gettext-0.21/gettext-tools/src/msgl-age.h +@@ -0,0 +1,36 @@ ++/* Message list header time simple parser. ++ Copyright (C) 2019 Free Software Foundation, Inc. ++ Written by Markéta Calábková , 2019. ++ ++ This program is free software: you can redistribute it and/or modify ++ it under the terms of the GNU General Public License as published by ++ the Free Software Foundation; either version 3 of the License, or ++ (at your option) any later version. ++ ++ This program is distributed in the hope that it will be useful, ++ but WITHOUT ANY WARRANTY; without even the implied warranty of ++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ GNU General Public License for more details. ++ ++ You should have received a copy of the GNU General Public License ++ along with this program. If not, see . */ ++ ++#ifndef _MSGL_AGE_H ++#define _MSGL_AGE_H ++ ++#include "message.h" ++ ++/* Helper function to compare the ages, needed by qsort. */ ++int ++ msgdomain_compare_ages (const void *, const void *); ++ ++/* Simple function to modify intern ordering of files ++ * such that the newer file comes first. In fact it just calls qsort. */ ++void ++ msgdomain_sort_by_ages (msgdomain_list_ty **, size_t); ++ ++/* Parse dates in PO-Revision-Date: and store them inside the structure. */ ++void ++ msgdomain_read_ages (msgdomain_list_ty *); ++ ++#endif +Index: gettext-0.21/gettext-tools/src/msgl-cat.c +=================================================================== +--- gettext-0.21.orig/gettext-tools/src/msgl-cat.c ++++ gettext-0.21/gettext-tools/src/msgl-cat.c +@@ -37,6 +37,7 @@ + #include "message.h" + #include "read-catalog.h" + #include "po-charset.h" ++#include "msgl-age.h" + #include "msgl-ascii.h" + #include "msgl-ofn.h" + #include "msgl-equal.h" +@@ -57,6 +58,11 @@ int less_than; + If false, merge all available translations into one and fuzzy it. */ + bool use_first; + ++/* If true, sort all the translation according to their age and let ++ use_first finish the job. ++ If false, keep the order of translations. */ ++bool use_newest; ++ + /* If true, merge like msgcomm. + If false, merge like msgcat and msguniq. */ + bool msgcomm_mode = false; +@@ -123,6 +129,15 @@ catenate_msgdomain_list (string_list_ty + for (n = 0; n < nfiles; n++) + mdlps[n] = read_catalog_file (files[n], input_syntax); + ++ /* --use-newest case -- sort messages by time and then let --use-first finish the job */ ++ if (use_newest) ++ { ++ for (n = 0; n < nfiles; n++) ++ msgdomain_read_ages (mdlps[n]); ++ ++ msgdomain_sort_by_ages (mdlps, nfiles); ++ } ++ + /* Determine the canonical name of each input file's encoding. */ + canon_charsets = XNMALLOC (nfiles, const char **); + for (n = 0; n < nfiles; n++) +Index: gettext-0.21/gettext-tools/src/msgl-cat.h +=================================================================== +--- gettext-0.21.orig/gettext-tools/src/msgl-cat.h ++++ gettext-0.21/gettext-tools/src/msgl-cat.h +@@ -37,6 +37,7 @@ extern DLL_VARIABLE int less_than; + /* If true, use the first available translation. + If false, merge all available translations into one and fuzzy it. */ + extern DLL_VARIABLE bool use_first; ++extern DLL_VARIABLE bool use_newest; + + /* If true, merge like msgcomm. + If false, merge like msgcat and msguniq. */ +Index: gettext-0.21/gettext-tools/src/msgl-header.c +=================================================================== +--- gettext-0.21.orig/gettext-tools/src/msgl-header.c ++++ gettext-0.21/gettext-tools/src/msgl-header.c +@@ -222,3 +222,50 @@ message_list_delete_header_field (messag + } + } + } ++ ++void ++message_list_read_header_field (message_list_ty *mlp, ++ const char *field, char **where_ptr) ++{ ++ size_t field_len = strlen (field); ++ size_t j; ++ ++ /* Search the header entry. */ ++ for (j = 0; j < mlp->nitems; j++) ++ if (is_header (mlp->item[j]) && !mlp->item[j]->obsolete) ++ { ++ /* We found the correct message. */ ++ message_ty *mp = mlp->item[j]; ++ ++ /* Tag the header entry. */ ++ const char *header = mp->msgstr; ++ ++ /* Test whether the field occurs in the header entry. */ ++ const char *h; ++ ++ for (h = header; *h != '\0'; ) ++ { ++ if (strncmp (h, field, field_len) == 0) ++ break; ++ /* Jump by lines. */ ++ h = strchr (h, '\n'); ++ if (h == NULL) ++ break; ++ h++; ++ } ++ if (h != NULL && *h != '\0') ++ { ++ /* We found it and it is nonempty. Read the value of the field. */ ++ h += field_len + 1; ++ char *enh = strchr (h, '\n'); ++ if (enh != NULL && *enh != '\0') ++ { ++ *where_ptr = (char *)XNMALLOC (((enh - h) + 1), char); ++ memcpy (*where_ptr, h, enh - h); ++ /* Make the string null-terminated. */ ++ (*where_ptr)[enh-h] = '\0'; ++ } ++ } ++ } ++} ++ +Index: gettext-0.21/gettext-tools/src/msgl-header.h +=================================================================== +--- gettext-0.21.orig/gettext-tools/src/msgl-header.h ++++ gettext-0.21/gettext-tools/src/msgl-header.h +@@ -40,6 +40,12 @@ extern void + message_list_delete_header_field (message_list_ty *mlp, + const char *field); + ++/* Read the given field from the header. ++ The FIELD name ends in a colon. */ ++extern void ++ message_list_read_header_field (message_list_ty *mlp, ++ const char *field, char **where_ptr); ++ + + #ifdef __cplusplus + } diff --git a/0002-msgcat-Merge-headers-when-use-first.patch b/0002-msgcat-Merge-headers-when-use-first.patch new file mode 100644 index 0000000..c535db1 --- /dev/null +++ b/0002-msgcat-Merge-headers-when-use-first.patch @@ -0,0 +1,304 @@ +From df4aef6209615bdd44cd45208acfe7367451a8fe Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Mark=C3=A9ta=20Cal=C3=A1bkov=C3=A1?= + +Date: Thu, 9 Jan 2020 14:45:49 +0100 +Subject: [PATCH 2/2] msgcat: Merge headers when --use-first + +Merging headers line by line is especially useful when +one header line is present only in the second file. +For example when Plural-Forms: is present only in the second file, +msgcat could create an invalid output file. +We also return error when Plural-Forms: values do not match. +--- + gettext-tools/src/message.c | 2 - + gettext-tools/src/msgl-cat.c | 5 ++ + gettext-tools/src/msgl-header.c | 155 +++++++++++++++++++++++++++++--- + gettext-tools/src/msgl-header.h | 8 ++ + 4 files changed, 157 insertions(+), 13 deletions(-) + +Index: gettext-0.20.1/gettext-tools/src/message.c +=================================================================== +--- gettext-0.20.1.orig/gettext-tools/src/message.c ++++ gettext-0.20.1/gettext-tools/src/message.c +@@ -411,7 +411,6 @@ message_list_insert_at (message_list_ty + } + + +-#if 0 /* unused */ + void + message_list_delete_nth (message_list_ty *mlp, size_t n) + { +@@ -431,7 +430,6 @@ message_list_delete_nth (message_list_ty + mlp->use_hashtable = false; + } + } +-#endif + + + void +Index: gettext-0.20.1/gettext-tools/src/msgl-cat.c +=================================================================== +--- gettext-0.20.1.orig/gettext-tools/src/msgl-cat.c ++++ gettext-0.20.1/gettext-tools/src/msgl-cat.c +@@ -40,6 +40,7 @@ + #include "msgl-ascii.h" + #include "msgl-ofn.h" + #include "msgl-equal.h" ++#include "msgl-header.h" + #include "msgl-iconv.h" + #include "xalloc.h" + #include "xmalloca.h" +@@ -286,6 +287,10 @@ catenate_msgdomain_list (string_list_ty + } + } + ++ /* Merge headers, please. */ ++ if (use_first) ++ msgdomain_lists_merge_headers (mdlps, nfiles); ++ + /* Create list of resulting messages, but don't fill it. Only count + the number of translations for each message. + If for a message, there is at least one non-fuzzy, non-empty translation, +Index: gettext-0.20.1/gettext-tools/src/msgl-header.c +=================================================================== +--- gettext-0.20.1.orig/gettext-tools/src/msgl-header.c ++++ gettext-0.20.1/gettext-tools/src/msgl-header.c +@@ -26,9 +26,12 @@ + #include + + #include "xalloc.h" ++#include "xerror.h" ++#include "xvasprintf.h" ++#include "gettext.h" + + #define SIZEOF(a) (sizeof(a) / sizeof(a[0])) +- ++#define _(str) gettext (str) + + /* The known fields in their usual order. */ + static const struct +@@ -50,6 +53,98 @@ known_fields[] = + { "Content-Transfer-Encoding:", sizeof ("Content-Transfer-Encoding:") - 1 } + }; + ++void ++msgdomain_lists_merge_headers (msgdomain_list_ty **mdlps, ++ size_t nfiles) ++{ ++ message_list_list_ty * headers = message_list_list_alloc (); ++ char * plur = "Plural-Forms:"; ++ char * plurals[nfiles]; ++ int plur_index = 0; ++ /* First, find all header entries and cut them to lines. */ ++ for (int n = 0; n < nfiles; n++) ++ { ++ msgdomain_list_ty *mdlp = mdlps[n]; ++ for (size_t k = 0; k < mdlp->nitems; k++) ++ { ++ message_list_ty * chopped = message_list_header_list (mdlp->item[k]->messages); ++ if (chopped) message_list_list_append (headers, chopped); ++ } ++ ++ /* Set plural to NULL by default. */ ++ plurals[n] = NULL; ++ } ++ /* While there are some messages remaining, take the first one. */ ++ while (headers->nitems > 0) ++ { ++ message_ty * field = headers->item[0]->item[0]; ++ /* Let us save plurals for later use. */ ++ if (strcmp(field->msgid, plur) == 0) ++ { ++ plurals[0] = XNMALLOC (field->msgstr_len+1, char); ++ strcpy (plurals[0], field->msgstr); ++ for (int i = 1; i < headers->nitems; i++) ++ { ++ message_ty * mp = message_list_search (headers->item[i], NULL, plur); ++ if (mp!=NULL) ++ { ++ plurals[i] = XNMALLOC (mp->msgstr_len+1, char); ++ strcpy (plurals[i], mp->msgstr); ++ } ++ } ++ } ++ /* Set the header field and delete all the occurences of the field. */ ++ msgdomain_list_set_header_field (mdlps[0], field->msgid, field->msgstr); ++ for (int i = 1; i < headers->nitems; i++) ++ { ++ message_ty * mp = message_list_search (headers->item[i], NULL, field->msgid); ++ if (mp != NULL) ++ { ++ /* If needed, fix line numbering in advance. */ ++ if (mp != headers->item[i]->item[0]) ++ for (int l = mp->pos.line_number - headers->item[i]->item[0]->pos.line_number + 1; l < headers->item[i]->nitems; l++) ++ headers->item[i]->item[l]->pos.line_number--; ++ message_list_delete_nth (headers->item[i], mp->pos.line_number - headers->item[i]->item[0]->pos.line_number); ++ } ++ } ++ message_list_delete_nth (headers->item[0], 0); ++ /* If the first header is empty, start to process next nonempty header. */ ++ while (headers->nitems > 0 && headers->item[0]->nitems == 0) ++ { ++ message_list_free (headers->item[0], 0); ++ for (int i = 0; i < headers->nitems - 1; i++) ++ headers->item[i] = headers->item[i+1]; ++ headers->nitems--; ++ } ++ } ++ ++ /* Some plural manipulation. */ ++ char *res = NULL; ++ char *prevres = NULL; ++ prevres = plurals[0]; ++ /* The prevres is the value currently in the output header, ++ * res is the value just read. So if res == NULL we just ++ * continue, which is correct. */ ++ for (int n = 1; n < nfiles; n++) ++ { ++ res = plurals[n]; ++ if (res != NULL) ++ { ++ if (prevres == NULL) ++ { ++ msgdomain_list_set_header_field (mdlps[0], plur, res); ++ prevres = res; ++ } ++ else if (strcmp (res, prevres) != 0) ++ { ++ multiline_error (xstrdup (""), ++ xasprintf (_("\ ++Input po files have different Plural-Forms. Invalid output file was created. \n\ ++Please, fix the plurals.\n"))); ++ } ++ } ++ } ++} + + void + msgdomain_list_set_header_field (msgdomain_list_ty *mdlp, +@@ -81,8 +176,8 @@ msgdomain_list_set_header_field (msgdoma + { + message_ty *mp = mlp->item[j]; + +- /* Modify the header entry. */ +- const char *header = mp->msgstr; ++ /* Modify the header entry (it does not have to be present). */ ++ const char *header = (mp->msgstr != NULL) ? mp->msgstr : "\0"; + char *new_header = + XNMALLOC (strlen (header) + 1 + + strlen (field) + 1 + strlen (value) + 1 + 1, +@@ -230,14 +325,14 @@ message_list_read_header_field (message_ + size_t field_len = strlen (field); + size_t j; + ++ *where_ptr = NULL; ++ + /* Search the header entry. */ + for (j = 0; j < mlp->nitems; j++) + if (is_header (mlp->item[j]) && !mlp->item[j]->obsolete) + { +- /* We found the correct message. */ ++ /* We found the correct message. */ + message_ty *mp = mlp->item[j]; +- +- /* Tag the header entry. */ + const char *header = mp->msgstr; + + /* Test whether the field occurs in the header entry. */ +@@ -247,7 +342,7 @@ message_list_read_header_field (message_ + { + if (strncmp (h, field, field_len) == 0) + break; +- /* Jump by lines. */ ++ /* Jump by lines. */ + h = strchr (h, '\n'); + if (h == NULL) + break; +@@ -257,15 +352,57 @@ message_list_read_header_field (message_ + { + /* We found it and it is nonempty. Read the value of the field. */ + h += field_len + 1; +- char *enh = strchr (h, '\n'); +- if (enh != NULL && *enh != '\0') ++ char *enh = strchr (h, '\n'); ++ if (enh != NULL && *enh != '\0') + { + *where_ptr = (char *)XNMALLOC (((enh - h) + 1), char); + memcpy (*where_ptr, h, enh - h); +- /* Make the string null-terminated. */ ++ /* Make the string null-terminated. */ + (*where_ptr)[enh-h] = '\0'; +- } ++ } + } + } + } + ++message_list_ty * ++message_list_header_list (message_list_ty *mlp) ++{ ++ size_t j; ++ ++ /* Search the header entry. */ ++ for (j = 0; j < mlp->nitems; j++) ++ if (is_header (mlp->item[j]) && !mlp->item[j]->obsolete) ++ { ++ /* We found the correct message. */ ++ message_ty *mp = mlp->item[j]; ++ const char *h = mp->msgstr; ++ message_list_ty * header = message_list_alloc (false); ++ int ctr = 0; ++ ++ while (*h != '\0') ++ { ++ char *enh = strchr (h, ':'); ++ enh++; ++ char * msgid = (char *)XNMALLOC (((enh - h) + 1), char); ++ memcpy (msgid, h, enh - h); ++ /* Make the string null-terminated. */ ++ (msgid)[enh-h] = '\0'; ++ h = enh + 1; ++ ++ enh = strchr (h, '\n'); ++ if (enh != NULL) ++ { ++ char * msgstr = (char *)XNMALLOC (((enh - h) + 1), char); ++ memcpy (msgstr, h, enh - h); ++ /* Make the string null-terminated. */ ++ msgstr[enh-h] = '\0'; ++ lex_pos_ty pos = {NULL, ctr++}; ++ message_list_append (header, message_alloc (NULL, msgid, NULL, msgstr, enh - h, &pos)); ++ h = enh + 1; ++ } ++ else return NULL; ++ } ++ return header; ++ } ++ return NULL; ++} +Index: gettext-0.20.1/gettext-tools/src/msgl-header.h +=================================================================== +--- gettext-0.20.1.orig/gettext-tools/src/msgl-header.h ++++ gettext-0.20.1/gettext-tools/src/msgl-header.h +@@ -33,6 +33,11 @@ extern "C" { + extern void + msgdomain_list_set_header_field (msgdomain_list_ty *mdlp, + const char *field, const char *value); ++/* Merge headers of po files. ++ */ ++extern void ++ msgdomain_lists_merge_headers (msgdomain_list_ty **mdlps, ++ size_t nfiles); + + /* Remove the given field from the header. + The FIELD name ends in a colon. */ +@@ -46,6 +51,9 @@ extern void + message_list_read_header_field (message_list_ty *mlp, + const char *field, char **where_ptr); + ++/* List all the headers from a po file. */ ++extern message_list_ty * ++ message_list_header_list (message_list_ty *mlp); + + #ifdef __cplusplus + } diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..1712787 --- /dev/null +++ b/_multibuild @@ -0,0 +1,6 @@ + + gettext-csharp + gettext-java + gettext-runtime-mini + + diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..ac9e342 --- /dev/null +++ b/baselibs.conf @@ -0,0 +1,4 @@ +gettext-runtime + obsoletes "gettext- <= " + provides "gettext- = " +libtextstyle0 diff --git a/boo941629-unnessary-rpath-on-standard-path.patch b/boo941629-unnessary-rpath-on-standard-path.patch new file mode 100644 index 0000000..1e61ed1 --- /dev/null +++ b/boo941629-unnessary-rpath-on-standard-path.patch @@ -0,0 +1,15 @@ +Index: gettext-0.19.5.1/build-aux/config.rpath +=================================================================== +--- gettext-0.19.5.1.orig/build-aux/config.rpath ++++ gettext-0.19.5.1/build-aux/config.rpath +@@ -216,7 +216,9 @@ if test "$with_gnu_ld" = yes; then + ;; + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then +- : ++ if [[ $libdir = '/usr/lib' ]] || [[ $libdir = '/usr/lib64' ]] ; then ++ hardcode_libdir_flag_spec="" ++ fi + else + ld_shlibs=no + fi diff --git a/gettext-0.12.1-gettextize.patch b/gettext-0.12.1-gettextize.patch new file mode 100644 index 0000000..821ca3d --- /dev/null +++ b/gettext-0.12.1-gettextize.patch @@ -0,0 +1,25 @@ +Index: gettext-tools/misc/gettextize.in +=================================================================== +--- a/gettext-tools/misc/gettextize.in.orig 2010-06-06 14:49:57.000000000 +0200 ++++ b/gettext-tools/misc/gettextize.in 2010-12-20 18:47:11.932132562 +0100 +@@ -1262,20 +1262,6 @@ if $doit; then + echo "It is a wrapper around that implements the configure --disable-nls" + echo "option." + echo +- count=`echo "$please" | grep '^$' | wc -l` +- count=`echo "$count" | sed -e 's/[ ]//g'` +- case "$count" in +- 1) count="paragraph";; +- 2) count="two paragraphs";; +- 3) count="three paragraphs";; +- 4) count="four paragraphs";; +- 5) count="five paragraphs";; +- *) count="$count paragraphs";; +- esac +- echo "Press Return to acknowledge the previous $count." +- # Read from /dev/tty, not stdin, so that gettextize cannot be abused by +- # non-interactive tools. +- read dummy < /dev/tty + fi + + exit 0 diff --git a/gettext-0.12.1-sigfpe.patch b/gettext-0.12.1-sigfpe.patch new file mode 100644 index 0000000..f8a6876 --- /dev/null +++ b/gettext-0.12.1-sigfpe.patch @@ -0,0 +1,47 @@ +Index: gettext-runtime/intl/dcigettext.c +=================================================================== +--- a/gettext-runtime/intl/dcigettext.c.orig 2010-06-06 14:49:57.000000000 +0200 ++++ b/gettext-runtime/intl/dcigettext.c 2010-12-20 18:47:11.543133542 +0100 +@@ -68,20 +68,7 @@ extern int errno; + #endif + + #include +- +-#ifdef _LIBC +- /* Guess whether integer division by zero raises signal SIGFPE. +- Set to 1 only if you know for sure. In case of doubt, set to 0. */ +-# if defined __alpha__ || defined __arm__ || defined __i386__ \ +- || defined __m68k__ || defined __s390__ +-# define INTDIV0_RAISES_SIGFPE 1 +-# else +-# define INTDIV0_RAISES_SIGFPE 0 +-# endif +-#endif +-#if !INTDIV0_RAISES_SIGFPE +-# include +-#endif ++#include + + #if defined HAVE_SYS_PARAM_H || defined _LIBC + # include +Index: gettext-runtime/intl/eval-plural.h +=================================================================== +--- a/gettext-runtime/intl/eval-plural.h.orig 2010-06-06 14:49:57.000000000 +0200 ++++ b/gettext-runtime/intl/eval-plural.h 2010-12-20 18:48:36.928872823 +0100 +@@ -62,16 +62,12 @@ plural_eval (const struct expression *pe + case mult: + return leftarg * rightarg; + case divide: +-#if !INTDIV0_RAISES_SIGFPE + if (rightarg == 0) + raise (SIGFPE); +-#endif + return leftarg / rightarg; + case module: +-#if !INTDIV0_RAISES_SIGFPE + if (rightarg == 0) + raise (SIGFPE); +-#endif + return leftarg % rightarg; + case plus: + return leftarg + rightarg; diff --git a/gettext-0.19.3-fix-bashisms.patch b/gettext-0.19.3-fix-bashisms.patch new file mode 100644 index 0000000..eec1727 --- /dev/null +++ b/gettext-0.19.3-fix-bashisms.patch @@ -0,0 +1,17 @@ +diff -Ndurp gettext-0.19.3/gettext-tools/examples/hello-c++-kde/admin/cvs.sh gettext-0.19.3-fix-bashisms/gettext-tools/examples/hello-c++-kde/admin/cvs.sh +--- gettext-0.19.3/gettext-tools/examples/hello-c++-kde/admin/cvs.sh 2013-05-02 11:40:04.000000000 +0300 ++++ gettext-0.19.3-fix-bashisms/gettext-tools/examples/hello-c++-kde/admin/cvs.sh 2014-12-28 16:59:45.300732878 +0200 +@@ -423,7 +423,12 @@ for subdir in $dirs; do + fi + fi + if test -n "`grep -r KAboutData *.c* *.C* 2>/dev/null`"; then +- echo -e 'i18n("_: NAME OF TRANSLATORS\\n"\n"Your names")\ni18n("_: EMAIL OF TRANSLATORS\\n"\n"Your emails")' > _translatorinfo.cpp ++ cat > _translatorinfo.cpp <<-EOF ++ i18n("_: NAME OF TRANSLATORS\n" ++ "Your names") ++ i18n("_: EMAIL OF TRANSLATORS\n" ++ "Your emails") ++ EOF + else echo " " > _translatorinfo.cpp + fi + perl -e '$mes=0; while () { next if (/^(if|else|endif)\s/); if (/^messages:/) { $mes=1; print $_; next; } if ($mes) { if (/$\\(XGETTEXT\)/ && / -o/) { s/ -o \$\(podir\)/ _translatorinfo.cpp -o \$\(podir\)/ } print $_; } else { print $_; } }' < Makefile.am | egrep -v '^include ' > _transMakefile diff --git a/gettext-0.22.5.tar.xz b/gettext-0.22.5.tar.xz new file mode 100644 index 0000000..058f4ba --- /dev/null +++ b/gettext-0.22.5.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fe10c37353213d78a5b83d48af231e005c4da84db5ce88037d88355938259640 +size 10270724 diff --git a/gettext-0.22.5.tar.xz.sig b/gettext-0.22.5.tar.xz.sig new file mode 100644 index 0000000..143326c --- /dev/null +++ b/gettext-0.22.5.tar.xz.sig @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNATURE----- + +iQIzBAABCgAdFiEEkAG4WvnhuD3xvalC9b6LJnxqQG0FAmXWoBsACgkQ9b6LJnxq +QG3T8w//Q81Fg9O8duoSxmmUUTYLjSi5Sn21qS3n3/J+unlj2BkzyXPg9Jyj1IsE +9ZVRHEmPoX+c4zJjWQkDDiVqJWwyEBwc0dXlbdQ48N5oHGYnZwhfaProxggKDKyW +O2XujELz4tKkuXzKpiWtywyf5qKwxkZPmSNG/CjP+8MW0NpRMtyZyEZqlCX7ZyEZ +50Pi32nUagpyA24yRGdzuJpyJ40mPu8idLMj9gkaYmlV3vgitK5YW7ybX8q+3qnr +A96MNA1sDxYx5YdQsI4DEVAyt7KSZd8a0HBdYFMHPTa82GjqamV4RJzb+SF2baPl +dhVtDUOuW6HsQNdKxcDhXE3uUamN3egQoyNCna2We8iq2wUSgddqjkmdK4xDgsyM +LqAUKXaDNg4kSVsG6CQ6RfKc2Z3F9nVh/tofb2+CaAZ6AktiXU9G9Ufni1g4KFqD +5Hlp7z0ENzLSqhAONj3I1uWkWS77Hv52lSiBaN+08wCH06B061zZKeUXA6YCx/JO +hzkYqNa+2nLpu9sKMpaQtN6mCcoJz2MnyMyA+P8eAx+K6mwKJm4wiGW1zanEomHM +3cRgacHxFwlsSc1V8EwoRZkpwUoHPBVkBPm3BQMsRwdNY2mwPZRotPGG8UjdgepW +HQwY2DBt2sPDF2MleQVe1khSBlXQboVfILE1+qzPPQsBEQEstJE= +=BK/C +-----END PGP SIGNATURE----- diff --git a/gettext-csharp.changes b/gettext-csharp.changes new file mode 100644 index 0000000..ebeab32 --- /dev/null +++ b/gettext-csharp.changes @@ -0,0 +1,699 @@ +------------------------------------------------------------------- +Tue Jul 16 08:42:20 UTC 2024 - Bernhard Wiedemann + +- Use %autosetup + +------------------------------------------------------------------- +Mon Feb 26 14:57:24 UTC 2024 - Dominique Leuenberger + +- Use %patch -P N instead of deprecated %patchN. + +------------------------------------------------------------------- +Sat Feb 24 18:50:38 UTC 2024 - Andreas Stieger + +- update to 0.22.5: + * xgettext's processing of Vala files with printf method + invocations has been corrected (regression in 0.22) + +------------------------------------------------------------------- +Tue Feb 13 09:03:34 UTC 2024 - Antonio Larrosa + +- Update to version 0.22.4 + * Bug fixes: + - AM_GNU_GETTEXT now recognizes a statically built libintl on + macOS and AIX. + - Build fixes on AIX +- Update to version 0.22.3 + * Portability: + - The libintl library now works on macOS 14. (Older versions + of libintl crash on macOS 14, due to an incompatible change + in macOS.) +- Update to version 0.22.2 + * No information available upstream +- Update to version 0.22.1 + * Bug fixes: + - The libintl shared library now exports again some symbols + that were accidentally missing. + - xgettext's processing of large Perl files may have led to + errors. + - "xgettext --join-existing" could encounter errors. + * Portability: + - Building on Android is now supported. +- Update to version 0.22.0 + * PO file format: + - When a #: line contains references to file names that contain + spaces, these file names are surrounded by Unicode characters + U+2068 and U+2069. This makes it possible to parse such + references correctly. + * Improvements for maintainers: + - The AM_GNU_GETTEXT macro now defines two variables + localedir_c and localedir_c_make, that can be used in C code + or in Makefiles, respectively, for representing the value of + the --localedir configure option. + * Programming languages support: + - C, C++: + + xgettext now supports gettext-like functions that take wide + strings (of type 'const wchar_t *', 'const char16_t *', or + 'const char32_t *') as arguments. + + xgettext now recognizes numbers with digit separators, as + defined by ISO C 23, as tokens. + + xgettext and msgfmt now recognize the format string + directive %b (for binary integer output, as defined by + ISO C 23) in format strings. + + xgettext and msgfmt now recognize the argument size + specifiers w8, w16, w32, w64, wf8, wf16, wf32, wf64 + (as defined by ISO C 23) in format strings. + + xgettext and msgfmt now recognize C++ format strings, as + defined by ISO C++ 20. They are marked as 'c++-format' in + POT and PO files. A new example has been added, + 'hello-c++20', that illustrates how to use these format + strings with gettext. + - Java: + + The build system and tools now also support Java versions + newer than Java 11. This is known to work up to Java 20, + at least. On the other hand, support for old versions of + Java (Java 1.5 and GCJ) has been dropped. + + Tcl: xgettext now supports the \x, \u, and \U escapes as + defined in Tcl 8.6. + * Portability: + - On systems with musl libc, the *gettext() functions in libc + now work with MO files generated from PO files with an + encoding other than UTF-8. To this effect, the msgfmt program + now converts the messages to UTF-8 encoding before storing + them in a MO file. You can prevent this byusing the msgfmt + --no-convert option. + - On systems with musl libc, the *gettext() functions in libc + now work with MO files generated from PO files with ISO C 99 + format string directive macros. To this effect, + the msgfmt program pre-expands strings with such macros. You + can prevent this by using the msgfmt --no-redundancy option. + * xgettext: + - The xgettext option '--sorted-output' is now deprecated. + - xgettext input files of type PO that are not all ASCII and + not UTF-8 encoded are now handled correctly. + * The base Unicode standard is now updated to 15.0.0. + * Emacs PO mode: + - Fix an incompatibility with Emacs version 29 or newer. +- Rebase patches: + * gettext-dont-test-gnulib.patch + * 0001-msgcat-Add-feature-to-use-the-newest-po-file.patch + * 0002-msgcat-Merge-headers-when-use-first.patch +- Drop patch which isn't required anymore since newer java + versions are already supported by upstream: + * gettext-0.21-jdk17.patch + +------------------------------------------------------------------- +Thu May 4 13:32:58 UTC 2023 - Frederic Crozat + +- Add _multibuild to define additional spec files as additional + flavors. + Eliminates the need for source package links in OBS. + +------------------------------------------------------------------- +Fri Apr 8 15:05:10 UTC 2022 - Fridrich Strba + +- Added patch: + * gettext-0.21-jdk17.patch + + Build with java source and target levels 1.8 + + Allows building with JDK17 + + Fixes build in Factory + +------------------------------------------------------------------- +Mon Nov 29 20:32:32 UTC 2021 - Michael Gorse + +- Remove libcroco from BuildRequires: it is now bundled internally. + +------------------------------------------------------------------- +Fri Jan 22 22:06:46 UTC 2021 - Dirk Müller + +- use https for urls +- spec-cleaner run +- apply all the patches from gettext-runtime + +------------------------------------------------------------------- +Tue Jul 28 10:33:41 UTC 2020 - Christian Vögl + +-Updated to version 0.21 + * Improvements for translators: + When msgfmt writes a MO file, it now does so in such a way that processes + that are currently using an older copy of the MO file will not crash. + + +------------------------------------------------------------------- +Mon Dec 9 11:17:04 UTC 2019 - Christian Vögl + +- Added -lm flag to CFLAGS + +------------------------------------------------------------------- +Tue Jun 11 13:08:04 UTC 2019 - Christian Vögl + +- Updated to version 0.20.1: + + msgfmt now eliminates the POT-Creation-Date header field from .mo files. + + msgmerge now has an option --for-msgfmt, that produces a PO file meant + for use by msgfmt only. This option saves processing time, in particular + by omitting fuzzy matching that is not useful in this situation. + + The .pot file in a 'po' directory is now erased by "make maintainer-clean". + + It is now possible to override xgettext options from the po/Makefile.in.in + through options in XGETTEXT_OPTIONS (declared in po/Makevars). + + The --intl option of the gettextize program (deprecated since 2010) is + no longer available. Instead of including the intl sources in your package, + we suggest making the libintl library an optional prerequisite of your + package. This will simplify the build system of your package. + + Accordingly, the Autoconf macro AM_GNU_GETTEXT_INTL_SUBDIR is gone as well. +- Rebased gettext-po-mode.diff +- Removed gettext-needlessly_init_vars.patch (now in upstream) + + +------------------------------------------------------------------- +Mon May 14 19:56:58 UTC 2018 - antoine.belvire@opensuse.org + +- Remove prereq on info: No info page installed. + +------------------------------------------------------------------- +Wed Oct 18 17:30:16 UTC 2017 - jayvdb@gmail.com + +- Disable debug packages on RHEL and derived distributions + +------------------------------------------------------------------- +Sun Jun 19 15:42:15 UTC 2016 - astieger@suse.com + +- GNU gettext 0.19.8.1: + * Fix unintentional soname bump + +------------------------------------------------------------------- +Sat Jun 11 18:58:17 UTC 2016 - astieger@suse.com + +- GNU gettext 0.19.8: + * msgfmt now produces little-endian .mo files by default. + * xml: xgettext and msgfmt now look for .its files in directories + supplied through the GETTEXTDATADIRS or XDG_DATA_DIRS + environment variable. + * JavaScript: xgettext and msgfmt now recognize numbered + arguments in format strings. + +------------------------------------------------------------------- +Mon Apr 4 19:15:53 UTC 2016 - astieger@suse.com + +- GNU gettext 0.19.7: + * can now load custom string extraction rules in XML + Internationalization Tag Set (ITS) standard + * the existing XML-based language scanners (Glade, GSettings, and + AppData) rewritten using ITS + * Add msgfmt --xml option to merge translations back to the + original XML document. + +------------------------------------------------------------------- +Fri Sep 11 18:56:49 UTC 2015 - astieger@suse.com + +- GNU gettext 0.19.6: + * Support AppData file format + +------------------------------------------------------------------- +Thu Jul 16 10:56:05 UTC 2015 - astieger@suse.com + +- GNU gettext 0.19.5.1: + * fix build on old platforms where stpcpy and stpncpy is missing + +------------------------------------------------------------------- +Fri Jul 10 14:34:22 UTC 2015 - astieger@suse.com + +- GNU gettext 0.19.5: + * drop gettext-check-allocated-size-for-static-segment.patch, + is upstream + +------------------------------------------------------------------- +Tue Mar 10 07:11:29 UTC 2015 - mlin@suse.com + +- Add gettext-check-allocated-size-for-static-segment.patch from upstream + * Check if the embedded segment size is valid, before adding it to + the string length. Please see + http://lists.gnu.org/archive/html/bug-gettext/2015-03/msg00005.html + +------------------------------------------------------------------- +Tue Jan 27 20:24:49 UTC 2015 - andreas.stieger@gmx.de + +- GNU gettext 0.19.4: + * The --keyword option of xgettext now accepts same argument + number for both singular and plural forms. + * Programming languages support: + - C#: xgettext now properly handles Unicode characters encoded + with surrogate pairs. + - C/C++: xgettext now recognizes ISO/IEC 9899:2011 string + literals prefixed by R, u8, u8R, u, uR, U, UR, L, or LR. + - Shell: xgettext now properly recognizes Bash ANSI-C quoting + ($'...'). + * Bug fixes: + - Fix integer overflow when reading certain MO files with + msgunfmt. + - Avoid invalid memory access in various cases. In particular, + when the same argument number is specified for singular/ + plural arguments, and when checking Lisp and Scheme format + strings. + +------------------------------------------------------------------- +Fri Oct 17 21:56:18 UTC 2014 - andreas.stieger@gmx.de + +- GNU gettext 0.19.3: + * Fix xgettext mishandling of octal character escapes in C. + * Fix autopoint infinite recursion with certain configure.ac. + * The po/Makevars file has a new field MSGINIT_OPTIONS, that can + be used to adjust msginit's operation. This is particularly + useful for controlling line wrapping behavior together with + MSGMERGE_OPTIONS and XGETTEXT_OPTIONS. + +------------------------------------------------------------------- +Tue Jul 15 11:49:59 CEST 2014 - pth@suse.de + +- Update to 0.19.2: + * Fix xgettext crash in parsing empty string literals in C and Vala. + * Autoconf macro trace in autopoint now works again with Autoconf 2.68 + or earlier. It was a regression in 0.19. + +------------------------------------------------------------------- +Tue Jun 10 22:00:50 UTC 2014 - andreas.stieger@gmx.de + +- GNU gettext 0.19.1: + * Desktop Entry: msgfmt now always reads the po/LINGUAS file + * Vala: Bug fix in xgettext handling of "//" in string literals + * po/Makevars.template now contains the newly added variables + * msgfmt now treats errors in the PO file header as non-fatal + In future Gettext versions, msgfmt will treat header errors as + fatal and terminate the command execution. +- switch to xz tarball + +------------------------------------------------------------------- +Tue Jun 3 19:20:25 UTC 2014 - andreas.stieger@gmx.de + +- GNU gettext 0.19: + - Programming languages support: + * Desktop Entry: + xgettext and msgfmt now support .desktop files, used by + desktop applications, as input and output. + * GSettings: + xgettext now supports GSettings schema file format used by + GNOME applications. + * JavaScript: + xgettext now recognizes E4X (ECMA-357) constructs. + * PHP: + Single and double quotes around heredoc markers are now + recognized. + * Python: + The acceptable format specifiers in the braced-syntax format + strings is now limited to the Standard Format Specifiers, to + reasonably avoid false-positives. + * Scheme: + The gettext shorthand form _"abc", used by GIMP script-fu, is + now recognized by xgettext. + * C and Vala: + xgettext now recognizes C99-style Unicode character escapes. + - The --add-location option of msgattrib, msgcat, msgcomm, + msgconv, msgen, msgfilter, msggrep, msgmerge, msguniq, and + xgettext commands now takes an optional argument 'never', + 'full', or 'file', to control the format of "#: ..." comments. + - msgfmt now has --source option to keep generated .java file + when running in Java mode. + - msgattrib now has --empty option that sets msgstr to empty when + clearing fuzzy flag. + * msgexec and msgfilter pass the plural information to subprocess + through the environment variable MSG{EXEC,FILTER}_MSGID_PLURAL + and MSG{EXEC,FILTER}_PLURAL_FORM. + * New built-in filters 'quot' and 'boldquot' have been added to + msgfilter. These filters convert Latin quotation marks ('...', + "...") into Unicode quotation marks (for example, U+2018) if + possible, similar to the sed commands used in po/Rules-quot and + po/Rules-boldquot. + * The po/Makevars file has a couple of new options + PO_DEPENDS_ON_POT and DIST_DEPENDS_ON_UPDATE_PO, that can be + used to adjust the behavior of updating PO files on demand. + * xgettext now strips prefixed string before the comment tag. + This is useful to support C-style comment like this: + /* + * TRANSLATORS: first line + * second line + */ + * In this example, the extracted comment does not contain "* " at + the beginning of each line. + * libgettextpo library: + - Memory leak fixes in the PO file parser. + * Documentation: + - A complete example showing the use of GNU gettext in a + GNOME 3 application has been added + +------------------------------------------------------------------- +Sun Jan 12 21:56:01 UTC 2014 - andreas.stieger@gmx.de + +- GNU gettext 0.18.3.2: + * Add missing extern-inline.m4 into archive. +- verify source signature + +------------------------------------------------------------------- +Mon Aug 12 10:45:36 UTC 2013 - christoph.miebach@web.de + +- Version 0.18.3 - July 2013 + + * Runtime behaviour: + On Mac OS X systems, the setlocale() function now properly + invalidates loaded message catalogs when a locale has been set. + + * Programming languages support: + + - C++: + The gnu::autosprintf class now provides an assignment + operator. + + - Glade: + xgettext now supports GtkBuider file format used by Glade 3. + xgettext now also extracts contexts (msgctxt) from Glade 2 + and GtkBuider files. + + - JavaScript: + xgettext now partially supports JavaScript. Since the + current JavaScript specification (ECMA-262) does not define + the standard set of formatting methods nor translation + functions, the implementation supports only a limited + set of formatting methods and translation functions commonly + used in Gjs and other popular JavaScript implemenations and + libraries. + + - Lua: + xgettext now supports Lua, using Ľubomír Remák's lua-gettext. + + - Python: + xgettext and msgfmt's format string checking now recognize + Python format string in braced syntax (PEP 3101). xgettext + now also supports explicit string concatenation with '+' and + handles platform dependent line terminators (LF/CR/CRLF) + transparently. + + - Tcl: + Bug fix in xgettext Unicode escape handling. + + - Vala: + xgettext now supports Vala. + + * msgattrib now has --previous option to keep previous msgid when + making messages fuzzy, similar to msgmerge --previous. + + * msgfmt now checks PO file headers more strictly with less + false-positives. + + * 'gettextize' now checks macro directories specified with + AC_CONFIG_MACRO_DIRS in configure.ac. + + * Portability: + - msginit now does not require GNU sed. + - The Makefile rule for generating en@quot and en@boldquot now + uses @SED@ variable instead of hard-coded 'sed' command to + allow users to supply GNU sed. + + * Future backward-incompatibilities: + - In future Gettext versions, the files installed by + 'gettextize' will require Automake 1.10 or later. This will + improve the compatibility of user projects with newer + Automake versions. +- Remove upstreamed patches: + gettext-configure.patch + +------------------------------------------------------------------- +Sat Jun 15 11:52:06 UTC 2013 - schwab@linux-m68k.org + +- Add glib2-devel libcroco-devel libxml2-devel to build requires to avoid + using the included copies. +- gettext-configure.patch: Fix syntax in libxml check to avoid spurious + failure + +------------------------------------------------------------------- +Sat Jun 8 08:39:07 UTC 2013 - christoph.miebach@web.de + +- Update to version 0.18.2.1: Version 0.18.2 - December 2012 + + xgettext now understands the block comment syntax of Guile 2.0. + + libgettextpo library: + * The initial msgstr of a new message is now "", not NULL. + * Bug fixes in the functions po_message_is_range, + po_file_check_all, po_message_check_all. + + Installation options: + The configure options --with-xz and --with-bzip2 can be used to + specify alternate compression methods for the archive used by + the 'autopoint' program. These options, together with + --with-git, allow to trade dependencies against installed + package size. --with-xz has the highest compression rate, + followed by --with-git, followed by --with-bzip2. + + Autoconf macros: + * The autoconf macros installed by 'gettextize' now work with + the forthcoming Automake 1.14 and require Autoconf version + 2.60 or newer. + + Portability: + * Building on MacOS X 10.7, Cygwin 1.7.10, and newer 64-bit + mingw is now supported. + +- Remove obsolete patches: + + getext-stdio.in.patch + + gettext-codecleanup.patch + +------------------------------------------------------------------- +Wed Mar 27 07:50:30 UTC 2013 - mmeister@suse.com + +- Added url as source. + Please see http://en.opensuse.org/SourceUrls + +------------------------------------------------------------------- +Mon Sep 24 17:21:00 CEST 2012 - pth@suse.de + +- remove silent_rules from AM_INIT_AUTOMAKE to make autoreconf + succeed on older distributions. +- Rename po-mode.diff to gettext-po-mode.diff + +------------------------------------------------------------------- +Sun Jul 22 18:41:30 UTC 2012 - aj@suse.de + +- Fix build with missing gets declaration (glibc 2.16) + +------------------------------------------------------------------- +Tue Dec 21 13:43:49 CET 2010 - pth@suse.de + +- Update to 0.18.1. Changes since 0.17: + Version 0.18.1 - June 2010 + + * msggrep: A '$' anchor in a regular expression now also matches + the end of the string, even if it does not end in a newline. + + * Dependencies: + The libraries and programs are now linked with libunistring if + this library is already installed. + + * Installation options: + The configure option --with-cvs is deprecated. The 'autopoint' + program will now use the 'git' program by default to compress its + archive. If the configure option --without-git is specified, + 'autopoint' will not rely on 'git', but will instead rely on a + locally installed 3 MB large archive. + + Version 0.18 - May 2010 + + * PO file format: + There is a new field 'Language' in the header entry. It denotes + the language code (plus optional country code) for the PO file. + This field can be used by automated tools, such as spell + checkers. It is expected to be more reliable than looking at the + file name or at the 'Language-Team' field in the header entry. + + msgmerge, msgcat, msgen have a new option --lang that allows to + specify this field. Additionally, msgmerge fills in this new + field by looking at the 'Language-Team' field (if the --lang + option is not given). + + * xgettext and PO file format: + + For messages with plural forms, programmers can inform the + translators about the range of possible values of the numeric + argument, like this: + /* xgettext: range: 0..15 */ + This information 'range: 0..15' is stored in the PO file as a + flag attached to the message. Translators can produce better + translations when they know that the numeric argument is small. + + * Colorized PO files: + msgattrib, msgcomm, msgconv, msgen, msgfilter, msggrep, msginit, + msgmerge, msgunfmt, msguniq, xgettext now have options --color + and --style, like msgcat has since version 0.17. + + * msgmerge is up to 10 times faster when the PO and POT files are + large. This speedup was contributed by Ralf Wildenhues. + + * msgcmp has a new option -N/--no-fuzzy-matching, like msgmerge has + since version 0.12. + + * msgfilter now sets environment variables during the invocation of + the filter, indicating the msgid and location of the messge being + processed. + + * xgettext now can extract plural forms from Qt 4 programs. The + recommended xgettext command-line options for this case are: + --qt --keyword=tr:1,1t --keyword=tr:1,2c,2t --keyword=tr:1,1,2c,3t + + * xgettext --language=GCC-source now recognizes also the format + strings used in the Fortran front-end of the GCC compiler, and + marks them as 'gfc-internal-format'. + + * autopoint can now be used to update several PO directories all + together. + + * PO mode changes: + - PO files with plural entries are now correctly handled. + - Editing a message with previous msgid (in comments) removes these + comments. Contributed by Noritada Kobayashi. + + * The po/Makevars file has a new field MSGMERGE_OPTIONS, that can + be used to adjust msgmerge's operation. + + * The use of the macro AM_GNU_GETTEXT without 'external' argument + and the --intl option of the gettextize program are deprecated + and will be removed in the next release. Instead of including + the intl sources in your package, we suggest making the libintl + library an (optional) prerequisite of your package. + + * Updated the meaning of 'gcc-internal-format' to match GCC 4.3. + + * Installation options: + The configure options --without-cvs and --with-git can be used to + specify whether 'autopoint' will use the 'cvs' program, or the + 'git' program, or none at all. These options allow to trade + dependencies against installed package size: If --without-cvs is + specified and --with-git is not specified, 'autopoint' will not + rely on 'cvs' or 'git', but will instead rely on a locally + installed a 3 MB large archive. + + * Portability: The msgfilter program now also works on native Woe32 + - platforms. Compiled C# message catalogs now also work with + - 'mono' versions from 2009 + or newer. + +------------------------------------------------------------------- +Fri Mar 5 09:34:18 UTC 2010 - puzel@novell.com + +- remove gettext-tools/gnulib-m4/openmp.m4: fix build with new + autoconf + +------------------------------------------------------------------- +Mon Jul 27 12:52:23 CEST 2009 - rguenther@suse.de + +- Remove rather than %exclude not packaged files + +------------------------------------------------------------------- +Tue Oct 14 13:11:43 CEST 2008 - kukuk@suse.de + +- Never install files in %check section +- Disable autoconf/libtool tests + +------------------------------------------------------------------- +Mon Oct 13 16:03:05 CEST 2008 - kukuk@suse.de + +- Fix autoreconf call + +------------------------------------------------------------------- +Sun May 18 10:35:50 CEST 2008 - pth@suse.de + +- Fix segmentation fault in msgmerge (bnc#391372). + +------------------------------------------------------------------- +Tue Dec 4 14:43:27 CET 2007 - pth@suse.de + +- Add patch from upstreams to add the missing mode for the open call. + +------------------------------------------------------------------- +Fri Nov 23 14:47:34 CET 2007 - pth@suse.de + +- Remove the patch for disabling a test. + +------------------------------------------------------------------- +Fri Nov 16 13:59:43 CET 2007 - pth@suse.de + +- Don't run the testsuite. + +------------------------------------------------------------------- +Thu Nov 15 12:51:17 CET 2007 - pth@suse.de + +- Rename packages: gettext -> gettext-runtime and + gettext-devel -> gettext->tools + Packaging closely follows uptream recommendation with a few + exceptions. + +- Initialize variable to shut up gcc. +- Disable msgmerge-compendium-5 for now. + +- Update to 0.17: + * License: + The gettext related programs and tools are now licensed under the GPL + version 3, instead of the GPL version 2. + + * PO file format: + The Project-Id-Version field in the header entry may now already be filled + in the POT file. In this case, the translators don't need to fill it in. + xgettext has new options --package-name and --package-version that allow + to specify the package name and version from a Makefile. + + * Colorized PO files: + The msgcat program has new options --color and --style that produce a + colorized PO file output, where keywords, strings, comments, or format + directives can be highlighted. See the documentation section + "Highlighting parts of PO files" for more info. + + * gettextize now has a --po-dir option that allows several PO directories to + be updated all together. + + * Programming languages support: + - Contexts (msgctxt) are now also supported for Java and C#. + - C# with Qt: The support for Qt format strings has been updated for Qt 4. + - C++ with KDE: + xgettext has a new option --kde that triggers the recognition and marking + of KDE 4 format strings. + + * Autoconf macros: + - A new macro AM_XGETTEXT_OPTION can be used as an alternative to modifying + po/Makevars. + + * libgettextpo library: + - New functions are available for querying the list of supported format + types. + - The functions po_message_comments and po_message_extracted_comments + return a multiline string where each line no longer starts with a + redundant space. The leading space in every comment line is now stripped + while reading the PO file. + - Conversely, when you pass a multiline string to the function + po_message_set_comments or po_message_set_extracted_comments, you normally + don't pass a space at the beginning of each line, because such spaces are + no longer trimmed during output. + + * Documentation: + - The "Users" chapter has been completely rewritten. + - New section "Highlighting parts of PO files". + - A complete example showing the use of GNU gettext in Java with the Qt/Jambi + GUI toolkit has been added. + +- Add tcl and perl-libintl-perl to BuildRequires (testsuite needs + them). +- Remove call to gl_AC_TYPE_LONG_LONG from libasprintf's + configure.ac + +------------------------------------------------------------------- +Wed Oct 31 16:58:36 CET 2007 - mrueckert@suse.de + +- renamed rpmlintrc to gettext-rpmlintrc and added it to the spec + as source 1 + +------------------------------------------------------------------- +Fri Aug 10 19:40:37 CEST 2007 - bk@suse.de + +- Update to gettext 0.16.1, required by GnuPG 2.0.5 + +------------------------------------------------------------------- +Thu Aug 9 18:04:26 CEST 2007 - bk@suse.de + +- re-enable make check + +------------------------------------------------------------------- +Tue Jul 10 17:25:43 CEST 2007 - pth@suse.de + +- Split .NET/Mono support into a package with its own spec + to avoid making the base gettext package dependent on mono(-devel). + diff --git a/gettext-csharp.spec b/gettext-csharp.spec new file mode 100644 index 0000000..a734e6e --- /dev/null +++ b/gettext-csharp.spec @@ -0,0 +1,131 @@ +# +# spec file for package gettext-csharp +# +# Copyright (c) 2024 SUSE LLC +# +# 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 https://bugs.opensuse.org/ +# + + +%if 0%{?fedora_version} || 0%{?centos_version} <= 600 || 0%{?scilin_version} <= 600 || 0%{?rhel_version} <= 600 +%global debug_package %{nil} +%endif +Name: gettext-csharp +Version: 0.22.5 +Release: 0 +Summary: Native Language Support (NLS) for C# +License: LGPL-2.1-or-later +Group: Development/Tools/Other +URL: https://www.gnu.org/software/gettext/ +Source0: https://ftp.gnu.org/gnu/gettext/gettext-%{version}.tar.xz +Source1: https://ftp.gnu.org/gnu/gettext/gettext-%{version}.tar.xz.sig +Source2: suse-start-po-mode.el +Source3: gettext-linkdupes.sh +Source4: gettext-rpmlintrc +Source5: gettext-runtime.keyring +Patch0: gettext-0.12.1-sigfpe.patch +Patch1: gettext-0.19.3-fix-bashisms.patch +Patch2: gettext-0.12.1-gettextize.patch +Patch3: use-acinit-for-libtextstyle.patch +Patch4: gettext-po-mode.diff +Patch5: gettext-initialize_vars.patch +# PATCH-FIX-OPENSUSE gettext-dont-test-gnulib.patch -- coolo@suse.de +Patch6: gettext-dont-test-gnulib.patch +# PATCH-FIX-UPSTREAM boo#941629 -- pth@suse.com +Patch11: boo941629-unnessary-rpath-on-standard-path.patch +# PATCH-FIX-SUSE Bug boo#1106843 +Patch13: reproducible.patch +# PATCH-FEATURE bsc#1165138 +Patch14: 0001-msgcat-Add-feature-to-use-the-newest-po-file.patch +Patch15: 0002-msgcat-Merge-headers-when-use-first.patch +BuildRequires: automake >= 1.14 +BuildRequires: fdupes +BuildRequires: gcc-c++ +BuildRequires: glib2-devel +BuildRequires: libtool +BuildRequires: libxml2-devel +BuildRequires: mono-devel +BuildRequires: perl-libintl-perl +BuildRequires: tcl +Requires: mono + +%description +Mono with its 'resgen' program uses a design that Microsoft created and +that gives the power to the software vendor and not to the user: it +doesn't allow the end-user to create his own localisations for existing +programs. As documented in the gettext manual: + +The advantages of the .dll' format over the .resources' format are: + +1. 1. Freedom to localize: Users can add their own translations to an + application after it has been built and distributed. Whereas + when the programmer uses a ResourceManager' constructor provided + by the system, the set of .resources' files for an application + must be specified when the application is built and cannot be + extended afterwards. + +2., 3., 4. ... + +The included GNU.Gettext.dll gives the user this freedom back and the +also included msgfmt.net.exe and msgunfmt.net.exe handle PO files more +reliably than 'resgen'. + +%prep +%autosetup -p1 -n gettext-%{version} + +%build +export CFLAGS="%{optflags} -pipe -W -Wall -Dgcc_is_lint -lm" +export CXXFLAGS="%{optflags} -pipe -W -Wall -Dgcc_is_lint" +# expect a couple "You should update your `aclocal.m4' by running aclocal." +autoreconf -fiv +%configure --enable-shared --enable-csharp +%make_build GMSGFMT=../src/msgfmt + +%install +export LC_CTYPE=ISO-8859-15 +%make_install +mkdir examples +mv %{buildroot}/%{_datadir}/doc/gettext/examples/*csharp* examples +mv %{buildroot}/%{_datadir}/doc/gettext/csharpdoc csharpdoc +cd examples +fdupes -r *|while read dupe; do + if [ -z "$dupe" ]; then + startlink= + elif [ -z "$startlink" ]; then + startlink="$dupe" + else + ln -f "$startlink" "$dupe" + fi +done +cd .. +rm -rf %{buildroot}/%{_datadir}/* +mkdir -p %{buildroot}/%{_defaultdocdir}/%{name} +mv examples %{buildroot}/%{_defaultdocdir}/%{name} +mv csharpdoc %{buildroot}/%{_defaultdocdir}/%{name} +# exclude files packaged via other spec files +rm -Rf %{buildroot}/%{_bindir} +rm -f %{buildroot}/%{_libdir}/lib* +rm -f %{buildroot}/%{_libdir}/gettext/hostname +rm -f %{buildroot}/%{_libdir}/gettext/project-id +rm -f %{buildroot}/%{_libdir}/gettext/urlget +rm -f %{buildroot}/%{_libdir}/gettext/user-email +rm -f %{buildroot}/%{_libdir}/gettext/cldr-plurals +rm -Rf %{buildroot}/%{_includedir} +rm -f %{buildroot}/%{_libdir}/preloadable_libintl.so + +%files +%doc %{_defaultdocdir}/%{name} +%{_libdir}/GNU.Gettext.dll +%{_libdir}/gettext/msgfmt.net.exe +%{_libdir}/gettext/msgunfmt.net.exe + +%changelog diff --git a/gettext-dont-test-gnulib.patch b/gettext-dont-test-gnulib.patch new file mode 100644 index 0000000..1bc33d7 --- /dev/null +++ b/gettext-dont-test-gnulib.patch @@ -0,0 +1,26 @@ +Subject: This is not gnulib, so don't test it +From: Stephan Kulow + +--- gettext-0.20.1.orig/gettext-tools/Makefile.am 2019-06-04 13:12:49.514030196 +0200 ++++ gettext-0.20.1/gettext-tools/Makefile.am 2019-06-04 13:13:09.778072816 +0200 +@@ -19,7 +19,7 @@ + AUTOMAKE_OPTIONS = 1.5 gnu no-dependencies + ACLOCAL_AMFLAGS = -I m4 -I ../gettext-runtime/m4 -I ../m4 -I gnulib-m4 -I libgrep/gnulib-m4 -I libgettextpo/gnulib-m4 + +-SUBDIRS = gnulib-lib libgrep src libgettextpo po its projects styles emacs misc man m4 tests system-tests gnulib-tests examples doc ++SUBDIRS = gnulib-lib libgrep src libgettextpo po its projects styles emacs misc man m4 tests system-tests examples doc + + EXTRA_DIST = misc/DISCLAIM + MOSTLYCLEANFILES = core *.stackdump +--- gettext-0.20.1.orig/gettext-tools/Makefile.in 2019-06-04 13:12:49.514030196 +0200 ++++ gettext-0.20.1/gettext-tools/Makefile.in 2019-06-04 13:14:33.546249004 +0200 +@@ -2016,7 +2016,7 @@ + top_srcdir = @top_srcdir@ + AUTOMAKE_OPTIONS = 1.5 gnu no-dependencies + ACLOCAL_AMFLAGS = -I m4 -I ../gettext-runtime/m4 -I ../m4 -I gnulib-m4 -I libgrep/gnulib-m4 -I libgettextpo/gnulib-m4 +-SUBDIRS = gnulib-lib libgrep src libgettextpo po its projects styles emacs misc man m4 tests system-tests gnulib-tests examples doc ++SUBDIRS = gnulib-lib libgrep src libgettextpo po its projects styles emacs misc man m4 tests system-tests examples doc + + # Allow users to use "gnulib-tool --update". + + diff --git a/gettext-initialize_vars.patch b/gettext-initialize_vars.patch new file mode 100644 index 0000000..4adab28 --- /dev/null +++ b/gettext-initialize_vars.patch @@ -0,0 +1,17 @@ +Index: gettext-tools/gnulib-lib/gl_anylinked_list2.h +=================================================================== +--- a/gettext-tools/gnulib-lib/gl_anylinked_list2.h.orig 2010-05-24 11:42:37.000000000 +0200 ++++ b/gettext-tools/gnulib-lib/gl_anylinked_list2.h 2010-12-20 18:47:11.981132438 +0100 +@@ -34,6 +34,12 @@ + # define ASYNCSAFE(type) + #endif + ++#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ >= 3) || (__GNUC__ == 4 && __GNUC_MINOR__ > 1) ++# ifndef lint ++# define lint ++# endif ++#endif ++ + /* -------------------------- gl_list_t Data Type -------------------------- */ + + static gl_list_t diff --git a/gettext-java.changes b/gettext-java.changes new file mode 100644 index 0000000..8270c78 --- /dev/null +++ b/gettext-java.changes @@ -0,0 +1,760 @@ +------------------------------------------------------------------- +Tue Jul 16 08:42:20 UTC 2024 - Bernhard Wiedemann + +- Use %autosetup +- Add reproducible-jar.patch to use a constant jar mtime + for bit-reproducible builds + +------------------------------------------------------------------- +Mon Feb 26 14:57:24 UTC 2024 - Dominique Leuenberger + +- Use %patch -P N instead of deprecated %patchN. + +------------------------------------------------------------------- +Sat Feb 24 18:50:38 UTC 2024 - Andreas Stieger + +- update to 0.22.5: + * xgettext's processing of Vala files with printf method + invocations has been corrected (regression in 0.22) + +------------------------------------------------------------------- +Tue Feb 13 09:03:34 UTC 2024 - Antonio Larrosa + +- Update to version 0.22.4 + * Bug fixes: + - AM_GNU_GETTEXT now recognizes a statically built libintl on + macOS and AIX. + - Build fixes on AIX +- Update to version 0.22.3 + * Portability: + - The libintl library now works on macOS 14. (Older versions + of libintl crash on macOS 14, due to an incompatible change + in macOS.) +- Update to version 0.22.2 + * No information available upstream +- Update to version 0.22.1 + * Bug fixes: + - The libintl shared library now exports again some symbols + that were accidentally missing. + - xgettext's processing of large Perl files may have led to + errors. + - "xgettext --join-existing" could encounter errors. + * Portability: + - Building on Android is now supported. +- Update to version 0.22.0 + * PO file format: + - When a #: line contains references to file names that contain + spaces, these file names are surrounded by Unicode characters + U+2068 and U+2069. This makes it possible to parse such + references correctly. + * Improvements for maintainers: + - The AM_GNU_GETTEXT macro now defines two variables + localedir_c and localedir_c_make, that can be used in C code + or in Makefiles, respectively, for representing the value of + the --localedir configure option. + * Programming languages support: + - C, C++: + + xgettext now supports gettext-like functions that take wide + strings (of type 'const wchar_t *', 'const char16_t *', or + 'const char32_t *') as arguments. + + xgettext now recognizes numbers with digit separators, as + defined by ISO C 23, as tokens. + + xgettext and msgfmt now recognize the format string + directive %b (for binary integer output, as defined by + ISO C 23) in format strings. + + xgettext and msgfmt now recognize the argument size + specifiers w8, w16, w32, w64, wf8, wf16, wf32, wf64 + (as defined by ISO C 23) in format strings. + + xgettext and msgfmt now recognize C++ format strings, as + defined by ISO C++ 20. They are marked as 'c++-format' in + POT and PO files. A new example has been added, + 'hello-c++20', that illustrates how to use these format + strings with gettext. + - Java: + + The build system and tools now also support Java versions + newer than Java 11. This is known to work up to Java 20, + at least. On the other hand, support for old versions of + Java (Java 1.5 and GCJ) has been dropped. + + Tcl: xgettext now supports the \x, \u, and \U escapes as + defined in Tcl 8.6. + * Portability: + - On systems with musl libc, the *gettext() functions in libc + now work with MO files generated from PO files with an + encoding other than UTF-8. To this effect, the msgfmt program + now converts the messages to UTF-8 encoding before storing + them in a MO file. You can prevent this byusing the msgfmt + --no-convert option. + - On systems with musl libc, the *gettext() functions in libc + now work with MO files generated from PO files with ISO C 99 + format string directive macros. To this effect, + the msgfmt program pre-expands strings with such macros. You + can prevent this by using the msgfmt --no-redundancy option. + * xgettext: + - The xgettext option '--sorted-output' is now deprecated. + - xgettext input files of type PO that are not all ASCII and + not UTF-8 encoded are now handled correctly. + * The base Unicode standard is now updated to 15.0.0. + * Emacs PO mode: + - Fix an incompatibility with Emacs version 29 or newer. +- Rebase patches: + * gettext-dont-test-gnulib.patch + * 0001-msgcat-Add-feature-to-use-the-newest-po-file.patch + * 0002-msgcat-Merge-headers-when-use-first.patch +- Drop patch which isn't required anymore since newer java + versions are already supported by upstream: + * gettext-0.21-jdk17.patch + +------------------------------------------------------------------- +Thu May 4 13:32:58 UTC 2023 - Frederic Crozat + +- Add _multibuild to define additional spec files as additional + flavors. + Eliminates the need for source package links in OBS. + +-------------------------------------------------------------------------- +Fri Apr 8 15:05:10 UTC 2022 - Fridrich Strba + +- Added patch: + * gettext-0.21-jdk17.patch + + Build with java source and target levels 1.8 + + Allows building with JDK17 + + Fixes build in Factory + +------------------------------------------------------------------- +Mon Nov 29 20:32:32 UTC 2021 - Michael Gorse + +- Remove libcroco from BuildRequires: it is now bundled internally. + +------------------------------------------------------------------- +Fri Jan 22 22:06:58 UTC 2021 - Dirk Müller + +- use https for urls +- apply all the patches from gettext-runtime + +------------------------------------------------------------------- +Tue Jul 28 10:20:58 UTC 2020 - Christian Vögl + +- Updated to version 0.21 + - Java: + o xgettext now recognizes format strings in the Formatter syntax. They + are marked as 'java-printf-format' in POT and PO files. + o xgettext now recognizes text blocks as string literals. + - Improvements for translators: + o When msgfmt writes a MO file, it now does so in such a way that processes + that are currently using an older copy of the MO file will not crash. + +------------------------------------------------------------------- +Tue Jun 11 13:12:37 UTC 2019 - Christian Vögl + +- Updated to version 0.20.1 + + msgfmt now eliminates the POT-Creation-Date header field from .mo files. + + update-po target in Makefile.in.in now uses msgmerge --previous. + + msgmerge now has an option --for-msgfmt, that produces a PO file meant + for use by msgfmt only. This option saves processing time, in particular + by omitting fuzzy matching that is not useful in this situation. + + The .pot file in a 'po' directory is now erased by "make maintainer-clean". + + It is now possible to override xgettext options from the po/Makefile.in.in + through options in XGETTEXT_OPTIONS (declared in po/Makevars). + + The --intl option of the gettextize program (deprecated since 2010) is + no longer available. Instead of including the intl sources in your package, + we suggest making the libintl library an optional prerequisite of your + package. This will simplify the build system of your package. + + Accordingly, the Autoconf macro AM_GNU_GETTEXT_INTL_SUBDIR is gone as well. + + Java: + * xgettext now supports UTF-8 encoded .properties files (a new feature + of Java 9). + * The build system and tools now support Java 9, 10, and 11. On the + other hand, support for old versions of Java (Java 5 and older, + GCJ 4.2.x and older) has been dropped. +- Rebased gettext-po-mode.diff +- Removed gettext-needlessly_init_vars.patch (now in upstream) +- Removed gettext-0.19.8.1-jdk9.patch (now in upstream) + +------------------------------------------------------------------- +Mon May 14 19:45:56 UTC 2018 - antoine.belvire@opensuse.org + +- Remove prereq on info: No info page installed. + +------------------------------------------------------------------- +Wed Oct 18 17:30:16 UTC 2017 - jayvdb@gmail.com + +- Replace deprecated PreReq: with Requires(post): and Requires(preun): +- Disable debug packages on RHEL and derived distributions + +------------------------------------------------------------------- +Tue Oct 3 10:12:03 UTC 2017 - fstrba@suse.com + +- Added patch: + * gettext-0.19.8.1-jdk9.patch + + specify java soure and target level 6 to be able to build + with jdk9 +- Do not depend on gcc-java and do not build native binaries of the + gnu.gettext.GetURL and gnu.gettext.DumpResource tools, since + gcc-java is bound to disappear +- Build the gettext.jar using any java-devel provider and make the + gnu.gettext.GetURL and gnu.gettext.DumpResource tools scripts + running classes from this gettext.jar +- Clean the spec file a bit + +------------------------------------------------------------------- +Sun Jun 19 15:42:15 UTC 2016 - astieger@suse.com + +- GNU gettext 0.19.8.1: + * Fix unintentional soname bump + +------------------------------------------------------------------- +Sat Jun 11 18:58:17 UTC 2016 - astieger@suse.com + +- GNU gettext 0.19.8: + * msgfmt now produces little-endian .mo files by default. + * xml: xgettext and msgfmt now look for .its files in directories + supplied through the GETTEXTDATADIRS or XDG_DATA_DIRS + environment variable. + * JavaScript: xgettext and msgfmt now recognize numbered + arguments in format strings. + +------------------------------------------------------------------- +Mon Apr 4 19:15:53 UTC 2016 - astieger@suse.com + +- GNU gettext 0.19.7: + * can now load custom string extraction rules in XML + Internationalization Tag Set (ITS) standard + * the existing XML-based language scanners (Glade, GSettings, and + AppData) rewritten using ITS + * Add msgfmt --xml option to merge translations back to the + original XML document. + +------------------------------------------------------------------- +Fri Sep 11 18:56:49 UTC 2015 - astieger@suse.com + +- GNU gettext 0.19.6: + * Support AppData file format + +------------------------------------------------------------------- +Thu Jul 16 10:56:05 UTC 2015 - astieger@suse.com + +- GNU gettext 0.19.5.1: + * fix build on old platforms where stpcpy and stpncpy is missing + +------------------------------------------------------------------- +Fri Jul 10 14:34:22 UTC 2015 - astieger@suse.com + +- GNU gettext 0.19.5: + * drop gettext-check-allocated-size-for-static-segment.patch, + is upstream + +------------------------------------------------------------------- +Tue Mar 10 07:10:56 UTC 2015 - mlin@suse.com + +- Add gettext-check-allocated-size-for-static-segment.patch from upstream + * Check if the embedded segment size is valid, before adding it to + the string length. Please see + http://lists.gnu.org/archive/html/bug-gettext/2015-03/msg00005.html + +------------------------------------------------------------------- +Tue Jan 27 20:24:49 UTC 2015 - andreas.stieger@gmx.de + +- GNU gettext 0.19.4: + * The --keyword option of xgettext now accepts same argument + number for both singular and plural forms. + * Programming languages support: + - C#: xgettext now properly handles Unicode characters encoded + with surrogate pairs. + - C/C++: xgettext now recognizes ISO/IEC 9899:2011 string + literals prefixed by R, u8, u8R, u, uR, U, UR, L, or LR. + - Shell: xgettext now properly recognizes Bash ANSI-C quoting + ($'...'). + * Bug fixes: + - Fix integer overflow when reading certain MO files with + msgunfmt. + - Avoid invalid memory access in various cases. In particular, + when the same argument number is specified for singular/ + plural arguments, and when checking Lisp and Scheme format + strings. + +------------------------------------------------------------------- +Fri Oct 17 21:56:18 UTC 2014 - andreas.stieger@gmx.de + +- GNU gettext 0.19.3: + * Fix xgettext mishandling of octal character escapes in C. + * Fix autopoint infinite recursion with certain configure.ac. + * The po/Makevars file has a new field MSGINIT_OPTIONS, that can + be used to adjust msginit's operation. This is particularly + useful for controlling line wrapping behavior together with + MSGMERGE_OPTIONS and XGETTEXT_OPTIONS. + +------------------------------------------------------------------- +Tue Jul 15 11:49:59 CEST 2014 - pth@suse.de + +- Update to 0.19.2: + * Fix xgettext crash in parsing empty string literals in C and Vala. + * Autoconf macro trace in autopoint now works again with Autoconf 2.68 + or earlier. It was a regression in 0.19. + +------------------------------------------------------------------- +Tue Jun 10 22:00:50 UTC 2014 - andreas.stieger@gmx.de + +- GNU gettext 0.19.1: + * Desktop Entry: msgfmt now always reads the po/LINGUAS file + * Vala: Bug fix in xgettext handling of "//" in string literals + * po/Makevars.template now contains the newly added variables + * msgfmt now treats errors in the PO file header as non-fatal + In future Gettext versions, msgfmt will treat header errors as + fatal and terminate the command execution. +- switch to xz tarball + +------------------------------------------------------------------- +Tue Jun 3 19:20:25 UTC 2014 - andreas.stieger@gmx.de + +- GNU gettext 0.19: + - Programming languages support: + * Desktop Entry: + xgettext and msgfmt now support .desktop files, used by + desktop applications, as input and output. + * GSettings: + xgettext now supports GSettings schema file format used by + GNOME applications. + * JavaScript: + xgettext now recognizes E4X (ECMA-357) constructs. + * PHP: + Single and double quotes around heredoc markers are now + recognized. + * Python: + The acceptable format specifiers in the braced-syntax format + strings is now limited to the Standard Format Specifiers, to + reasonably avoid false-positives. + * Scheme: + The gettext shorthand form _"abc", used by GIMP script-fu, is + now recognized by xgettext. + * C and Vala: + xgettext now recognizes C99-style Unicode character escapes. + - The --add-location option of msgattrib, msgcat, msgcomm, + msgconv, msgen, msgfilter, msggrep, msgmerge, msguniq, and + xgettext commands now takes an optional argument 'never', + 'full', or 'file', to control the format of "#: ..." comments. + - msgfmt now has --source option to keep generated .java file + when running in Java mode. + - msgattrib now has --empty option that sets msgstr to empty when + clearing fuzzy flag. + * msgexec and msgfilter pass the plural information to subprocess + through the environment variable MSG{EXEC,FILTER}_MSGID_PLURAL + and MSG{EXEC,FILTER}_PLURAL_FORM. + * New built-in filters 'quot' and 'boldquot' have been added to + msgfilter. These filters convert Latin quotation marks ('...', + "...") into Unicode quotation marks (for example, U+2018) if + possible, similar to the sed commands used in po/Rules-quot and + po/Rules-boldquot. + * The po/Makevars file has a couple of new options + PO_DEPENDS_ON_POT and DIST_DEPENDS_ON_UPDATE_PO, that can be + used to adjust the behavior of updating PO files on demand. + * xgettext now strips prefixed string before the comment tag. + This is useful to support C-style comment like this: + /* + * TRANSLATORS: first line + * second line + */ + * In this example, the extracted comment does not contain "* " at + the beginning of each line. + * libgettextpo library: + - Memory leak fixes in the PO file parser. + * Documentation: + - A complete example showing the use of GNU gettext in a + GNOME 3 application has been added + +------------------------------------------------------------------- +Sun Jan 12 21:56:01 UTC 2014 - andreas.stieger@gmx.de + +- GNU gettext 0.18.3.2: + * Add missing extern-inline.m4 into archive. +- verify source signature + +------------------------------------------------------------------- +Mon Aug 12 10:45:36 UTC 2013 - christoph.miebach@web.de + +- Version 0.18.3 - July 2013 + + * Runtime behaviour: + On Mac OS X systems, the setlocale() function now properly + invalidates loaded message catalogs when a locale has been set. + + * Programming languages support: + + - C++: + The gnu::autosprintf class now provides an assignment + operator. + + - Glade: + xgettext now supports GtkBuider file format used by Glade 3. + xgettext now also extracts contexts (msgctxt) from Glade 2 + and GtkBuider files. + + - JavaScript: + xgettext now partially supports JavaScript. Since the + current JavaScript specification (ECMA-262) does not define + the standard set of formatting methods nor translation + functions, the implementation supports only a limited + set of formatting methods and translation functions commonly + used in Gjs and other popular JavaScript implemenations and + libraries. + + - Lua: + xgettext now supports Lua, using Ľubomír Remák's lua-gettext. + + - Python: + xgettext and msgfmt's format string checking now recognize + Python format string in braced syntax (PEP 3101). xgettext + now also supports explicit string concatenation with '+' and + handles platform dependent line terminators (LF/CR/CRLF) + transparently. + + - Tcl: + Bug fix in xgettext Unicode escape handling. + + - Vala: + xgettext now supports Vala. + + * msgattrib now has --previous option to keep previous msgid when + making messages fuzzy, similar to msgmerge --previous. + + * msgfmt now checks PO file headers more strictly with less + false-positives. + + * 'gettextize' now checks macro directories specified with + AC_CONFIG_MACRO_DIRS in configure.ac. + + * Portability: + - msginit now does not require GNU sed. + - The Makefile rule for generating en@quot and en@boldquot now + uses @SED@ variable instead of hard-coded 'sed' command to + allow users to supply GNU sed. + + * Future backward-incompatibilities: + - In future Gettext versions, the files installed by + 'gettextize' will require Automake 1.10 or later. This will + improve the compatibility of user projects with newer + Automake versions. +- Remove upstreamed patches: + gettext-configure.patch + +------------------------------------------------------------------- +Sat Jun 15 11:52:06 UTC 2013 - schwab@linux-m68k.org + +- Add glib2-devel libcroco-devel libxml2-devel to build requires to avoid + using the included copies. +- gettext-configure.patch: Fix syntax in libxml check to avoid spurious + failure + +------------------------------------------------------------------- +Sat Jun 8 08:39:07 UTC 2013 - christoph.miebach@web.de + +- Update to version 0.18.2.1: Version 0.18.2 - December 2012 + + xgettext now understands the block comment syntax of Guile 2.0. + + libgettextpo library: + * The initial msgstr of a new message is now "", not NULL. + * Bug fixes in the functions po_message_is_range, + po_file_check_all, po_message_check_all. + + Installation options: + The configure options --with-xz and --with-bzip2 can be used to + specify alternate compression methods for the archive used by + the 'autopoint' program. These options, together with + --with-git, allow to trade dependencies against installed + package size. --with-xz has the highest compression rate, + followed by --with-git, followed by --with-bzip2. + + Autoconf macros: + * The autoconf macros installed by 'gettextize' now work with + the forthcoming Automake 1.14 and require Autoconf version + 2.60 or newer. + + Portability: + * Building on MacOS X 10.7, Cygwin 1.7.10, and newer 64-bit + mingw is now supported. + +- Remove obsolete patches: + + getext-stdio.in.patch + + gettext-codecleanup.patch + +------------------------------------------------------------------- +Wed Mar 27 07:51:16 UTC 2013 - mmeister@suse.com + +- Added url as source. + Please see http://en.opensuse.org/SourceUrls + +------------------------------------------------------------------- +Mon Sep 24 17:21:00 CEST 2012 - pth@suse.de + +- remove silent_rules from AM_INIT_AUTOMAKE to make autoreconf + succeed on older distributions. +- Rename po-mode.diff to gettext-po-mode.diff + +------------------------------------------------------------------- +Sun Jul 22 18:41:35 UTC 2012 - aj@suse.de + +- Fix build with missing gets declaration (glibc 2.16) + +------------------------------------------------------------------- +Tue Dec 21 13:43:49 CET 2010 - pth@suse.de + +- Update to 0.18.1. Changes since 0.17: + Version 0.18.1 - June 2010 + + * msggrep: A '$' anchor in a regular expression now also matches + the end of the string, even if it does not end in a newline. + + * Dependencies: + The libraries and programs are now linked with libunistring if + this library is already installed. + + * Installation options: + The configure option --with-cvs is deprecated. The 'autopoint' + program will now use the 'git' program by default to compress its + archive. If the configure option --without-git is specified, + 'autopoint' will not rely on 'git', but will instead rely on a + locally installed 3 MB large archive. + + Version 0.18 - May 2010 + + * PO file format: + There is a new field 'Language' in the header entry. It denotes + the language code (plus optional country code) for the PO file. + This field can be used by automated tools, such as spell + checkers. It is expected to be more reliable than looking at the + file name or at the 'Language-Team' field in the header entry. + + msgmerge, msgcat, msgen have a new option --lang that allows to + specify this field. Additionally, msgmerge fills in this new + field by looking at the 'Language-Team' field (if the --lang + option is not given). + + * xgettext and PO file format: + + For messages with plural forms, programmers can inform the + translators about the range of possible values of the numeric + argument, like this: + /* xgettext: range: 0..15 */ + This information 'range: 0..15' is stored in the PO file as a + flag attached to the message. Translators can produce better + translations when they know that the numeric argument is small. + + * Colorized PO files: + msgattrib, msgcomm, msgconv, msgen, msgfilter, msggrep, msginit, + msgmerge, msgunfmt, msguniq, xgettext now have options --color + and --style, like msgcat has since version 0.17. + + * msgmerge is up to 10 times faster when the PO and POT files are + large. This speedup was contributed by Ralf Wildenhues. + + * msgcmp has a new option -N/--no-fuzzy-matching, like msgmerge has + since version 0.12. + + * msgfilter now sets environment variables during the invocation of + the filter, indicating the msgid and location of the messge being + processed. + + * xgettext now can extract plural forms from Qt 4 programs. The + recommended xgettext command-line options for this case are: + --qt --keyword=tr:1,1t --keyword=tr:1,2c,2t --keyword=tr:1,1,2c,3t + + * xgettext --language=GCC-source now recognizes also the format + strings used in the Fortran front-end of the GCC compiler, and + marks them as 'gfc-internal-format'. + + * autopoint can now be used to update several PO directories all + together. + + * PO mode changes: + - PO files with plural entries are now correctly handled. + - Editing a message with previous msgid (in comments) removes these + comments. Contributed by Noritada Kobayashi. + + * The po/Makevars file has a new field MSGMERGE_OPTIONS, that can + be used to adjust msgmerge's operation. + + * The use of the macro AM_GNU_GETTEXT without 'external' argument + and the --intl option of the gettextize program are deprecated + and will be removed in the next release. Instead of including + the intl sources in your package, we suggest making the libintl + library an (optional) prerequisite of your package. + + * Updated the meaning of 'gcc-internal-format' to match GCC 4.3. + + * Installation options: + The configure options --without-cvs and --with-git can be used to + specify whether 'autopoint' will use the 'cvs' program, or the + 'git' program, or none at all. These options allow to trade + dependencies against installed package size: If --without-cvs is + specified and --with-git is not specified, 'autopoint' will not + rely on 'cvs' or 'git', but will instead rely on a locally + installed a 3 MB large archive. + + * Portability: The msgfilter program now also works on native Woe32 + - platforms. Compiled C# message catalogs now also work with + - 'mono' versions from 2009 + or newer. + +------------------------------------------------------------------- +Fri Mar 5 09:34:18 UTC 2010 - puzel@novell.com + +- remove gettext-tools/gnulib-m4/openmp.m4: fix build with new + autoconf + +------------------------------------------------------------------- +Mon Jul 27 12:52:06 CEST 2009 - rguenther@suse.de + +- Remove rather than %exclude not packaged files. + +------------------------------------------------------------------- +Tue Oct 14 13:14:11 CEST 2008 - kukuk@suse.de + +- Never install files in %check section +- Disable autoconf/libtool tests + +------------------------------------------------------------------- +Mon Oct 13 16:03:16 CEST 2008 - kukuk@suse.de + +- Fix autoreconf call + +------------------------------------------------------------------- +Sun May 18 10:35:50 CEST 2008 - pth@suse.de + +- Fix segmentation fault in msgmerge (bnc#391372). + +------------------------------------------------------------------- +Tue Dec 4 14:43:46 CET 2007 - pth@suse.de + +- Add patch from upstreams to add the missing mode for the open call. + +------------------------------------------------------------------- +Fri Nov 23 14:48:47 CET 2007 - pth@suse.de + +- Remove the patch for disabling a test. + +------------------------------------------------------------------- +Fri Nov 16 14:00:51 CET 2007 - pth@suse.de + +- Don't run the testsuite. + +------------------------------------------------------------------- +Thu Nov 15 12:53:24 CET 2007 - pth@suse.de + +- Rename packages: gettext -> gettext-runtime and + gettext-devel -> gettext->tools + Packaging closely follows uptream recommendation with a few + exceptions. + +- Initialize variable to shut up gcc. +- Disable msgmerge-compendium-5 for now. + +- Reorder installation flow because libgettextlib is needed for the + gettext-tools stuf. + +- Update to 0.17: + * License: + The gettext related programs and tools are now licensed under the GPL + version 3, instead of the GPL version 2. + + * PO file format: + The Project-Id-Version field in the header entry may now already be filled + in the POT file. In this case, the translators don't need to fill it in. + xgettext has new options --package-name and --package-version that allow + to specify the package name and version from a Makefile. + + * Colorized PO files: + The msgcat program has new options --color and --style that produce a + colorized PO file output, where keywords, strings, comments, or format + directives can be highlighted. See the documentation section + "Highlighting parts of PO files" for more info. + + * gettextize now has a --po-dir option that allows several PO directories to + be updated all together. + + * Programming languages support: + - Contexts (msgctxt) are now also supported for Java and C#. + - C# with Qt: The support for Qt format strings has been updated for Qt 4. + - C++ with KDE: + xgettext has a new option --kde that triggers the recognition and marking + of KDE 4 format strings. + + * Autoconf macros: + - A new macro AM_XGETTEXT_OPTION can be used as an alternative to modifying + po/Makevars. + + * libgettextpo library: + - New functions are available for querying the list of supported format + types. + - The functions po_message_comments and po_message_extracted_comments + return a multiline string where each line no longer starts with a + redundant space. The leading space in every comment line is now stripped + while reading the PO file. + - Conversely, when you pass a multiline string to the function + po_message_set_comments or po_message_set_extracted_comments, you normally + don't pass a space at the beginning of each line, because such spaces are + no longer trimmed during output. + + * Documentation: + - The "Users" chapter has been completely rewritten. + - New section "Highlighting parts of PO files". + - A complete example showing the use of GNU gettext in Java with the Qt/Jambi + GUI toolkit has been added. + +- Add tcl and perl-libintl-perl to BuildRequires (testsuite needs + them). +- Remove call to gl_AC_TYPE_LONG_LONG from libasprintf's + configure.ac + +------------------------------------------------------------------- +Wed Oct 31 16:58:36 CET 2007 - mrueckert@suse.de + +- renamed rpmlintrc to gettext-rpmlintrc and added it to the spec + as source 1 + +------------------------------------------------------------------- +Mon Sep 3 13:51:10 CEST 2007 - pth@suse.de + +- Incorporate upstream patch that correctly fixes the expat + dynloading code (http://savannah.gnu.org/bugs/?19585). + +------------------------------------------------------------------- +Fri Aug 10 19:40:37 CEST 2007 - bk@suse.de + +- Update to gettext 0.16.1, required by GnuPG 2.0.5 + +------------------------------------------------------------------- +Thu Aug 9 18:04:26 CEST 2007 - bk@suse.de + +- re-enable make check to identify possible toolchain bugs +- move java documentation from gettext to this package +- hardlink duplicate example files in documentation + +------------------------------------------------------------------- +Fri Apr 20 14:43:28 CEST 2007 - pth@suse.de + +- Make inclusion of expat.h independent of dynamic loading so + that XML_MAJOR_VERSION is actually defined (#264110). + +------------------------------------------------------------------- +Fri Mar 30 15:18:31 CEST 2007 - pth@suse.de + +- Fix use of uninitialized variables. +- Set CXXFLAGS to get C++ code compiled with RPM_BUILD_OPTS +- Sync .spec files + +------------------------------------------------------------------- +Tue Mar 20 17:54:57 CET 2007 - rguenther@suse.de + +- Remove unused expat BuildRequires. + +------------------------------------------------------------------- +Wed Jan 31 13:05:29 CET 2007 - pth@suse.de + +- Reference 0.16 .spec file +- fix spec file + +------------------------------------------------------------------- +Tue Jan 16 17:09:50 CET 2007 - pth@suse.de + +- Update to gettext 0.16 + +------------------------------------------------------------------- +Mon Sep 18 13:45:31 CEST 2006 - rguenther@suse.de + +- New package to host gettext java tools GetURL and DumpResource. + diff --git a/gettext-java.spec b/gettext-java.spec new file mode 100644 index 0000000..8a2087c --- /dev/null +++ b/gettext-java.spec @@ -0,0 +1,149 @@ +# +# spec file for package gettext-java +# +# Copyright (c) 2024 SUSE LLC +# +# 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 https://bugs.opensuse.org/ +# + + +Name: gettext-java +Version: 0.22.5 +Release: 0 +Summary: Java Support for Native Language Support (NLS) +License: LGPL-2.1-or-later +Group: Development/Tools/Other +URL: https://www.gnu.org/software/gettext/ +Source0: https://ftp.gnu.org/gnu/gettext/gettext-%{version}.tar.xz +Source1: https://ftp.gnu.org/gnu/gettext/gettext-%{version}.tar.xz.sig +Source2: suse-start-po-mode.el +Source3: gettext-linkdupes.sh +Source4: gettext-rpmlintrc +Source5: gettext-runtime.keyring +Patch0: gettext-0.12.1-sigfpe.patch +Patch1: gettext-0.19.3-fix-bashisms.patch +Patch2: gettext-0.12.1-gettextize.patch +Patch3: use-acinit-for-libtextstyle.patch +Patch4: gettext-po-mode.diff +Patch5: gettext-initialize_vars.patch +# PATCH-FIX-OPENSUSE gettext-dont-test-gnulib.patch -- coolo@suse.de +Patch6: gettext-dont-test-gnulib.patch +# PATCH-FIX-UPSTREAM boo#941629 -- pth@suse.com +Patch11: boo941629-unnessary-rpath-on-standard-path.patch +# PATCH-FIX-SUSE Bug boo#1106843 +Patch13: reproducible.patch +# PATCH-FEATURE bsc#1165138 +Patch14: 0001-msgcat-Add-feature-to-use-the-newest-po-file.patch +Patch15: 0002-msgcat-Merge-headers-when-use-first.patch +# PATCH-FIX-UPSTREAM https://lists.gnu.org/archive/html/bug-gettext/2024-07/msg00021.html +Patch16: reproducible-jar.patch +BuildRequires: automake >= 1.14 +BuildRequires: fdupes +BuildRequires: gcc-c++ +BuildRequires: glib2-devel +BuildRequires: java-devel >= 1.8 +BuildRequires: libtextstyle-devel +BuildRequires: libtool +BuildRequires: libxml2-devel +BuildRequires: perl-libintl-perl +BuildRequires: tcl + +%if 0%{?fedora_version} || 0%{?centos_version} <= 600 || 0%{?scilin_version} <= 600 || 0%{?rhel_version} <= 600 +%global debug_package %{nil} +%endif + +%description +This package includes the tools needed to support message catalogs in +Java applications. It also includes example code for java, java+awt and +java+swing. + +%prep +%autosetup -p1 -n gettext-%{version} + +%build +# expect a couple "You should update your `aclocal.m4' by running aclocal." +autoreconf -fiv +export CFLAGS="%{optflags} -pipe -W -Wall -Dgcc_is_lint -lm" +export CXXFLAGS="%{optflags} -pipe -W -Wall -Dgcc_is_lint" +%configure --enable-shared --enable-java +make GMSGFMT=../src/msgfmt %{?_smp_mflags} V=1 + +%install +export LC_CTYPE=ISO-8859-15 +make -C gettext-tools/gnulib-lib install DESTDIR=%{buildroot} +make -C gettext-tools/src install DESTDIR=%{buildroot} +make -C gettext-runtime/intl-java install DESTDIR=$PWD docdir=/docs +make -C gettext-tools/examples install DESTDIR=$PWD docdir=/allexamples +mkdir -p docs/examples +mv allexamples/examples/*java* docs/examples +cd docs/examples +fdupes -r *|while read dupe; do + if [ -z "$dupe" ]; then + startlink= + elif [ -z "$startlink" ]; then + startlink="$dupe" + else + ln -f "$startlink" "$dupe" + fi +done +cd .. +find -type f -size 0 -delete +mkdir -p %{buildroot}%{_libdir}/gettext +mv %{buildroot}/%{_datadir}/gettext/gettext.jar %{buildroot}%{_libdir}/gettext/ +# Create scripts that will launch the tools +for i in gnu.gettext.DumpResource gnu.gettext.GetURL; do +cat < %{buildroot}%{_libdir}/gettext/$i +#!/bin/sh +exec java -cp %{_libdir}/gettext/gettext.jar $i \${1+\$@} +EOF +chmod +x %{buildroot}%{_libdir}/gettext/$i +done +rm -rf %{buildroot}/%{_datadir}/* +mkdir -p %{buildroot}/%{_defaultdocdir}/%{name} +cp -av * %{buildroot}/%{_defaultdocdir}/%{name} +cd ../allexamples/examples +rm -rf *csharp* +fdupes -r * | while read dupe; do + if [ -z "$dupe" ]; then + startlink= + elif [ -z "$startlink" ]; then + startlink="$dupe" + else + echo "ln -f '$startlink' '$dupe'" >>../../gettext-linkdupes.sh + fi +done +diff %{SOURCE3} . || { + cat < + +- Use %autosetup + +------------------------------------------------------------------- +Thu Jun 6 14:23:04 UTC 2024 - Dominique Leuenberger + +- Fix envsubst-mini: + + Conflicts with the 'full' envsubst + + Require 'this-is-only-for-build-envs': ensure this does not + find it's way out of OBS onto installations. + +------------------------------------------------------------------- +Tue Jun 4 09:36:01 UTC 2024 - Dan Čermák + +- add optional -mini suffix to envsubst package + +------------------------------------------------------------------- +Tue May 21 10:25:25 UTC 2024 - Andreas Schwab + +- Require glibc-gconv-modules-extra by the gettext-tools packages + +------------------------------------------------------------------- +Tue May 14 10:06:12 UTC 2024 - Dan Čermák + +- Split out envsubst into a separate package + This allows us to pull in envsubst into containers without enlarging them + substantially. Additionally, this binary is standalone and useful outside of + the context of gettext. + +------------------------------------------------------------------- +Mon Apr 15 07:24:01 UTC 2024 - Dominique Leuenberger + +- Require this-is-only-for-build-envs by the -mini packages: ensure + those mini packages never find their way onto a system, even when + published. + +------------------------------------------------------------------- +Thu Apr 4 09:10:05 UTC 2024 - Dan Čermák + +- Add missing Requires: find to gettext-tools + +------------------------------------------------------------------- +Mon Feb 26 14:57:24 UTC 2024 - Dominique Leuenberger + +- Use %patch -P N instead of deprecated %patchN. + +------------------------------------------------------------------- +Sat Feb 24 18:50:38 UTC 2024 - Andreas Stieger + +- update to 0.22.5: + * xgettext's processing of Vala files with printf method + invocations has been corrected (regression in 0.22) + +------------------------------------------------------------------- +Tue Feb 13 09:03:34 UTC 2024 - Antonio Larrosa + +- Update to version 0.22.4 + * Bug fixes: + - AM_GNU_GETTEXT now recognizes a statically built libintl on + macOS and AIX. + - Build fixes on AIX +- Update to version 0.22.3 + * Portability: + - The libintl library now works on macOS 14. (Older versions + of libintl crash on macOS 14, due to an incompatible change + in macOS.) +- Update to version 0.22.2 + * No information available upstream +- Update to version 0.22.1 + * Bug fixes: + - The libintl shared library now exports again some symbols + that were accidentally missing. + - xgettext's processing of large Perl files may have led to + errors. + - "xgettext --join-existing" could encounter errors. + * Portability: + - Building on Android is now supported. +- Update to version 0.22.0 + * PO file format: + - When a #: line contains references to file names that contain + spaces, these file names are surrounded by Unicode characters + U+2068 and U+2069. This makes it possible to parse such + references correctly. + * Improvements for maintainers: + - The AM_GNU_GETTEXT macro now defines two variables + localedir_c and localedir_c_make, that can be used in C code + or in Makefiles, respectively, for representing the value of + the --localedir configure option. + * Programming languages support: + - C, C++: + + xgettext now supports gettext-like functions that take wide + strings (of type 'const wchar_t *', 'const char16_t *', or + 'const char32_t *') as arguments. + + xgettext now recognizes numbers with digit separators, as + defined by ISO C 23, as tokens. + + xgettext and msgfmt now recognize the format string + directive %b (for binary integer output, as defined by + ISO C 23) in format strings. + + xgettext and msgfmt now recognize the argument size + specifiers w8, w16, w32, w64, wf8, wf16, wf32, wf64 + (as defined by ISO C 23) in format strings. + + xgettext and msgfmt now recognize C++ format strings, as + defined by ISO C++ 20. They are marked as 'c++-format' in + POT and PO files. A new example has been added, + 'hello-c++20', that illustrates how to use these format + strings with gettext. + - Java: + + The build system and tools now also support Java versions + newer than Java 11. This is known to work up to Java 20, + at least. On the other hand, support for old versions of + Java (Java 1.5 and GCJ) has been dropped. + + Tcl: xgettext now supports the \x, \u, and \U escapes as + defined in Tcl 8.6. + * Portability: + - On systems with musl libc, the *gettext() functions in libc + now work with MO files generated from PO files with an + encoding other than UTF-8. To this effect, the msgfmt program + now converts the messages to UTF-8 encoding before storing + them in a MO file. You can prevent this byusing the msgfmt + --no-convert option. + - On systems with musl libc, the *gettext() functions in libc + now work with MO files generated from PO files with ISO C 99 + format string directive macros. To this effect, + the msgfmt program pre-expands strings with such macros. You + can prevent this by using the msgfmt --no-redundancy option. + * xgettext: + - The xgettext option '--sorted-output' is now deprecated. + - xgettext input files of type PO that are not all ASCII and + not UTF-8 encoded are now handled correctly. + * The base Unicode standard is now updated to 15.0.0. + * Emacs PO mode: + - Fix an incompatibility with Emacs version 29 or newer. +- Rebase patches: + * gettext-dont-test-gnulib.patch + * 0001-msgcat-Add-feature-to-use-the-newest-po-file.patch + * 0002-msgcat-Merge-headers-when-use-first.patch +- Drop patch which isn't required anymore since newer java + versions are already supported by upstream: + * gettext-0.21-jdk17.patch + +------------------------------------------------------------------- +Thu May 4 13:32:58 UTC 2023 - Frederic Crozat + +- Add _multibuild to define additional spec files as additional + flavors. + Eliminates the need for source package links in OBS. + +------------------------------------------------------------------- +Mon Oct 24 08:42:39 UTC 2022 - Dirk Müller + +- update keyring for the last version update + +------------------------------------------------------------------- +Sat Oct 15 10:38:53 UTC 2022 - Stephan Kulow + +- Update to Version 0.21.1 + + * Runtime behaviour: + - On AIX, locale names with a script or with an uppercase language are now + supported. + For example, sr_Cyrl_RS.UTF-8 is treated like sr_RS.UTF-8@cyrillic, and + EN_US.UTF-8 is treated like en_US.UTF-8. + + * The base Unicode standard is now updated to 14.0.0. + + * Portability: + - Building on macOS 11/arm64 is now supported. + - Building on Linux/powerpc64le with glibc ≥ 2.35 is now supported. + +------------------------------------------------------------------- +Fri Apr 8 15:05:10 UTC 2022 - Fridrich Strba + +- Added patch: + * gettext-0.21-jdk17.patch + + Build with java source and target levels 1.8 + + Allows building with JDK17 + + Fixes build in Factory + +------------------------------------------------------------------- +Mon Nov 29 20:32:32 UTC 2021 - Michael Gorse + +- Remove libcroco from BuildRequires: it is now bundled internally. + +------------------------------------------------------------------- +Fri Jan 22 21:45:16 UTC 2021 - Dirk Müller + +- fixup libtextstyle autofoo with adding + use-acinit-for-libtextstyle.patch + +------------------------------------------------------------------- +Fri Aug 7 07:46:39 UTC 2020 - Marketa Calabkova + +- Add multiple new features (bsc#1165138) +- Add patches: + * 0001-msgcat-Add-feature-to-use-the-newest-po-file.patch + * 0002-msgcat-Merge-headers-when-use-first.patch +- Reintroduce autoreconf call + +------------------------------------------------------------------- +Tue Jul 28 09:33:34 UTC 2020 - Christian Vögl + +- Update to 0.21: + * Programming languages support: + - Shell: + o xgettext now recognizes and ignores 'env' invocations and environment + variable assignments in front of commands. + - Java: + o xgettext now recognizes format strings in the Formatter syntax. They + are marked as 'java-printf-format' in POT and PO files. + o xgettext now recognizes text blocks as string literals. + - JavaScript: + xgettext parses JSX expressions more reliably. + - Ruby: + o xgettext now supports Ruby. + o 'msgfmt -c' now verifies the syntax of translations of Ruby format + strings. + * Improvements for translators: + - When msgfmt writes a MO file, it now does so in such a way that processes + that are currently using an older copy of the MO file will not crash. + + * Libtextstyle: + - Added support for emitting hyperlinks. + - New API for doing formatted output. + - The example programs support the NO_COLOR environment variable. + +------------------------------------------------------------------- +Tue Jul 7 12:09:30 UTC 2020 - Christian Vögl + +- Fix boo941629-unnessary-rpath-on-standard-path.patch (boo#941629) + +------------------------------------------------------------------- +Sun Apr 26 17:19:02 UTC 2020 - Andreas Stieger + +- update to 0.20.2: + * The programs 'gettext', 'ngettext', when invoked with option -e, + now expand '\\' and octal escape sequences, instead of + swallowing them + * xgettext now recognizes 'gettext' program invocations with the + '-e' option, such as gettext -e 'some\nstring\n' + * xgettext now assumes a Python source file is in UTF-8 encoding + by default, as stated in PEP 3120 + * The value of the 'Icon' property is no longer extracted into + the POT file by xgettext + +------------------------------------------------------------------- +Mon Jan 27 16:26:21 UTC 2020 - Andreas Schwab + +- Don't disable openmp with qemu, the emulation works now + +------------------------------------------------------------------- +Wed Jan 15 08:35:10 UTC 2020 - Dominique Leuenberger + +- Add libtextstyle0 to baselibs.conf: gettext-runtime-32bit has a + dependency on it, so we also need the library built as -32bit. + +------------------------------------------------------------------- +Sat Dec 21 17:23:21 UTC 2019 - Stefan Brüns + +- Add missing Requires: libtextstyle0 in corresponding devel package, + drop gettext-runtime Requires. +- Skip creation of shared libtextstyle in -mini flavor. +- Statically link to libtextstyle in -mini flavor, fixes + broken bootstrap of gettext. + +------------------------------------------------------------------- +Tue Dec 17 10:16:04 UTC 2019 - Christian Vögl + +- Add -lm to LDFLAGS (boo#1138806) + +------------------------------------------------------------------- +Tue Nov 26 16:04:25 UTC 2019 - Christian Vögl + +- Added xz to requires (boo#1141380) +- The previous update to 0.20.1 also fixes (boo#1113719) + +------------------------------------------------------------------- +Wed Oct 30 19:05:13 UTC 2019 - Stefan Brüns + +- Remove autoreconf call (not required), and drop the no longer + required libtool build dependency. + +------------------------------------------------------------------- +Fri Aug 23 16:56:05 UTC 2019 - Jan Engelhardt + +- Heed SLPP by placing libtextstyle.so.0 in the right package. +- Drop documentation from libtextstyle0, no one will read it there. +- Drop static library. +- Remove pointless ldconfig calls for libtextstyle-devel. +- Avoid pointless sh invocation of libtextstyle0 scriptlets. +- Avoid unnecessary |xargs rm. +- Remove redundant %clean section. + +------------------------------------------------------------------- +Thu Jun 20 09:56:30 UTC 2019 - Martin Liška + +- Disable LTO (boo#1138806). + +------------------------------------------------------------------- +Tue Jun 11 12:34:24 UTC 2019 - Christian Vögl + +- Updatetd to 0.20.1 + + msgfmt now eliminates the POT-Creation-Date header field from .mo files. + + update-po target in Makefile.in.in now uses msgmerge --previous. + + msgmerge now has an option --for-msgfmt, that produces a PO file meant + for use by msgfmt only. This option saves processing time, in particular + by omitting fuzzy matching that is not useful in this situation. + + The .pot file in a 'po' directory is now erased by "make maintainer-clean". + + It is now possible to override xgettext options from the po/Makefile.in.in + through options in XGETTEXT_OPTIONS (declared in po/Makevars). + + The --intl option of the gettextize program (deprecated since 2010) is + no longer available. Instead of including the intl sources in your package, + we suggest making the libintl library an optional prerequisite of your + package. This will simplify the build system of your package. + + Accordingly, the Autoconf macro AM_GNU_GETTEXT_INTL_SUBDIR is gone as well. + + C, C++: + * xgettext now supports strings in u8"..." syntax, as specified in C11 + and C++11. + * xgettext now supports 'p'/'P' exponent markers in number tokens, as + specified in C99 and C++17. + + C++: + * xgettext now supports single-quotes in number tokens, as specified in + C++14. + + Shell: + * The programs 'gettext', 'ngettext' now support a --context argument. + * gettext.sh contains new function eval_pgettext and eval_npgettext + for producing translations of messages with context. + + Perl: + * Native support for context functions (pgettext, dpgettext, dcpgettext, + npgettext, dnpgettext, dcnpgettext). + * better detection of question mark and slash as operators (as opposed + to regular expression delimiters). + + Scheme: + * xgettext now parses the syntax for specialized byte vectors (#u8(...), + #vu8(...), etc.) correctly. + + Pascal: + * xgettext can now extract strings from .rsj files, produced by the + Free Pascal compiler version 3.0.0 or newer. + + Vala: + * xgettext now parses escape sequences in strings more accurately. + + JavaScript: + * xgettext now parses template literals correctly. +- Rebased gettext-dont-test-gnulib.patch +- Removed gettext-needlessly_init_vars.patch (now in upstream) +- Rebased gettext-po-mode.diff +- Removed msgfmt-remove-pot-creation-date.patch (now in upstream) +- Removed msgfmt-reset-msg-length-after-remove.patch (now in upstream) +- Removed parts of reproducible.patch (now in upstream) + +------------------------------------------------------------------- +Sat May 25 11:53:33 UTC 2019 - Marcus Meissner + +- reproducible.patch: generate timestamp in .pot files from SOURCE_DATE_EPOCH + for reproducible builds + +------------------------------------------------------------------- +Mon Mar 4 11:28:14 UTC 2019 - Dominique Leuenberger + +- Only Require(Pre/Post) info in the non-mini variant: as the -mini + version is only used inside OBS, it is irrelevant if the info + files are present and registered or not. + +------------------------------------------------------------------- +Sat Oct 6 19:29:11 UTC 2018 - Bernhard Wiedemann + +- Add reproducible.patch to override build date (boo#1047218) + +------------------------------------------------------------------- +Wed Sep 19 08:24:19 UTC 2018 - Dr. Werner Fink + +- Add patch msgfmt-reset-msg-length-after-remove.patch + which does reset the length of message string after a line + has been removed (boo#1106843) + +------------------------------------------------------------------- +Thu May 24 10:45:49 CEST 2018 - kukuk@suse.de + +- Use %license instead of %doc [bsc#1082318] + +------------------------------------------------------------------- +Mon May 14 19:39:40 UTC 2018 - antoine.belvire@opensuse.org + +- Fix %install_info_delete usage: + * It has to be performed in %preun, not %postun. + * This fixes warning messages upon package removal. + +------------------------------------------------------------------- +Wed Oct 18 17:30:16 UTC 2017 - jayvdb@gmail.com + +- Ignore Recommends: on non-SUSE distributions +- Explicitly remove %{_infodir}/dir before creating package to + allow builds on RHEL and derived Linux distributions + +------------------------------------------------------------------- +Mon Jul 17 11:52:13 UTC 2017 - dimstar@opensuse.org + +- Ignore rpm-build's dependency on gettext-tools while building + the -mini variant: before gettext-runtime-mini is built, there is + no provider of this symbol in a bootstrap cycle. + +------------------------------------------------------------------- +Sat Jul 1 16:45:19 UTC 2017 - dimstar@opensuse.org + +- Explicitly call autoreconf, as we have patches touching the build + system. Implicit calling automake/autoconf works only as long as + the version on the system is the same as was used to bootstrap + originally. + +------------------------------------------------------------------- +Fri May 5 14:46:50 UTC 2017 - bwiedemann@suse.com + +- Add msgfmt-remove-pot-creation-date.patch + to enable reproducible builds of packages using gettext-runtime + such as dfc, e2fsprogs and acl + +------------------------------------------------------------------- +Sun Jun 19 15:42:15 UTC 2016 - astieger@suse.com + +- GNU gettext 0.19.8.1: + * Fix unintentional soname bump + +------------------------------------------------------------------- +Sat Jun 11 18:58:17 UTC 2016 - astieger@suse.com + +- GNU gettext 0.19.8: + * msgfmt now produces little-endian .mo files by default. + * xml: xgettext and msgfmt now look for .its files in directories + supplied through the GETTEXTDATADIRS or XDG_DATA_DIRS + environment variable. + * JavaScript: xgettext and msgfmt now recognize numbered + arguments in format strings. + +------------------------------------------------------------------- +Fri Apr 22 19:34:10 UTC 2016 - astieger@suse.com + +- drop gettext-runtime-grep-2.24.patch, no longer required for 2.25 + +------------------------------------------------------------------- +Sun Apr 17 17:56:27 UTC 2016 - astieger@suse.com + +- GNU gettext 0.19.7: + * can now load custom string extraction rules in XML + Internationalization Tag Set (ITS) standard + * the existing XML-based language scanners (Glade, GSettings, and + AppData) rewritten using ITS + * Add msgfmt --xml option to merge translations back to the + original XML document. + +------------------------------------------------------------------- +Tue Apr 12 11:27:37 UTC 2016 - dimstar@opensuse.org + +- Add gettext-runtime-grep-2.24.patch: Fix test suite with + grep 2.24 (https://savannah.gnu.org/bugs/index.php?47674). + +------------------------------------------------------------------- +Tue Dec 8 16:57:37 CET 2015 - sbrabec@suse.com + +- Recommend bison-lang by gettext-tools, as it is used by them. + +------------------------------------------------------------------- +Fri Sep 11 18:56:49 UTC 2015 - astieger@suse.com + +- GNU gettext 0.19.6: + * Support AppData file format + * New macro AM_GNU_GETTEXT_REQUIRE_VERSION + * po/Makefile.in.in can now insert the file $(DOMAIN).pot-header + to $(DOMAIN).pot, instead of the standard header comments. + * Fix mishandling of gettext version numbers for minor releases, in + po-mode.el and gettextize. + * Fix build with --enable-relocatable. +- remove no longer required gettext-0.19.5.1-gettextize.diff + +------------------------------------------------------------------- +Mon Aug 24 15:35:02 UTC 2015 - i@marguerite.su + +- add patch: boo941629-unnessary-rpath-on-standard-path.patch + * config.rpath from gettext-tools will set rpath for ELF binaries + not in /usr/lib, even if it's the standard path the linker + would search anyway. + +------------------------------------------------------------------- +Tue Jul 21 11:23:29 UTC 2015 - mlin@suse.com + +- Add gettext-0.19.5.1-gettextize.diff + * workaround gettextize in gettext 0.19.5.1, see + http://lists.gnu.org/archive/html/bug-gettext/2015-07/msg00027.html + +------------------------------------------------------------------- +Thu Jul 16 10:56:05 UTC 2015 - astieger@suse.com + +- GNU gettext 0.19.5.1: + * fix build on old platforms where stpcpy and stpncpy is missing + +------------------------------------------------------------------- +Fri Jul 10 14:34:22 UTC 2015 - astieger@suse.com + +- GNU gettext 0.19.5: + * xgettext: feature to perform syntax checks on msgid, via + --check option or "xgettext: " commentgs + * msgfilter, msgexec: new option --newline + * The base Unicode standard is now updated to 8.0.0. + * msginit is now capable of generating "Plural-Forms:" from + Unicode CLDR. Via GETTEXTCLDRDIR environment variable. + * Improved Programming languages support + * drop gettext-check-allocated-size-for-static-segment.patch, + is upstream + +------------------------------------------------------------------- +Tue Mar 10 07:06:26 UTC 2015 - mlin@suse.com + +- Add gettext-check-allocated-size-for-static-segment.patch from upstream + * Check if the embedded segment size is valid, before adding it to + the string length. Please see + http://lists.gnu.org/archive/html/bug-gettext/2015-03/msg00005.html + +------------------------------------------------------------------- +Tue Jan 27 20:24:49 UTC 2015 - andreas.stieger@gmx.de + +- GNU gettext 0.19.4: + * The --keyword option of xgettext now accepts same argument + number for both singular and plural forms. + * Programming languages support: + - C#: xgettext now properly handles Unicode characters encoded + with surrogate pairs. + - C/C++: xgettext now recognizes ISO/IEC 9899:2011 string + literals prefixed by R, u8, u8R, u, uR, U, UR, L, or LR. + - Shell: xgettext now properly recognizes Bash ANSI-C quoting + ($'...'). + * Bug fixes: + - Fix integer overflow when reading certain MO files with + msgunfmt. + - Avoid invalid memory access in various cases. In particular, + when the same argument number is specified for singular/ + plural arguments, and when checking Lisp and Scheme format + strings. + +------------------------------------------------------------------- +Sun Dec 28 15:03:00 UTC 2014 - Led + +- fix 'echo -e' in cvs.sh script that may be unsupported in some + POSIX-complete shells +- add patches: + * gettext-0.19.3-fix-bashisms.patch + +------------------------------------------------------------------- +Fri Oct 17 21:56:18 UTC 2014 - andreas.stieger@gmx.de + +- GNU gettext 0.19.3: + * Fix xgettext mishandling of octal character escapes in C. + * Fix autopoint infinite recursion with certain configure.ac. + * The po/Makevars file has a new field MSGINIT_OPTIONS, that can + be used to adjust msginit's operation. This is particularly + useful for controlling line wrapping behavior together with + MSGMERGE_OPTIONS and XGETTEXT_OPTIONS. + +------------------------------------------------------------------- +Tue Jul 15 11:49:59 CEST 2014 - pth@suse.de + +- Update to 0.19.2: + * Fix xgettext crash in parsing empty string literals in C and Vala. + * Autoconf macro trace in autopoint now works again with Autoconf 2.68 + or earlier. It was a regression in 0.19. + +------------------------------------------------------------------- +Tue Jun 10 22:00:50 UTC 2014 - andreas.stieger@gmx.de + +- GNU gettext 0.19.1: + * Desktop Entry: msgfmt now always reads the po/LINGUAS file + * Vala: Bug fix in xgettext handling of "//" in string literals + * po/Makevars.template now contains the newly added variables + * msgfmt now treats errors in the PO file header as non-fatal + In future Gettext versions, msgfmt will treat header errors as + fatal and terminate the command execution. +- switch to xz tarball + +------------------------------------------------------------------- +Tue Jun 3 19:20:25 UTC 2014 - andreas.stieger@gmx.de + +- GNU gettext 0.19: + - Programming languages support: + * Desktop Entry: + xgettext and msgfmt now support .desktop files, used by + desktop applications, as input and output. + * GSettings: + xgettext now supports GSettings schema file format used by + GNOME applications. + * JavaScript: + xgettext now recognizes E4X (ECMA-357) constructs. + * PHP: + Single and double quotes around heredoc markers are now + recognized. + * Python: + The acceptable format specifiers in the braced-syntax format + strings is now limited to the Standard Format Specifiers, to + reasonably avoid false-positives. + * Scheme: + The gettext shorthand form _"abc", used by GIMP script-fu, is + now recognized by xgettext. + * C and Vala: + xgettext now recognizes C99-style Unicode character escapes. + - The --add-location option of msgattrib, msgcat, msgcomm, + msgconv, msgen, msgfilter, msggrep, msgmerge, msguniq, and + xgettext commands now takes an optional argument 'never', + 'full', or 'file', to control the format of "#: ..." comments. + - msgfmt now has --source option to keep generated .java file + when running in Java mode. + - msgattrib now has --empty option that sets msgstr to empty when + clearing fuzzy flag. + * msgexec and msgfilter pass the plural information to subprocess + through the environment variable MSG{EXEC,FILTER}_MSGID_PLURAL + and MSG{EXEC,FILTER}_PLURAL_FORM. + * New built-in filters 'quot' and 'boldquot' have been added to + msgfilter. These filters convert Latin quotation marks ('...', + "...") into Unicode quotation marks (for example, U+2018) if + possible, similar to the sed commands used in po/Rules-quot and + po/Rules-boldquot. + * The po/Makevars file has a couple of new options + PO_DEPENDS_ON_POT and DIST_DEPENDS_ON_UPDATE_PO, that can be + used to adjust the behavior of updating PO files on demand. + * xgettext now strips prefixed string before the comment tag. + This is useful to support C-style comment like this: + /* + * TRANSLATORS: first line + * second line + */ + * In this example, the extracted comment does not contain "* " at + the beginning of each line. + * libgettextpo library: + - Memory leak fixes in the PO file parser. + * Documentation: + - A complete example showing the use of GNU gettext in a + GNOME 3 application has been added + +------------------------------------------------------------------- +Sun Jan 12 21:56:01 UTC 2014 - andreas.stieger@gmx.de + +- GNU gettext 0.18.3.2: + * Add missing extern-inline.m4 into archive. +- verify source signature + +------------------------------------------------------------------- +Tue Dec 24 08:59:10 UTC 2013 - coolo@suse.com + +- avoid testing gnulib copies - we're not interested in bugs in gnulib + as we don't use it + +------------------------------------------------------------------- +Sun Oct 20 11:01:11 UTC 2013 - jengelh@inai.de + +- Split extra documentation in /usr/share/doc into separate + subpackage +- Substitute %_prefix/share => %_datadir and + %_defaultdocdir/%name => %_docdir + +------------------------------------------------------------------- +Wed Oct 2 08:56:35 UTC 2013 - coolo@suse.com + +- Version 0.18.3.1 including a hotfix for autopoint + not copying intl library if asked to (fixes build failures in 13.1) + + https://savannah.gnu.org/bugs/?func=detailitem&item_id=39536 + +------------------------------------------------------------------- +Mon Aug 12 10:45:36 UTC 2013 - christoph.miebach@web.de + +- Version 0.18.3 - July 2013 + + * Runtime behaviour: + On Mac OS X systems, the setlocale() function now properly + invalidates loaded message catalogs when a locale has been set. + + * Programming languages support: + + - C++: + The gnu::autosprintf class now provides an assignment + operator. + + - Glade: + xgettext now supports GtkBuider file format used by Glade 3. + xgettext now also extracts contexts (msgctxt) from Glade 2 + and GtkBuider files. + + - JavaScript: + xgettext now partially supports JavaScript. Since the + current JavaScript specification (ECMA-262) does not define + the standard set of formatting methods nor translation + functions, the implementation supports only a limited + set of formatting methods and translation functions commonly + used in Gjs and other popular JavaScript implemenations and + libraries. + + - Lua: + xgettext now supports Lua, using Ľubomír Remák's lua-gettext. + + - Python: + xgettext and msgfmt's format string checking now recognize + Python format string in braced syntax (PEP 3101). xgettext + now also supports explicit string concatenation with '+' and + handles platform dependent line terminators (LF/CR/CRLF) + transparently. + + - Tcl: + Bug fix in xgettext Unicode escape handling. + + - Vala: + xgettext now supports Vala. + + * msgattrib now has --previous option to keep previous msgid when + making messages fuzzy, similar to msgmerge --previous. + + * msgfmt now checks PO file headers more strictly with less + false-positives. + + * 'gettextize' now checks macro directories specified with + AC_CONFIG_MACRO_DIRS in configure.ac. + + * Portability: + - msginit now does not require GNU sed. + - The Makefile rule for generating en@quot and en@boldquot now + uses @SED@ variable instead of hard-coded 'sed' command to + allow users to supply GNU sed. + + * Future backward-incompatibilities: + - In future Gettext versions, the files installed by + 'gettextize' will require Automake 1.10 or later. This will + improve the compatibility of user projects with newer + Automake versions. +- Remove upstreamed patches: + gettext-configure.patch + gettext-fix-tcl-u-escape-sequences.patch + +------------------------------------------------------------------- +Tue Jun 25 09:09:00 UTC 2013 - gber@opensuse.org + +- add gettext-fix-tcl-u-escape-sequences.patch in order to fix + the handling of Tcl \u escape sequences (bnc#826422) + +------------------------------------------------------------------- +Wed Jun 19 08:12:19 UTC 2013 - coolo@suse.com + +- move the provides of gettext-devel to gettext-tools-mini too + +------------------------------------------------------------------- +Tue Jun 18 19:59:21 UTC 2013 - coolo@suse.com + +- more conflicts between the minis + +------------------------------------------------------------------- +Tue Jun 18 11:10:59 UTC 2013 - coolo@suse.com + +- make gettext-runtime conflict with gettext-runtime-mini + +------------------------------------------------------------------- +Tue Jun 18 09:54:33 UTC 2013 - schwab@suse.de + +- Add gettext-runtime-mini.spec that reverts to using the included + library sources + +------------------------------------------------------------------- +Sat Jun 15 11:52:06 UTC 2013 - schwab@linux-m68k.org + +- Add glib2-devel libcroco-devel libxml2-devel to build requires to avoid + using the included copies. +- gettext-configure.patch: Fix syntax in libxml check to avoid spurious + failure + +------------------------------------------------------------------- +Sat Jun 8 08:39:07 UTC 2013 - christoph.miebach@web.de + +- Update to version 0.18.2.1: Version 0.18.2 - December 2012 + + xgettext now understands the block comment syntax of Guile 2.0. + + libgettextpo library: + * The initial msgstr of a new message is now "", not NULL. + * Bug fixes in the functions po_message_is_range, + po_file_check_all, po_message_check_all. + + Installation options: + The configure options --with-xz and --with-bzip2 can be used to + specify alternate compression methods for the archive used by + the 'autopoint' program. These options, together with + --with-git, allow to trade dependencies against installed + package size. --with-xz has the highest compression rate, + followed by --with-git, followed by --with-bzip2. + + Autoconf macros: + * The autoconf macros installed by 'gettextize' now work with + the forthcoming Automake 1.14 and require Autoconf version + 2.60 or newer. + + Portability: + * Building on MacOS X 10.7, Cygwin 1.7.10, and newer 64-bit + mingw is now supported. + +- Remove obsolete patches: + + getext-stdio.in.patch + + gettext-codecleanup.patch + +------------------------------------------------------------------- +Fri May 31 07:47:08 UTC 2013 - coolo@suse.com + +- do not call autoreconf, spares you all the ugly patches: + gettext-no_silent_rules.patch + gettext-0.15-docdir.diff + gettext-autotools.patch + +------------------------------------------------------------------- +Wed Mar 27 07:50:12 UTC 2013 - mmeister@suse.com + +- Added url as source. + Please see http://en.opensuse.org/SourceUrls + +------------------------------------------------------------------- +Mon Sep 24 17:21:00 CEST 2012 - pth@suse.de + +- remove silent_rules from AM_INIT_AUTOMAKE to make autoreconf + succeed on older distributions. +- Rename po-mode.diff to gettext-po-mode.diff + +------------------------------------------------------------------- +Thu Sep 13 14:31:56 UTC 2012 - coolo@suse.com + +- replace ; with and in spdx.org license + +------------------------------------------------------------------- +Sun Jul 22 18:41:39 UTC 2012 - aj@suse.de + +- Fix build with missing gets declaration (glibc 2.16) + +------------------------------------------------------------------- +Mon Jul 2 11:04:21 UTC 2012 - coolo@suse.com + +- do not use obsolete AM_PROG_MKDIR_P + +------------------------------------------------------------------- +Thu Jan 12 15:57:24 UTC 2012 - aj@suse.de + +- Disable tests test-readlink and test-areadlink since they + fail randomly. + +------------------------------------------------------------------- +Thu Jan 12 13:37:28 UTC 2012 - aj@suse.de + +- Remove cvs, not used anymore since 0.18.1 in our build. + +------------------------------------------------------------------- +Sun Oct 2 14:24:27 CEST 2011 - dmueller@suse.de + +- revert last change - it is not the testsuite that hangs + but everything. The better workaround is to disable openmp + +------------------------------------------------------------------- +Sat Oct 1 05:39:12 UTC 2011 - coolo@suse.com + +- add libtool as buildrequire to make the spec file more reliable + +------------------------------------------------------------------- +Sat Oct 1 02:00:30 UTC 2011 - crrodriguez@opensuse.org + +- Test suite hangs in qemu-arm due to bugs in the emulator + workaround this issue. + +------------------------------------------------------------------- +Thu Sep 29 13:27:17 CEST 2011 - dmueller@suse.de + +- fix build + +------------------------------------------------------------------- +Thu Sep 29 10:20:07 UTC 2011 - adrian@suse.de + +- disable openmp when qemu is used for building (like on arm) + +------------------------------------------------------------------- +Fri Jan 7 10:36:22 CET 2011 - meissner@suse.de + +- Also add gettext-tools to baselibs.conf, wine-devel now needs + libgettextpo. + +------------------------------------------------------------------- +Tue Dec 21 13:43:49 CET 2010 - pth@suse.de + +- Update to 0.18.1. Changes since 0.17: + Version 0.18.1 - June 2010 + + * msggrep: A '$' anchor in a regular expression now also matches + the end of the string, even if it does not end in a newline. + + * Dependencies: + The libraries and programs are now linked with libunistring if + this library is already installed. + + * Installation options: + The configure option --with-cvs is deprecated. The 'autopoint' + program will now use the 'git' program by default to compress its + archive. If the configure option --without-git is specified, + 'autopoint' will not rely on 'git', but will instead rely on a + locally installed 3 MB large archive. + + Version 0.18 - May 2010 + + * PO file format: + There is a new field 'Language' in the header entry. It denotes + the language code (plus optional country code) for the PO file. + This field can be used by automated tools, such as spell + checkers. It is expected to be more reliable than looking at the + file name or at the 'Language-Team' field in the header entry. + + msgmerge, msgcat, msgen have a new option --lang that allows to + specify this field. Additionally, msgmerge fills in this new + field by looking at the 'Language-Team' field (if the --lang + option is not given). + + * xgettext and PO file format: + + For messages with plural forms, programmers can inform the + translators about the range of possible values of the numeric + argument, like this: + /* xgettext: range: 0..15 */ + This information 'range: 0..15' is stored in the PO file as a + flag attached to the message. Translators can produce better + translations when they know that the numeric argument is small. + + * Colorized PO files: + msgattrib, msgcomm, msgconv, msgen, msgfilter, msggrep, msginit, + msgmerge, msgunfmt, msguniq, xgettext now have options --color + and --style, like msgcat has since version 0.17. + + * msgmerge is up to 10 times faster when the PO and POT files are + large. This speedup was contributed by Ralf Wildenhues. + + * msgcmp has a new option -N/--no-fuzzy-matching, like msgmerge has + since version 0.12. + + * msgfilter now sets environment variables during the invocation of + the filter, indicating the msgid and location of the messge being + processed. + + * xgettext now can extract plural forms from Qt 4 programs. The + recommended xgettext command-line options for this case are: + --qt --keyword=tr:1,1t --keyword=tr:1,2c,2t --keyword=tr:1,1,2c,3t + + * xgettext --language=GCC-source now recognizes also the format + strings used in the Fortran front-end of the GCC compiler, and + marks them as 'gfc-internal-format'. + + * autopoint can now be used to update several PO directories all + together. + + * PO mode changes: + - PO files with plural entries are now correctly handled. + - Editing a message with previous msgid (in comments) removes these + comments. Contributed by Noritada Kobayashi. + + * The po/Makevars file has a new field MSGMERGE_OPTIONS, that can + be used to adjust msgmerge's operation. + + * The use of the macro AM_GNU_GETTEXT without 'external' argument + and the --intl option of the gettextize program are deprecated + and will be removed in the next release. Instead of including + the intl sources in your package, we suggest making the libintl + library an (optional) prerequisite of your package. + + * Updated the meaning of 'gcc-internal-format' to match GCC 4.3. + + * Installation options: + The configure options --without-cvs and --with-git can be used to + specify whether 'autopoint' will use the 'cvs' program, or the + 'git' program, or none at all. These options allow to trade + dependencies against installed package size: If --without-cvs is + specified and --with-git is not specified, 'autopoint' will not + rely on 'cvs' or 'git', but will instead rely on a locally + installed a 3 MB large archive. + + * Portability: The msgfilter program now also works on native Woe32 + - platforms. Compiled C# message catalogs now also work with + - 'mono' versions from 2009 + or newer. + +------------------------------------------------------------------- +Mon Jun 28 06:38:35 UTC 2010 - jengelh@medozas.de + +- use %_smp_mflags + +------------------------------------------------------------------- +Fri Mar 5 09:34:18 UTC 2010 - puzel@novell.com + +- remove gettext-tools/gnulib-m4/openmp.m4: fix build with new + autoconf + +------------------------------------------------------------------- +Sun Dec 13 17:13:10 CET 2009 - jengelh@medozas.de + +- add baselibs.conf as a source + +------------------------------------------------------------------- +Tue Dec 8 10:39:08 CET 2009 - jengelh@medozas.de + +- enable parallel building + +------------------------------------------------------------------- +Thu Jul 23 16:23:44 CEST 2009 - ke@suse.de + +- Synch po-mode.el with version from gettext CVS; for details, see the + beginning of po-mode-cvs-2009-07-23.patch. + +------------------------------------------------------------------- +Sat Feb 7 18:32:57 CET 2009 - schwab@suse.de + +- Rebuild broken info file. + +------------------------------------------------------------------- +Tue Jan 13 12:34:56 CET 2009 - olh@suse.de + +- obsolete old -XXbit packages (bnc#437293) + +------------------------------------------------------------------- +Tue Oct 14 13:14:16 CEST 2008 - kukuk@suse.de + +- Never install files in %check section +- Disable autoconf/libtool tests + +------------------------------------------------------------------- +Mon Oct 13 16:03:21 CEST 2008 - kukuk@suse.de + +- Fix autoreconf call + +------------------------------------------------------------------- +Sun May 18 10:35:50 CEST 2008 - pth@suse.de + +- Fix segmentation fault in msgmerge (bnc#391372). +- Get rid of %run_ldconfig + +------------------------------------------------------------------- +Wed May 7 21:39:56 CEST 2008 - coolo@suse.de + +- provide gettext- too + +------------------------------------------------------------------- +Tue Apr 29 17:29:50 CEST 2008 - cthiel@suse.de + +- obsolete gettext- via baselibs.conf + +------------------------------------------------------------------- +Thu Apr 10 12:54:45 CEST 2008 - ro@suse.de + +- added baselibs.conf file to build xxbit packages + for multilib support + +------------------------------------------------------------------- +Tue Jan 22 12:21:18 CET 2008 - pth@suse.de + +- Define version before using it. +- Fix Provides and Obsoletes for gettext-tools + +------------------------------------------------------------------- +Tue Jan 15 13:11:18 CET 2008 - pth@suse.de + +- Update rpmlintrc. + +------------------------------------------------------------------- +Tue Dec 4 14:42:03 CET 2007 - pth@suse.de + +- Add patch from upstreams to add the missing mode for the open call. + +------------------------------------------------------------------- +Fri Nov 23 14:43:11 CET 2007 - pth@suse.de + +- Reenable msgmerge-compendium-5 now that gcc has been fixed. +- Change Provides/Obsoletes to match guidelines +- Add Comment as to when the rename happened. + +------------------------------------------------------------------- +Thu Nov 15 12:51:17 CET 2007 - pth@suse.de + +- Rename packages: gettext -> gettext-runtime and + gettext-devel -> gettext->tools + Packaging closely follows uptream recommendation with a few + exceptions. + +- Initialize variable to shut up gcc. +- Disable msgmerge-compendium-5 for now. + +- Update to 0.17: + * License: + The gettext related programs and tools are now licensed under the GPL + version 3, instead of the GPL version 2. + + * PO file format: + The Project-Id-Version field in the header entry may now already be filled + in the POT file. In this case, the translators don't need to fill it in. + xgettext has new options --package-name and --package-version that allow + to specify the package name and version from a Makefile. + + * Colorized PO files: + The msgcat program has new options --color and --style that produce a + colorized PO file output, where keywords, strings, comments, or format + directives can be highlighted. See the documentation section + "Highlighting parts of PO files" for more info. + + * gettextize now has a --po-dir option that allows several PO directories to + be updated all together. + + * Programming languages support: + - Contexts (msgctxt) are now also supported for Java and C#. + - C# with Qt: The support for Qt format strings has been updated for Qt 4. + - C++ with KDE: + xgettext has a new option --kde that triggers the recognition and marking + of KDE 4 format strings. + + * Autoconf macros: + - A new macro AM_XGETTEXT_OPTION can be used as an alternative to modifying + po/Makevars. + + * libgettextpo library: + - New functions are available for querying the list of supported format + types. + - The functions po_message_comments and po_message_extracted_comments + return a multiline string where each line no longer starts with a + redundant space. The leading space in every comment line is now stripped + while reading the PO file. + - Conversely, when you pass a multiline string to the function + po_message_set_comments or po_message_set_extracted_comments, you normally + don't pass a space at the beginning of each line, because such spaces are + no longer trimmed during output. + + * Documentation: + - The "Users" chapter has been completely rewritten. + - New section "Highlighting parts of PO files". + - A complete example showing the use of GNU gettext in Java with the Qt/Jambi + GUI toolkit has been added. + +- Add tcl and perl-libintl-perl to BuildRequires (testsuite needs + them). +- Remove call to gl_AC_TYPE_LONG_LONG from libasprintf's + configure.ac + +------------------------------------------------------------------- +Mon Nov 5 17:26:27 CET 2007 - rguenther@suse.de + +- Fix ordering of gettext.changes entries. + +------------------------------------------------------------------- +Wed Oct 31 16:58:36 CET 2007 - mrueckert@suse.de + +- renamed rpmlintrc to gettext-rpmlintrc and added it to the spec + as source 1 + +------------------------------------------------------------------- +Mon Sep 3 13:51:10 CEST 2007 - pth@suse.de + +- Incorporate upstream patch that correctly fixes the expat + dynloading code (http://savannah.gnu.org/bugs/?19585). + +------------------------------------------------------------------- +Wed Aug 15 21:14:29 CEST 2007 - coolo@suse.de + +- do not set the version to 0.16.1 + +------------------------------------------------------------------- +Fri Aug 10 19:40:37 CEST 2007 - bk@suse.de + +- Update to gettext 0.16.1, required by GnuPG 2.0.5 + +------------------------------------------------------------------- +Thu Aug 9 18:04:26 CEST 2007 - bk@suse.de + +- apply the fixes from gettext-0.16.1, noticeable changes: + * gettext.m4: changequote instead of pairs of brackets + * add a few function protoypes and update polish translations +- extract missing ycp comments (fix from upstream maintainer, #287150) +- re-enable make check to identify possible toolchain bugs +- move java and csharp documentation to gettext-{java,csharp} +- hardlink duplicate example files in documentation + +------------------------------------------------------------------- +Sat May 26 00:01:35 CEST 2007 - ro@suse.de + +- added rpmlintrc for gettext-devel (examples executable) + +------------------------------------------------------------------- +Fri Apr 20 14:43:28 CEST 2007 - pth@suse.de + +- Make inclusion of expat.h independent of dynamic loading so + that XML_MAJOR_VERSION is actually defined (#264110). + +------------------------------------------------------------------- +Fri Mar 30 15:18:31 CEST 2007 - pth@suse.de + +- Fix use of uninitialized variables. +- Set CXXFLAGS to get C++ code compiled with RPM_BUILD_OPTS +- sync .spec files + +------------------------------------------------------------------- +Thu Mar 29 11:25:05 CEST 2007 - rguenther@suse.de + +- Add site-lisp directories to package. + +------------------------------------------------------------------- +Tue Mar 20 17:54:36 CET 2007 - rguenther@suse.de + +- Remove unused expat BuildRequires. + +------------------------------------------------------------------- +Wed Mar 7 23:34:03 CET 2007 - rguenther@suse.de + +- Add cvs Requires to gettext-devel as autopoint requires it. + +------------------------------------------------------------------- +Tue Jan 16 17:09:35 CET 2007 - pth@suse.de + +- Update to gettext 0.16 + + * Interoperability with automake-1.10. + * msgmerge has a new option --previous that has the effect of saving the + previous msgid of message when making them fuzzy. + * msgcmp now ignores fuzzy and untranslated messages in the PO file. + * gettextize, when invoked without --intl option, now installs only the .m4 + files that are needed. + * gettextize no longer creates symbolic links by default; it makes file copies + instead. + + * Autoconf macros: + - The gettext autoconf macros now require autoconf 2.52 or newer. + - New autoconf macro AM_GNU_GETTEXT_INTL_SUBDIR + - A new autoconf macro AM_GNU_GETTEXT_NEED is added. + + * The libgettextpo library no longer exports symbols that could clash with + symbols of the application that uses it. + +------------------------------------------------------------------- +Mon Sep 18 13:45:05 CEST 2006 - rguenther@suse.de + +- Build java tools from a separate spec file gettext-java. +- Remove gcc-java and gcc-objc build dependencies. + +------------------------------------------------------------------- +Tue Sep 5 16:58:56 CEST 2006 - rguenther@suse.de + +- Remove build dependency on emacs. +- Remove install dependency on libstdc++-devel for gettext-devel. + +------------------------------------------------------------------- +Wed Jul 26 08:59:35 CEST 2006 - ke@suse.de + +- Version 0.15: + * Enhance PO file format. Messages constrained to a certain context + are possible. The syntax is: + msgctxt "context" + msgid "original" + msgstr "translation" + The xgettext program can be told through the --keyword flag which + function/macro argument has the role of a context. It also supports + the GNOME glib convention to specify the context and original string + in the same string literal: "context|original". + The (non-public) include file gettext.h defines macros pgettext, dpgettext + etc. that take a context argument. + For more information, see the node "Contexts" in the manual. + * msgfmt's format string checking is now stricter in the presence of plural + forms. + * Enhancements to msggrep, xgettext, msgmerge (much faster now!). + * New program recode-sr-latin, that converts Serbian text from + the Cyrillic script to the Latin script. + * Programming languages support: + - C++ with Boost: + - Python: xgettext now recognizes the source encoding from a + "coding:" comment among the first two lines. The default encoding + is now ASCII, no longer ISO-8859-1. + * libgettextpo library: Incompatible change with the error handler + type passed to functions. +- Remove strict aliasing patch which seems to be obsolete because of + code changes. +- Require expat, but still no-op? + +------------------------------------------------------------------- +Wed Jan 25 21:30:17 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Tue Jan 3 13:51:53 CET 2006 - sbrabec@suse.cz + +- Fixed info installation scriptlets (#141183). +- Use %doc, where appropriate. +- Moved autosprintf.info to devel subpackage. +- Move emacs-lisp files to main package. +- Fixed devel splitting and requirements. + +------------------------------------------------------------------- +Mon Sep 19 13:13:49 CEST 2005 - mmj@suse.de + +- Update to 0.14.5 +- Fix strict aliasing issues + +------------------------------------------------------------------- +Sat Apr 16 14:28:46 CEST 2005 - schwab@suse.de + +- Move libgettextsrc-*.so and libgettextlib-*.so to main package as needed + by msgfmt. + +------------------------------------------------------------------- +Thu Apr 14 11:28:06 CEST 2005 - kukuk@suse.de + +- Move msgfmt into main package for LSB support + +------------------------------------------------------------------- +Tue Apr 5 23:05:15 CEST 2005 - mmj@suse.de + +- Fix documentation packaging + +------------------------------------------------------------------- +Mon Apr 4 22:43:48 CEST 2005 - schwab@suse.de + +- Remove the stupid casts. + +------------------------------------------------------------------- +Mon Apr 4 19:39:41 CEST 2005 - mmj@suse.de + +- Introduce incredibly gross hack to make sure (int) casts are + changed to (long) +- Update to gettext-0.14.3 +- Move many files to the -devel package, trying to conform with + gettext authors recommendation of split runtime/tools [#66614] + +------------------------------------------------------------------- +Wed Feb 9 16:38:13 CET 2005 - mmj@suse.de + +- Revise the tmp file race patch: + - Make umask not so strict [#50437] + - Use mktemp in more places + +------------------------------------------------------------------- +Tue Jan 11 18:20:32 CET 2005 - schwab@suse.de + +- Fix placement of po-mode-line-entry in mode-line-format for CVS Emacs. + +------------------------------------------------------------------- +Thu Nov 25 11:01:34 CET 2004 - mmj@suse.de + +- add fixes for tmp file races [#47724] + +------------------------------------------------------------------- +Tue Oct 19 00:28:00 CEST 2004 - ro@suse.de + +- locale-rename: no -> nb + +------------------------------------------------------------------- +Tue Apr 20 19:28:30 CEST 2004 - mmj@suse.de + +- Add autoreconf -fi + +------------------------------------------------------------------- +Tue Mar 2 17:37:54 CET 2004 - mmj@suse.de + +- Update to 0.14.1 [#34491] including: + - C#: xgettext now also supports C#. + - Bugfixes + +------------------------------------------------------------------- +Sat Jan 10 10:30:31 CET 2004 - adrian@suse.de + +- add %run_ldconfig + +------------------------------------------------------------------- +Fri Jan 9 21:45:35 CET 2004 - schwab@suse.de + +- Fix makefiles. + +------------------------------------------------------------------- +Fri Dec 19 14:20:35 CET 2003 - pthomas@suse.de + +- Update to 0.13 + - New languages support: shell, Perl, PHP ObjectiveC, + the special format strings used in the gcc sources and + C++ with Qt. + - Complete examples for all supported programing languages + added to the documentation. + +------------------------------------------------------------------- +Tue Dec 9 10:09:00 CET 2003 - kukuk@suse.de + +- Don't build PDF docu +- Remove lots of obsolete packages from neededforbuild + +------------------------------------------------------------------- +Tue Jun 17 12:30:58 CEST 2003 - pthomas@suse.de + +- Update to 0.12.1 + +------------------------------------------------------------------- +Thu Apr 24 12:20:23 CEST 2003 - ro@suse.de + +- fix install_info --delete call and move from preun to postun + +------------------------------------------------------------------- +Thu Feb 6 18:32:39 CET 2003 - kukuk@suse.de + +- Use install-info macros + +------------------------------------------------------------------- +Thu Aug 8 13:56:08 CEST 2002 - pthomas@suse.de + +- Update to 0.11.5 + From NEWS: Bug fixes in the gettext.m4 autoconf macros. + +- Remove patches obsoleted by the update and adapt those + still needed. + +------------------------------------------------------------------- +Fri Jul 26 22:27:59 CEST 2002 - schwab@suse.de + +- Fix filelist. +- Install missing m4 macros. +- Remove interaction in gettextize. +- Fix unwanted expansion in AM_PO_SUBDIRS. + +------------------------------------------------------------------- +Fri Jul 26 13:44:32 CEST 2002 - pthomas@suse.de + +- Update to gettext 0.11.4 + + - The tools now know about the ISO C 99 format + string directive macros PRId64, PRIxMAX etc. + + - remove patches obsoleted by this new version + +------------------------------------------------------------------- +Wed Jul 24 11:57:21 CEST 2002 - ke@suse.de + +- Remove texinfo.tex from source files and make use of texinfo.tex + provided by the system. +- Install gettext.pdf under $RPM_BUILD_ROOT. + +------------------------------------------------------------------- +Tue Jul 23 11:33:14 CEST 2002 - schwab@suse.de + +- Update to gettext 0.11.3. +- Force checking for division by zero. + +------------------------------------------------------------------- +Tue Jul 9 16:34:37 CEST 2002 - schwab@suse.de + +- Fix autoload for po-mode. + +------------------------------------------------------------------- +Thu Jun 13 16:13:38 CEST 2002 - meissner@suse.de + +- mark msgfmt-6 as SKIP, division by 0 is not exactly well defined. + +------------------------------------------------------------------- +Tue May 21 14:47:28 CEST 2002 - ke@suse.de + +- suse-start-po-mode.el: Load po-compat if "po-find-file-coding-system" + doesn't come with stock Emacs. + +------------------------------------------------------------------- +Thu Apr 25 16:07:32 CEST 2002 - pthomas@suse.de + +- Update to 0.11.2. + From NEWS: + - Bug fixes in the gettext.m4 autoconf macros. + - New documentation section: Preparing Translatable Strings. + - xgettext now also supports Python, Tcl, Awk and Glade. + - msgfmt can create (and msgunfmt can dump) Tcl message catalogs. + - msggrep has a new option -C that allows to search for strings + in translator comments. +- Run gettext testsuite. + +------------------------------------------------------------------- +Wed Apr 3 15:59:28 CEST 2002 - schwab@suse.de + +- Move suse-start-po-mode.el here from po-utils. +- Remove ia64 workaround. + +------------------------------------------------------------------- +Thu Mar 28 18:14:53 CET 2002 - pthomas@suse.de + +- Use %{_libdir} + +------------------------------------------------------------------- +Mon Feb 18 15:10:16 CET 2002 - pthomas@suse.de + +- Update %files. + +------------------------------------------------------------------- +Mon Feb 4 13:25 CET 2002 - pthomas@suse.de + +- Update to 0.11 + This is a major update with lots of new features and new tools. +- Integrate a patch from Bruno Haible to make libtool regard + DESTDIR when installing. +- Don't use the included libintl but rather the one in libc. +- Build dynamically linked binaries. +- Added the current texinfo.tex as otherwise gettext.pdf won't build. + +------------------------------------------------------------------- +Fri Feb 1 00:26:13 CET 2002 - ro@suse.de + +- changed neededforbuild to + +------------------------------------------------------------------- +Wed Oct 31 13:37:55 CET 2001 - kukuk@suse.de + +- Include manual pages + +------------------------------------------------------------------- +Tue Oct 30 20:32:21 CET 2001 - kukuk@suse.de + +- Update to 0.10.40 + +------------------------------------------------------------------- +Mon Aug 27 18:10:09 CEST 2001 - ke@suse.de + +- Update German translation from UMontreal Translation Project. +- Make sure to compile and install 'po-mode'. + +------------------------------------------------------------------- +Fri May 11 09:59:44 CEST 2001 - pthomas@suse.de + +- Update to 0.10.37. + Remove manual.diff as most of the fixes have been incorporated. + +------------------------------------------------------------------- +Wed May 9 18:40:53 CEST 2001 - cstein@suse.de + +- repacked sources with bzip2 + +------------------------------------------------------------------- +Thu Apr 12 14:34:00 CEST 2001 - pthomas@suse.de + +- Don't list directories shared with other packages in + spec file. + +------------------------------------------------------------------- +Mon Apr 9 05:59:00 CEST 2001 - pthomas@suse.de + +- Update to 0.10.36 +- Drop msghack patch +- Improve gettext manual ( hopefully :) +- Now provides po-mode.el + +------------------------------------------------------------------- +Thu Mar 8 08:56:17 CET 2001 - ke@suse.de + +- Use more rpm macros. +- Build and install a printable manual (PDF). + +------------------------------------------------------------------- +Fri Mar 2 19:20:48 CET 2001 - schwab@suse.de + +- Compile with -O1 on ia64 to work around compiler bug. + +------------------------------------------------------------------- +Tue Sep 19 17:43:21 MEST 2000 - pthomas@suse.de + +- add patch from Bruno Haible. This allows statically linking + programs with libintl.a on glibc systems. + +------------------------------------------------------------------- +Tue Jun 20 14:05:05 MEST 2000 - pthomas@suse.de + +- xgettext.c: format YCP automatically set for .ycp extension +- gettext.spec: allow building on systems where gettext.m4 etc. + are installed. + +------------------------------------------------------------------- +Thu Jun 15 17:05:23 CEST 2000 - pthomas@suse.de + +- add patches from Paul Eggert needed for NLS in gcc +- add patch from Martin v. Loewis to allow searching + inside of #define + +------------------------------------------------------------------- +Fri May 5 10:16:17 CEST 2000 - kukuk@suse.de + +- Fix Bug 2812 +- Add DESTDIR to intl/Makefile.in and po/Makefile.in.in +- Use BuildRoot + +------------------------------------------------------------------- +Mon May 1 21:05:29 CEST 2000 - ke@suse.de + +- Add msghack from RH's package: gettext-0.10.35-hacks.patch + +------------------------------------------------------------------- +Wed Apr 26 17:29:43 CEST 2000 - kukuk@suse.de + +- Fix configure call (add %{_target_cpu} macro) + +------------------------------------------------------------------- +Thu Apr 6 10:51:38 EDT 2000 - bk@suse.de + +- replace config.{guess,sub} against config update macro for s390 + +------------------------------------------------------------------- +Thu Feb 3 17:35:26 CET 2000 - schwab@suse.de + +- Update config.{guess,sub} to latest version. + +------------------------------------------------------------------- +Fri Jan 28 16:55:57 CET 2000 - schwab@suse.de + +- Do not even try to install po-mode.el. + +------------------------------------------------------------------- +Tue Jan 25 18:43:18 CET 2000 - kukuk@suse.de + +- Fix permissions of locale dirs. +- Move /usr/info -> /usr/share/info. +- Remove po-mode, now in extra package. + +------------------------------------------------------------------- +Mon Dec 13 12:02:54 CET 1999 - schwab@suse.de + +- Remove libintl.a from file list, everything is in libc. + +------------------------------------------------------------------- +Tue Nov 30 10:56:10 CET 1999 - schwab@suse.de + +- Add format checking for YCP strings. +- Don't declare getline and getdelim. + +------------------------------------------------------------------- +Sat Nov 13 14:46:46 MET 1999 - kukuk@suse.de + +- Clean up spec file and old, obsolete patches + +------------------------------------------------------------------- +Fri Oct 15 11:51:03 CEST 1999 - aj@suse.de + +- Handle \v. + +------------------------------------------------------------------- +Tue Oct 12 10:32:52 MEST 1999 - kettner@suse.de + +- patched for use with YaST2 YCP scripts, new option + --language=YCP + +------------------------------------------------------------------- +Sat Oct 9 14:46:38 CEST 1999 - ro@suse.de + +- fixed to build on any arch + +------------------------------------------------------------------- +Mon Sep 13 17:23:57 CEST 1999 - bs@suse.de + +- ran old prepare_spec on spec file to switch to new prepare_spec. + +------------------------------------------------------------------- +Sun Aug 15 17:16:03 MEST 1999 - ke@suse.de + +- update po-mode.el. + +------------------------------------------------------------------- +Thu Mar 11 18:52:25 MET 1999 - kukuk@suse.de + +- don't link against libintl.a on glibc systems + +------------------------------------------------------------------- +Sun Feb 14 14:39:32 MET 1999 - ke@suse.de + +- update po-mode.el. + +------------------------------------------------------------------- +Thu Jan 7 17:51:27 MET 1999 - ro@suse.de + +- respect alpha in specfile + +------------------------------------------------------------------- +Thu Jan 7 17:49:02 MET 1999 - ro@suse.de + +- don't redeclare getline + +------------------------------------------------------------------- +Mon Dec 7 16:02:41 MET 1998 - florian@suse.de + +- update to gettext 0.10.35 + +------------------------------------------------------------------- +Mon Dec 7 14:00:49 MET 1998 - bs@suse.de + +- added locale.alias to file list for libc5 systems. + +------------------------------------------------------------------- +Thu Nov 26 15:31:55 MET 1998 - bs@suse.de + +- skipped /usr/share/locale/locale.alias from file list (is in localedb) + +------------------------------------------------------------------- +Fri Sep 11 13:49:40 MEST 1998 - ro@suse.de + +- switch detection of GLIBC to automake + +------------------------------------------------------------------- +Thu Aug 13 11:57:46 MEST 1998 - bs@suse.de + +- added export LC_CTYPE to build an install section in spec file. + +------------------------------------------------------------------- +Wed Aug 12 09:32:43 MEST 1998 - ke@suse.de + +- new po-mode.el from + http://www.iro.umontreal.ca/contrib/po/po-mode/po-mode.el +- and install po-mode.el. + +------------------------------------------------------------------- +Fri Jun 19 19:36:31 MEST 1998 - ro@suse.de + +- dirty hack should at least work now + +------------------------------------------------------------------- +Fri Jun 19 10:04:32 MEST 1998 - bs@suse.de + +- don't include libintl.h if glibc is used. + did it with a dirty hack. Will be done better in a while. + +------------------------------------------------------------------- +Mon Mar 9 19:31:18 MET 1998 - ro@suse.de + +- added some documentation + +------------------------------------------------------------------- +Thu Feb 5 10:28:07 MET 1998 - florian@suse.de + +- add missing m4 macro files in /usr/share/aclocal + +------------------------------------------------------------------- +Fri Oct 10 12:48:23 MEST 1997 - florian@suse.de + + +- update to version 0.10.32 + + +------------------------------------------------------------------- +Wed Jan 22 22:24:11 CET 1997 - florian@suse.de + + +- update to version 0.10.26 diff --git a/gettext-runtime-mini.spec b/gettext-runtime-mini.spec new file mode 100644 index 0000000..1d89b5b --- /dev/null +++ b/gettext-runtime-mini.spec @@ -0,0 +1,379 @@ +# +# spec file for package gettext-runtime-mini +# +# Copyright (c) 2024 SUSE LLC +# +# 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 https://bugs.opensuse.org/ +# + + +%define pacname gettext +%bcond_without mini + +Name: gettext-runtime-mini +Version: 0.22.5 +Release: 0 +BuildRequires: automake >= 1.14 +BuildRequires: gcc-c++ +BuildRequires: glibc-gconv-modules-extra +BuildRequires: libtool +# To get an updated linkdupes.sh (in case there are new dupes), temproarily enable: +#BuildRequires: fdupes +%if %{without mini} +BuildRequires: glib2-devel +BuildRequires: libxml2-devel +BuildRequires: perl-libintl-perl +BuildRequires: tcl +# bug437293 +%ifarch ppc64 +Obsoletes: gettext-64bit +%endif +# +#Rename done for openSUSE 11.0 +Provides: gettext = %{version} +Obsoletes: gettext < %{version} +Conflicts: gettext-runtime-mini +Conflicts: gettext-tools-mini +%else +# to allow a prjconf preference which to take per build +Provides: gettext-runtime = %{version} +# Ensure this never finds its way onto a real installation +Requires: this-is-only-for-build-envs +# rpm-build requires gettext-tools, but we will only just be building it +#!BuildIgnore: gettext-tools +%endif +Summary: Tools for Native Language Support (NLS) +License: GPL-3.0-or-later AND LGPL-2.0-or-later +Group: Development/Tools/Other +URL: https://www.gnu.org/software/gettext/ +Source0: https://ftp.gnu.org/gnu/gettext/gettext-%{version}.tar.xz +Source1: https://ftp.gnu.org/gnu/gettext/gettext-%{version}.tar.xz.sig +Source2: suse-start-po-mode.el +Source3: gettext-linkdupes.sh +Source4: baselibs.conf +Source5: gettext-rpmlintrc +Source6: gettext-runtime.keyring +Patch0: gettext-0.12.1-sigfpe.patch +Patch1: gettext-0.19.3-fix-bashisms.patch +Patch2: gettext-0.12.1-gettextize.patch +Patch3: use-acinit-for-libtextstyle.patch +Patch4: gettext-po-mode.diff +Patch5: gettext-initialize_vars.patch +# PATCH-FIX-OPENSUSE gettext-dont-test-gnulib.patch -- coolo@suse.de +Patch6: gettext-dont-test-gnulib.patch +# PATCH-FIX-UPSTREAM boo#941629 -- pth@suse.com +Patch11: boo941629-unnessary-rpath-on-standard-path.patch +# PATCH-FIX-SUSE Bug boo#1106843 +Patch13: reproducible.patch +# PATCH-FEATURE bsc#1165138 +Patch14: 0001-msgcat-Add-feature-to-use-the-newest-po-file.patch +Patch15: 0002-msgcat-Merge-headers-when-use-first.patch + +%description +This package contains the intl library as well as tools that ease the +creation and maintenance of message catalogs. It allows you to extract +strings from source code. The supplied Emacs mode (po-mode.el) helps +editing these catalogs (called PO files, for portable object) and +adding translations. A special compiler turns these PO files into +binary catalogs. + +%package -n gettext-tools%{?with_mini:-mini} +Summary: Tools for Native Language Support (NLS) +License: LGPL-2.1-or-later +Group: Development/Tools/Other +Requires: %{name} = %{version} +Requires: xz +# gettext.sh requires envsubst +Requires: envsubst%{?with_mini:-mini} = %{version} +# autopoint requires find +Requires: findutils +# For non-UTF encodings +Requires: glibc-gconv-modules-extra +%if %{without mini} +Requires(post): info +Requires(preun): info +%endif +Provides: gettext-devel = %{version} +%if %{without mini} +# bug437293 +%ifarch ppc64 +Obsoletes: gettext-devel-64bit +%endif +# +Obsoletes: gettext-devel < %{version} +Conflicts: gettext-runtime-mini +Conflicts: gettext-tools-mini +%else +# to allow a prjconf preference which to take per build +Provides: gettext-tools = %{version} +# Ensure this never finds its way onto a real installation +Requires: this-is-only-for-build-envs +%endif +# Several tools use bison-runtime text domain: +%if 0%{?suse_version} +Recommends: bison-lang +%endif + +%description -n gettext-tools%{?with_mini:-mini} +This package contains the `intl' library as well as tools that ease the +creation and maintenance of message catalogs. With it you can extract +strings from source code. The supplied Emacs mode (po-mode.el) will aid +in editing these catalogs (called PO files, for portable object) and +add translations. A special compiler will turn these PO files into +binary catalogs. + +%package tools-doc +Summary: HTML documentation and examples for gettext-runtime +License: GPL-3.0-or-later AND LGPL-2.0-or-later +Group: Documentation/HTML +BuildArch: noarch + +%description tools-doc +This subpackage contains the HTML version of the gettext documentation +as well as project examples. + +%package -n envsubst%{?with_mini:-mini} +Summary: Environment substitution helper binary +%if %{with mini} +Conflicts: envsubst +Requires: this-is-only-for-build-envs +%endif + +%description -n envsubst%{?with_mini:-mini} +This package contains the envsubst helper binary to replace values from the +environment. + +%if %{without mini} +%package -n libtextstyle0 +Summary: Provides textstyling for console output +License: LGPL-2.1-or-later +Group: Development/Tools/Other + +%description -n libtextstyle0 +GNU libtextstyle provides an easy way to add styling to programs that produce output to a console or terminal emulator window. +It does this in a way that allows the end user to customize the styling using the industry standard, namely Cascading Style Sheets (CSS). + +%package -n libtextstyle-devel +Summary: Devel package for libtextstyle +License: LGPL-2.1-or-later +Group: Development/Tools/Other +Requires: libtextstyle0 = %{version} + +%description -n libtextstyle-devel +This package provides headers and static libraries for libtextstyle +%endif + +%prep +%autosetup -p1 -n %{pacname}-%{version} + +%build +%define _lto_cflags %{nil} +# expect a couple "You should update your `aclocal.m4' by running aclocal." +autoreconf -fiv +export CFLAGS="%{optflags} -pipe -W -Wall -Dgcc_is_lint" +export CXXFLAGS="$CFLAGS -Dgcc_is_lint" +export LDFLAGS="-lm" +%configure --disable-static $OPTS +%if %{with mini} +# Link statically to libtextstyle from libgettextlib.so +export CFLAGS="${CFLAGS} -fPIC" +export CXXFLAGS="${CXXFLAGS} -fPIC" +(cd libtextstyle; %configure --enable-static --disable-shared ${OPTS}) +%endif +make %{?_smp_mflags} GMSGFMT=../src/msgfmt V=1 +# use texinfo.tex supplied by the system (texinfo) +# make -C gettext-tools/doc gettext.pdf + +%install +%define my_docdir %{_defaultdocdir}/%{name} +export LC_CTYPE=ISO-8859-15 +%make_install docdir=%{my_docdir} +cp -pr AUTHORS NEWS README* %{buildroot}/%{my_docdir} +mkdir -p %{buildroot}/usr/share/emacs/site-lisp +install -m 644 %SOURCE2 %{buildroot}/usr/share/emacs/site-lisp +install -m 644 gettext-tools/emacs/po-compat.el %{buildroot}/usr/share/emacs/site-lisp +install -m 644 gettext-tools/emacs/po-mode.el %{buildroot}/usr/share/emacs/site-lisp +install -m 644 gettext-tools/emacs/start-po.el %{buildroot}/usr/share/emacs/site-lisp +#make -C gettext-tools/doc docdir=%%{buildroot}/%%{my_docdir} install-pdf +if [ -e %{buildroot}/%{_libdir}/preloadable_libintl.so ];then + chmod 755 %{buildroot}/%{_libdir}/preloadable_libintl.so +fi +# fix rpmlint invalid-lc-messages-dir: +rm -rf %{buildroot}/%_datadir/locale/en@{bold,}quot +%{find_lang} gettext-tools +%{find_lang} gettext-runtime +#remove unwanted stuff +rm -f %{buildroot}/usr/share/doc/packages/gettext/README.{mingw,vms,woe32} +rm -f %_datadir/%name/gettext.jar +rm -f %{buildroot}/%_libdir/libtextstyle.la +%if %{with mini} + rm -f %{buildroot}/usr/include/textstyle.h + rm -rf %{buildroot}/usr/include/textstyle + rm -rf %{buildroot}/usr/share/doc/packages/gettext-runtime-mini/libtextstyle_*.html + rm -f %{buildroot}/%_libdir/libtextstyle.a + rm -f %{buildroot}/%{_infodir}/libtextstyle.info +%endif +#find %%{buildroot} -maxdepth 2 -name '*html' -delete +# hardlink the dupes in the documentation: +cd %{buildroot}/%{my_docdir}/examples +sh %{SOURCE3} +# moved to gettext-java and gettext-csharp: +rm -rf *csharp* *java* ../javadoc* ../csharpdoc* +rm -f %{buildroot}%{_defaultdocdir}/%name/README.woe32 +rm -f %{buildroot}%{_infodir}/dir +cd %{buildroot}/%{_mandir}/man3 +echo ".so man3/dngettext.3" > dcngettext.3 +echo ".so man3/dgettext.3" > dcgettext.3 + +%if %{without mini} +%check +# s390s fails this test, +# Starting test_recursive_lock ...test-lock: pthread_mutex_lock.c:66: __pthread_mutex_lock: Assertion `mutex->__data.__owner == 0' failed. + +# These fails randomly, remove them from Makefile +sed -i -e 's/test-areadlink\$(EXEEXT) //g' \ + -e 's/test-readlink\$(EXEEXT) //g' \ + gettext-tools/gnulib-tests/Makefile + +make check || { +%ifarch s390x + echo "got this during mbuild testing on s390x (on both times which make check ran):" + echo "Starting test_recursive_lock ...test-lock: pthread_mutex_lock.c:66: __pthread_mutex_lock: Assertion mutex->__data.__owner == 0 failed." + echo "s390x needs kernel/glibc/gcc fix, but let it continue bootstrap for now!" +%else + echo "make check failed, check it!" + exit 5 +%endif +} +%endif + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%post -n gettext-tools%{?with_mini:-mini} +%install_info --info-dir=%{_infodir} %{_infodir}/gettext.info.gz +%install_info --info-dir=%{_infodir} %{_infodir}/autosprintf.info.gz + +%preun -n gettext-tools%{?with_mini:-mini} +%install_info_delete --info-dir=%{_infodir} %{_infodir}/gettext.info.gz +%install_info_delete --info-dir=%{_infodir} %{_infodir}/autosprintf.info.gz + +%if %{without mini} +%post -n libtextstyle0 -p /sbin/ldconfig +%postun -n libtextstyle0 -p /sbin/ldconfig +%endif + +%files -f gettext-runtime.lang +%defattr(-,root,root) +%license COPYING +%dir %_datadir/gettext +%doc %dir %_docdir/%name/ +%doc %_docdir/%name/gettext.1.html +%doc %_docdir/%name/ngettext.1.html +%doc %_docdir/%name/*.3.html +%doc %_docdir/%name/AUTHORS +%doc %_docdir/%name/NEWS +%doc %_docdir/%name/README +%doc %_docdir/%name/FAQ.html +%_bindir/gettext +%_bindir/ngettext +%_bindir/gettext.sh +%_bindir/msgfmt +%_libdir/libgettextlib-*.so +%_libdir/libgettextsrc-*.so +%_libdir/libasprintf.so.* +%doc %_mandir/man1/gettext.1.gz +%doc %_mandir/man1/ngettext.1.gz +%doc %_mandir/man1/msgfmt.1.gz +%doc %_mandir/man3/* +%_datadir/gettext/ABOUT-NLS +%dir %_datadir/emacs +%dir %_datadir/emacs/site-lisp +%_datadir/emacs/site-lisp/po-compat.* +%_datadir/emacs/site-lisp/po-mode.* +%_datadir/emacs/site-lisp/start-po.* +%_datadir/emacs/site-lisp/suse-start-po-mode.el + +%files -n envsubst%{?with_mini:-mini} +%license COPYING +%_bindir/envsubst +%doc %_mandir/man1/envsubst.1.gz +%doc %_docdir/%name/envsubst.1.html + +%files -n gettext-tools%{?with_mini:-mini} -f gettext-tools.lang +%defattr(-,root,root) +%_bindir/msg[a-eg-u]* +%_bindir/msgfilter +%_bindir/xgettext +%_bindir/gettextize +%_bindir/autopoint +%_bindir/recode-sr-latin +%doc %_mandir/man1/msg[a-eg-u]*.1.gz +%doc %_mandir/man1/msgfilter.1.gz +%doc %_mandir/man1/xgettext.1.gz +%doc %_mandir/man1/gettextize.1.gz +%doc %_mandir/man1/autopoint.1.gz +%doc %_mandir/man1/recode-sr-latin.1.gz +%doc %_infodir/gettext.info* +%doc %_infodir/autosprintf.info* +%_includedir/gettext-po.h +%_includedir/autosprintf.h +%_libdir/libasprintf.*a +%_libdir/libasprintf.so +%_libdir/libgettextlib.* +%_libdir/libgettextsrc.* +%_libdir/libgettextpo* +%_libdir/preloadable_libintl.so +%_libdir/gettext +%_datadir/%pacname/config.rpath +%_datadir/%pacname/po +%_datadir/%pacname/projects +%_datadir/%pacname/gettext.h +%_datadir/%pacname/msgunfmt.tcl +%_datadir/%pacname/javaversion.class +%_datadir/%pacname/styles +%_datadir/%pacname/archive.dir.tar.xz +%_datadir/aclocal +%dir %{_datadir}/%{pacname}-%{version} +%{_datadir}/%{pacname}-%{version}/its + +%files tools-doc +%defattr(-,root,root) +%doc %dir %_docdir/%name/ +%doc %_docdir/%name/examples/ +%doc %_docdir/%name/auto*.html +%doc %_docdir/%name/gettext_*.html +%doc %_docdir/%name/gettextize*.html +%doc %_docdir/%name/msg*.html +%doc %_docdir/%name/tutorial*.html +%doc %_docdir/%name/xgettext*.html +%doc %_docdir/%name/recode-sr-latin.1.html + +%if %{without mini} +%files -n libtextstyle0 +%defattr(-,root,root) +%_libdir/libtextstyle.so.* + +%files -n libtextstyle-devel +%defattr(-,root,root) +%dir %_includedir/textstyle +%_includedir/textstyle.h +%_includedir/textstyle/stdbool.h +%_includedir/textstyle/version.h +%_includedir/textstyle/woe32dll.h +%_libdir/libtextstyle.so +%doc %_docdir/gettext-runtime%{?with_mini:-mini}/libtextstyle*.html +%doc %_infodir/libtextstyle.info.gz +%endif + +%changelog diff --git a/gettext-runtime.changes b/gettext-runtime.changes new file mode 100644 index 0000000..7a38e55 --- /dev/null +++ b/gettext-runtime.changes @@ -0,0 +1,1734 @@ +------------------------------------------------------------------- +Tue Jul 16 08:42:20 UTC 2024 - Bernhard Wiedemann + +- Use %autosetup + +------------------------------------------------------------------- +Thu Jun 6 14:23:04 UTC 2024 - Dominique Leuenberger + +- Fix envsubst-mini: + + Conflicts with the 'full' envsubst + + Require 'this-is-only-for-build-envs': ensure this does not + find it's way out of OBS onto installations. + +------------------------------------------------------------------- +Tue Jun 4 09:36:01 UTC 2024 - Dan Čermák + +- add optional -mini suffix to envsubst package + +------------------------------------------------------------------- +Tue May 21 10:25:25 UTC 2024 - Andreas Schwab + +- Require glibc-gconv-modules-extra by the gettext-tools packages + +------------------------------------------------------------------- +Tue May 14 10:06:12 UTC 2024 - Dan Čermák + +- Split out envsubst into a separate package + This allows us to pull in envsubst into containers without enlarging them + substantially. Additionally, this binary is standalone and useful outside of + the context of gettext. + +------------------------------------------------------------------- +Mon Apr 15 07:24:01 UTC 2024 - Dominique Leuenberger + +- Require this-is-only-for-build-envs by the -mini packages: ensure + those mini packages never find their way onto a system, even when + published. + +------------------------------------------------------------------- +Thu Apr 4 09:10:05 UTC 2024 - Dan Čermák + +- Add missing Requires: find to gettext-tools + +------------------------------------------------------------------- +Mon Feb 26 14:57:24 UTC 2024 - Dominique Leuenberger + +- Use %patch -P N instead of deprecated %patchN. + +------------------------------------------------------------------- +Sat Feb 24 18:50:38 UTC 2024 - Andreas Stieger + +- update to 0.22.5: + * xgettext's processing of Vala files with printf method + invocations has been corrected (regression in 0.22) + +------------------------------------------------------------------- +Tue Feb 13 09:03:34 UTC 2024 - Antonio Larrosa + +- Update to version 0.22.4 + * Bug fixes: + - AM_GNU_GETTEXT now recognizes a statically built libintl on + macOS and AIX. + - Build fixes on AIX +- Update to version 0.22.3 + * Portability: + - The libintl library now works on macOS 14. (Older versions + of libintl crash on macOS 14, due to an incompatible change + in macOS.) +- Update to version 0.22.2 + * No information available upstream +- Update to version 0.22.1 + * Bug fixes: + - The libintl shared library now exports again some symbols + that were accidentally missing. + - xgettext's processing of large Perl files may have led to + errors. + - "xgettext --join-existing" could encounter errors. + * Portability: + - Building on Android is now supported. +- Update to version 0.22.0 + * PO file format: + - When a #: line contains references to file names that contain + spaces, these file names are surrounded by Unicode characters + U+2068 and U+2069. This makes it possible to parse such + references correctly. + * Improvements for maintainers: + - The AM_GNU_GETTEXT macro now defines two variables + localedir_c and localedir_c_make, that can be used in C code + or in Makefiles, respectively, for representing the value of + the --localedir configure option. + * Programming languages support: + - C, C++: + + xgettext now supports gettext-like functions that take wide + strings (of type 'const wchar_t *', 'const char16_t *', or + 'const char32_t *') as arguments. + + xgettext now recognizes numbers with digit separators, as + defined by ISO C 23, as tokens. + + xgettext and msgfmt now recognize the format string + directive %b (for binary integer output, as defined by + ISO C 23) in format strings. + + xgettext and msgfmt now recognize the argument size + specifiers w8, w16, w32, w64, wf8, wf16, wf32, wf64 + (as defined by ISO C 23) in format strings. + + xgettext and msgfmt now recognize C++ format strings, as + defined by ISO C++ 20. They are marked as 'c++-format' in + POT and PO files. A new example has been added, + 'hello-c++20', that illustrates how to use these format + strings with gettext. + - Java: + + The build system and tools now also support Java versions + newer than Java 11. This is known to work up to Java 20, + at least. On the other hand, support for old versions of + Java (Java 1.5 and GCJ) has been dropped. + + Tcl: xgettext now supports the \x, \u, and \U escapes as + defined in Tcl 8.6. + * Portability: + - On systems with musl libc, the *gettext() functions in libc + now work with MO files generated from PO files with an + encoding other than UTF-8. To this effect, the msgfmt program + now converts the messages to UTF-8 encoding before storing + them in a MO file. You can prevent this byusing the msgfmt + --no-convert option. + - On systems with musl libc, the *gettext() functions in libc + now work with MO files generated from PO files with ISO C 99 + format string directive macros. To this effect, + the msgfmt program pre-expands strings with such macros. You + can prevent this by using the msgfmt --no-redundancy option. + * xgettext: + - The xgettext option '--sorted-output' is now deprecated. + - xgettext input files of type PO that are not all ASCII and + not UTF-8 encoded are now handled correctly. + * The base Unicode standard is now updated to 15.0.0. + * Emacs PO mode: + - Fix an incompatibility with Emacs version 29 or newer. +- Rebase patches: + * gettext-dont-test-gnulib.patch + * 0001-msgcat-Add-feature-to-use-the-newest-po-file.patch + * 0002-msgcat-Merge-headers-when-use-first.patch +- Drop patch which isn't required anymore since newer java + versions are already supported by upstream: + * gettext-0.21-jdk17.patch + +------------------------------------------------------------------- +Thu May 4 13:32:58 UTC 2023 - Frederic Crozat + +- Add _multibuild to define additional spec files as additional + flavors. + Eliminates the need for source package links in OBS. + +------------------------------------------------------------------- +Mon Oct 24 08:42:39 UTC 2022 - Dirk Müller + +- update keyring for the last version update + +------------------------------------------------------------------- +Sat Oct 15 10:38:53 UTC 2022 - Stephan Kulow + +- Update to Version 0.21.1 + + * Runtime behaviour: + - On AIX, locale names with a script or with an uppercase language are now + supported. + For example, sr_Cyrl_RS.UTF-8 is treated like sr_RS.UTF-8@cyrillic, and + EN_US.UTF-8 is treated like en_US.UTF-8. + + * The base Unicode standard is now updated to 14.0.0. + + * Portability: + - Building on macOS 11/arm64 is now supported. + - Building on Linux/powerpc64le with glibc ≥ 2.35 is now supported. + +------------------------------------------------------------------- +Fri Apr 8 15:05:10 UTC 2022 - Fridrich Strba + +- Added patch: + * gettext-0.21-jdk17.patch + + Build with java source and target levels 1.8 + + Allows building with JDK17 + + Fixes build in Factory + +------------------------------------------------------------------- +Mon Nov 29 20:32:32 UTC 2021 - Michael Gorse + +- Remove libcroco from BuildRequires: it is now bundled internally. + +------------------------------------------------------------------- +Fri Jan 22 21:45:16 UTC 2021 - Dirk Müller + +- fixup libtextstyle autofoo with adding + use-acinit-for-libtextstyle.patch + +------------------------------------------------------------------- +Fri Aug 7 07:46:39 UTC 2020 - Marketa Calabkova + +- Add multiple new features (bsc#1165138) +- Add patches: + * 0001-msgcat-Add-feature-to-use-the-newest-po-file.patch + * 0002-msgcat-Merge-headers-when-use-first.patch +- Reintroduce autoreconf call + +------------------------------------------------------------------- +Tue Jul 28 09:33:34 UTC 2020 - Christian Vögl + +- Update to 0.21: + * Programming languages support: + - Shell: + o xgettext now recognizes and ignores 'env' invocations and environment + variable assignments in front of commands. + - Java: + o xgettext now recognizes format strings in the Formatter syntax. They + are marked as 'java-printf-format' in POT and PO files. + o xgettext now recognizes text blocks as string literals. + - JavaScript: + xgettext parses JSX expressions more reliably. + - Ruby: + o xgettext now supports Ruby. + o 'msgfmt -c' now verifies the syntax of translations of Ruby format + strings. + * Improvements for translators: + - When msgfmt writes a MO file, it now does so in such a way that processes + that are currently using an older copy of the MO file will not crash. + + * Libtextstyle: + - Added support for emitting hyperlinks. + - New API for doing formatted output. + - The example programs support the NO_COLOR environment variable. + +------------------------------------------------------------------- +Tue Jul 7 12:09:30 UTC 2020 - Christian Vögl + +- Fix boo941629-unnessary-rpath-on-standard-path.patch (boo#941629) + +------------------------------------------------------------------- +Sun Apr 26 17:19:02 UTC 2020 - Andreas Stieger + +- update to 0.20.2: + * The programs 'gettext', 'ngettext', when invoked with option -e, + now expand '\\' and octal escape sequences, instead of + swallowing them + * xgettext now recognizes 'gettext' program invocations with the + '-e' option, such as gettext -e 'some\nstring\n' + * xgettext now assumes a Python source file is in UTF-8 encoding + by default, as stated in PEP 3120 + * The value of the 'Icon' property is no longer extracted into + the POT file by xgettext + +------------------------------------------------------------------- +Mon Jan 27 16:26:21 UTC 2020 - Andreas Schwab + +- Don't disable openmp with qemu, the emulation works now + +------------------------------------------------------------------- +Wed Jan 15 08:35:10 UTC 2020 - Dominique Leuenberger + +- Add libtextstyle0 to baselibs.conf: gettext-runtime-32bit has a + dependency on it, so we also need the library built as -32bit. + +------------------------------------------------------------------- +Sat Dec 21 17:23:21 UTC 2019 - Stefan Brüns + +- Add missing Requires: libtextstyle0 in corresponding devel package, + drop gettext-runtime Requires. +- Skip creation of shared libtextstyle in -mini flavor. +- Statically link to libtextstyle in -mini flavor, fixes + broken bootstrap of gettext. + +------------------------------------------------------------------- +Tue Dec 17 10:16:04 UTC 2019 - Christian Vögl + +- Add -lm to LDFLAGS (boo#1138806) + +------------------------------------------------------------------- +Tue Nov 26 16:04:25 UTC 2019 - Christian Vögl + +- Added xz to requires (boo#1141380) +- The previous update to 0.20.1 also fixes (boo#1113719) + +------------------------------------------------------------------- +Wed Oct 30 19:05:13 UTC 2019 - Stefan Brüns + +- Remove autoreconf call (not required), and drop the no longer + required libtool build dependency. + +------------------------------------------------------------------- +Fri Aug 23 16:56:05 UTC 2019 - Jan Engelhardt + +- Heed SLPP by placing libtextstyle.so.0 in the right package. +- Drop documentation from libtextstyle0, no one will read it there. +- Drop static library. +- Remove pointless ldconfig calls for libtextstyle-devel. +- Avoid pointless sh invocation of libtextstyle0 scriptlets. +- Avoid unnecessary |xargs rm. +- Remove redundant %clean section. + +------------------------------------------------------------------- +Thu Jun 20 09:56:30 UTC 2019 - Martin Liška + +- Disable LTO (boo#1138806). + +------------------------------------------------------------------- +Tue Jun 11 12:34:24 UTC 2019 - Christian Vögl + +- Updatetd to 0.20.1 + + msgfmt now eliminates the POT-Creation-Date header field from .mo files. + + update-po target in Makefile.in.in now uses msgmerge --previous. + + msgmerge now has an option --for-msgfmt, that produces a PO file meant + for use by msgfmt only. This option saves processing time, in particular + by omitting fuzzy matching that is not useful in this situation. + + The .pot file in a 'po' directory is now erased by "make maintainer-clean". + + It is now possible to override xgettext options from the po/Makefile.in.in + through options in XGETTEXT_OPTIONS (declared in po/Makevars). + + The --intl option of the gettextize program (deprecated since 2010) is + no longer available. Instead of including the intl sources in your package, + we suggest making the libintl library an optional prerequisite of your + package. This will simplify the build system of your package. + + Accordingly, the Autoconf macro AM_GNU_GETTEXT_INTL_SUBDIR is gone as well. + + C, C++: + * xgettext now supports strings in u8"..." syntax, as specified in C11 + and C++11. + * xgettext now supports 'p'/'P' exponent markers in number tokens, as + specified in C99 and C++17. + + C++: + * xgettext now supports single-quotes in number tokens, as specified in + C++14. + + Shell: + * The programs 'gettext', 'ngettext' now support a --context argument. + * gettext.sh contains new function eval_pgettext and eval_npgettext + for producing translations of messages with context. + + Perl: + * Native support for context functions (pgettext, dpgettext, dcpgettext, + npgettext, dnpgettext, dcnpgettext). + * better detection of question mark and slash as operators (as opposed + to regular expression delimiters). + + Scheme: + * xgettext now parses the syntax for specialized byte vectors (#u8(...), + #vu8(...), etc.) correctly. + + Pascal: + * xgettext can now extract strings from .rsj files, produced by the + Free Pascal compiler version 3.0.0 or newer. + + Vala: + * xgettext now parses escape sequences in strings more accurately. + + JavaScript: + * xgettext now parses template literals correctly. +- Rebased gettext-dont-test-gnulib.patch +- Removed gettext-needlessly_init_vars.patch (now in upstream) +- Rebased gettext-po-mode.diff +- Removed msgfmt-remove-pot-creation-date.patch (now in upstream) +- Removed msgfmt-reset-msg-length-after-remove.patch (now in upstream) +- Removed parts of reproducible.patch (now in upstream) + +------------------------------------------------------------------- +Sat May 25 11:53:33 UTC 2019 - Marcus Meissner + +- reproducible.patch: generate timestamp in .pot files from SOURCE_DATE_EPOCH + for reproducible builds + +------------------------------------------------------------------- +Mon Mar 4 11:28:14 UTC 2019 - Dominique Leuenberger + +- Only Require(Pre/Post) info in the non-mini variant: as the -mini + version is only used inside OBS, it is irrelevant if the info + files are present and registered or not. + +------------------------------------------------------------------- +Sat Oct 6 19:29:11 UTC 2018 - Bernhard Wiedemann + +- Add reproducible.patch to override build date (boo#1047218) + +------------------------------------------------------------------- +Wed Sep 19 08:24:19 UTC 2018 - Dr. Werner Fink + +- Add patch msgfmt-reset-msg-length-after-remove.patch + which does reset the length of message string after a line + has been removed (boo#1106843) + +------------------------------------------------------------------- +Thu May 24 10:45:49 CEST 2018 - kukuk@suse.de + +- Use %license instead of %doc [bsc#1082318] + +------------------------------------------------------------------- +Mon May 14 19:39:40 UTC 2018 - antoine.belvire@opensuse.org + +- Fix %install_info_delete usage: + * It has to be performed in %preun, not %postun. + * This fixes warning messages upon package removal. + +------------------------------------------------------------------- +Wed Oct 18 17:30:16 UTC 2017 - jayvdb@gmail.com + +- Ignore Recommends: on non-SUSE distributions +- Explicitly remove %{_infodir}/dir before creating package to + allow builds on RHEL and derived Linux distributions + +------------------------------------------------------------------- +Mon Jul 17 11:52:13 UTC 2017 - dimstar@opensuse.org + +- Ignore rpm-build's dependency on gettext-tools while building + the -mini variant: before gettext-runtime-mini is built, there is + no provider of this symbol in a bootstrap cycle. + +------------------------------------------------------------------- +Sat Jul 1 16:45:19 UTC 2017 - dimstar@opensuse.org + +- Explicitly call autoreconf, as we have patches touching the build + system. Implicit calling automake/autoconf works only as long as + the version on the system is the same as was used to bootstrap + originally. + +------------------------------------------------------------------- +Fri May 5 14:46:50 UTC 2017 - bwiedemann@suse.com + +- Add msgfmt-remove-pot-creation-date.patch + to enable reproducible builds of packages using gettext-runtime + such as dfc, e2fsprogs and acl + +------------------------------------------------------------------- +Sun Jun 19 15:42:15 UTC 2016 - astieger@suse.com + +- GNU gettext 0.19.8.1: + * Fix unintentional soname bump + +------------------------------------------------------------------- +Sat Jun 11 18:58:17 UTC 2016 - astieger@suse.com + +- GNU gettext 0.19.8: + * msgfmt now produces little-endian .mo files by default. + * xml: xgettext and msgfmt now look for .its files in directories + supplied through the GETTEXTDATADIRS or XDG_DATA_DIRS + environment variable. + * JavaScript: xgettext and msgfmt now recognize numbered + arguments in format strings. + +------------------------------------------------------------------- +Fri Apr 22 19:34:10 UTC 2016 - astieger@suse.com + +- drop gettext-runtime-grep-2.24.patch, no longer required for 2.25 + +------------------------------------------------------------------- +Sun Apr 17 17:56:27 UTC 2016 - astieger@suse.com + +- GNU gettext 0.19.7: + * can now load custom string extraction rules in XML + Internationalization Tag Set (ITS) standard + * the existing XML-based language scanners (Glade, GSettings, and + AppData) rewritten using ITS + * Add msgfmt --xml option to merge translations back to the + original XML document. + +------------------------------------------------------------------- +Tue Apr 12 11:27:37 UTC 2016 - dimstar@opensuse.org + +- Add gettext-runtime-grep-2.24.patch: Fix test suite with + grep 2.24 (https://savannah.gnu.org/bugs/index.php?47674). + +------------------------------------------------------------------- +Tue Dec 8 16:57:37 CET 2015 - sbrabec@suse.com + +- Recommend bison-lang by gettext-tools, as it is used by them. + +------------------------------------------------------------------- +Fri Sep 11 18:56:49 UTC 2015 - astieger@suse.com + +- GNU gettext 0.19.6: + * Support AppData file format + * New macro AM_GNU_GETTEXT_REQUIRE_VERSION + * po/Makefile.in.in can now insert the file $(DOMAIN).pot-header + to $(DOMAIN).pot, instead of the standard header comments. + * Fix mishandling of gettext version numbers for minor releases, in + po-mode.el and gettextize. + * Fix build with --enable-relocatable. +- remove no longer required gettext-0.19.5.1-gettextize.diff + +------------------------------------------------------------------- +Mon Aug 24 15:35:02 UTC 2015 - i@marguerite.su + +- add patch: boo941629-unnessary-rpath-on-standard-path.patch + * config.rpath from gettext-tools will set rpath for ELF binaries + not in /usr/lib, even if it's the standard path the linker + would search anyway. + +------------------------------------------------------------------- +Tue Jul 21 11:23:29 UTC 2015 - mlin@suse.com + +- Add gettext-0.19.5.1-gettextize.diff + * workaround gettextize in gettext 0.19.5.1, see + http://lists.gnu.org/archive/html/bug-gettext/2015-07/msg00027.html + +------------------------------------------------------------------- +Thu Jul 16 10:56:05 UTC 2015 - astieger@suse.com + +- GNU gettext 0.19.5.1: + * fix build on old platforms where stpcpy and stpncpy is missing + +------------------------------------------------------------------- +Fri Jul 10 14:34:22 UTC 2015 - astieger@suse.com + +- GNU gettext 0.19.5: + * xgettext: feature to perform syntax checks on msgid, via + --check option or "xgettext: " commentgs + * msgfilter, msgexec: new option --newline + * The base Unicode standard is now updated to 8.0.0. + * msginit is now capable of generating "Plural-Forms:" from + Unicode CLDR. Via GETTEXTCLDRDIR environment variable. + * Improved Programming languages support + * drop gettext-check-allocated-size-for-static-segment.patch, + is upstream + +------------------------------------------------------------------- +Tue Mar 10 07:06:26 UTC 2015 - mlin@suse.com + +- Add gettext-check-allocated-size-for-static-segment.patch from upstream + * Check if the embedded segment size is valid, before adding it to + the string length. Please see + http://lists.gnu.org/archive/html/bug-gettext/2015-03/msg00005.html + +------------------------------------------------------------------- +Tue Jan 27 20:24:49 UTC 2015 - andreas.stieger@gmx.de + +- GNU gettext 0.19.4: + * The --keyword option of xgettext now accepts same argument + number for both singular and plural forms. + * Programming languages support: + - C#: xgettext now properly handles Unicode characters encoded + with surrogate pairs. + - C/C++: xgettext now recognizes ISO/IEC 9899:2011 string + literals prefixed by R, u8, u8R, u, uR, U, UR, L, or LR. + - Shell: xgettext now properly recognizes Bash ANSI-C quoting + ($'...'). + * Bug fixes: + - Fix integer overflow when reading certain MO files with + msgunfmt. + - Avoid invalid memory access in various cases. In particular, + when the same argument number is specified for singular/ + plural arguments, and when checking Lisp and Scheme format + strings. + +------------------------------------------------------------------- +Sun Dec 28 15:03:00 UTC 2014 - Led + +- fix 'echo -e' in cvs.sh script that may be unsupported in some + POSIX-complete shells +- add patches: + * gettext-0.19.3-fix-bashisms.patch + +------------------------------------------------------------------- +Fri Oct 17 21:56:18 UTC 2014 - andreas.stieger@gmx.de + +- GNU gettext 0.19.3: + * Fix xgettext mishandling of octal character escapes in C. + * Fix autopoint infinite recursion with certain configure.ac. + * The po/Makevars file has a new field MSGINIT_OPTIONS, that can + be used to adjust msginit's operation. This is particularly + useful for controlling line wrapping behavior together with + MSGMERGE_OPTIONS and XGETTEXT_OPTIONS. + +------------------------------------------------------------------- +Tue Jul 15 11:49:59 CEST 2014 - pth@suse.de + +- Update to 0.19.2: + * Fix xgettext crash in parsing empty string literals in C and Vala. + * Autoconf macro trace in autopoint now works again with Autoconf 2.68 + or earlier. It was a regression in 0.19. + +------------------------------------------------------------------- +Tue Jun 10 22:00:50 UTC 2014 - andreas.stieger@gmx.de + +- GNU gettext 0.19.1: + * Desktop Entry: msgfmt now always reads the po/LINGUAS file + * Vala: Bug fix in xgettext handling of "//" in string literals + * po/Makevars.template now contains the newly added variables + * msgfmt now treats errors in the PO file header as non-fatal + In future Gettext versions, msgfmt will treat header errors as + fatal and terminate the command execution. +- switch to xz tarball + +------------------------------------------------------------------- +Tue Jun 3 19:20:25 UTC 2014 - andreas.stieger@gmx.de + +- GNU gettext 0.19: + - Programming languages support: + * Desktop Entry: + xgettext and msgfmt now support .desktop files, used by + desktop applications, as input and output. + * GSettings: + xgettext now supports GSettings schema file format used by + GNOME applications. + * JavaScript: + xgettext now recognizes E4X (ECMA-357) constructs. + * PHP: + Single and double quotes around heredoc markers are now + recognized. + * Python: + The acceptable format specifiers in the braced-syntax format + strings is now limited to the Standard Format Specifiers, to + reasonably avoid false-positives. + * Scheme: + The gettext shorthand form _"abc", used by GIMP script-fu, is + now recognized by xgettext. + * C and Vala: + xgettext now recognizes C99-style Unicode character escapes. + - The --add-location option of msgattrib, msgcat, msgcomm, + msgconv, msgen, msgfilter, msggrep, msgmerge, msguniq, and + xgettext commands now takes an optional argument 'never', + 'full', or 'file', to control the format of "#: ..." comments. + - msgfmt now has --source option to keep generated .java file + when running in Java mode. + - msgattrib now has --empty option that sets msgstr to empty when + clearing fuzzy flag. + * msgexec and msgfilter pass the plural information to subprocess + through the environment variable MSG{EXEC,FILTER}_MSGID_PLURAL + and MSG{EXEC,FILTER}_PLURAL_FORM. + * New built-in filters 'quot' and 'boldquot' have been added to + msgfilter. These filters convert Latin quotation marks ('...', + "...") into Unicode quotation marks (for example, U+2018) if + possible, similar to the sed commands used in po/Rules-quot and + po/Rules-boldquot. + * The po/Makevars file has a couple of new options + PO_DEPENDS_ON_POT and DIST_DEPENDS_ON_UPDATE_PO, that can be + used to adjust the behavior of updating PO files on demand. + * xgettext now strips prefixed string before the comment tag. + This is useful to support C-style comment like this: + /* + * TRANSLATORS: first line + * second line + */ + * In this example, the extracted comment does not contain "* " at + the beginning of each line. + * libgettextpo library: + - Memory leak fixes in the PO file parser. + * Documentation: + - A complete example showing the use of GNU gettext in a + GNOME 3 application has been added + +------------------------------------------------------------------- +Sun Jan 12 21:56:01 UTC 2014 - andreas.stieger@gmx.de + +- GNU gettext 0.18.3.2: + * Add missing extern-inline.m4 into archive. +- verify source signature + +------------------------------------------------------------------- +Tue Dec 24 08:59:10 UTC 2013 - coolo@suse.com + +- avoid testing gnulib copies - we're not interested in bugs in gnulib + as we don't use it + +------------------------------------------------------------------- +Sun Oct 20 11:01:11 UTC 2013 - jengelh@inai.de + +- Split extra documentation in /usr/share/doc into separate + subpackage +- Substitute %_prefix/share => %_datadir and + %_defaultdocdir/%name => %_docdir + +------------------------------------------------------------------- +Wed Oct 2 08:56:35 UTC 2013 - coolo@suse.com + +- Version 0.18.3.1 including a hotfix for autopoint + not copying intl library if asked to (fixes build failures in 13.1) + + https://savannah.gnu.org/bugs/?func=detailitem&item_id=39536 + +------------------------------------------------------------------- +Mon Aug 12 10:45:36 UTC 2013 - christoph.miebach@web.de + +- Version 0.18.3 - July 2013 + + * Runtime behaviour: + On Mac OS X systems, the setlocale() function now properly + invalidates loaded message catalogs when a locale has been set. + + * Programming languages support: + + - C++: + The gnu::autosprintf class now provides an assignment + operator. + + - Glade: + xgettext now supports GtkBuider file format used by Glade 3. + xgettext now also extracts contexts (msgctxt) from Glade 2 + and GtkBuider files. + + - JavaScript: + xgettext now partially supports JavaScript. Since the + current JavaScript specification (ECMA-262) does not define + the standard set of formatting methods nor translation + functions, the implementation supports only a limited + set of formatting methods and translation functions commonly + used in Gjs and other popular JavaScript implemenations and + libraries. + + - Lua: + xgettext now supports Lua, using Ľubomír Remák's lua-gettext. + + - Python: + xgettext and msgfmt's format string checking now recognize + Python format string in braced syntax (PEP 3101). xgettext + now also supports explicit string concatenation with '+' and + handles platform dependent line terminators (LF/CR/CRLF) + transparently. + + - Tcl: + Bug fix in xgettext Unicode escape handling. + + - Vala: + xgettext now supports Vala. + + * msgattrib now has --previous option to keep previous msgid when + making messages fuzzy, similar to msgmerge --previous. + + * msgfmt now checks PO file headers more strictly with less + false-positives. + + * 'gettextize' now checks macro directories specified with + AC_CONFIG_MACRO_DIRS in configure.ac. + + * Portability: + - msginit now does not require GNU sed. + - The Makefile rule for generating en@quot and en@boldquot now + uses @SED@ variable instead of hard-coded 'sed' command to + allow users to supply GNU sed. + + * Future backward-incompatibilities: + - In future Gettext versions, the files installed by + 'gettextize' will require Automake 1.10 or later. This will + improve the compatibility of user projects with newer + Automake versions. +- Remove upstreamed patches: + gettext-configure.patch + gettext-fix-tcl-u-escape-sequences.patch + +------------------------------------------------------------------- +Tue Jun 25 09:09:00 UTC 2013 - gber@opensuse.org + +- add gettext-fix-tcl-u-escape-sequences.patch in order to fix + the handling of Tcl \u escape sequences (bnc#826422) + +------------------------------------------------------------------- +Wed Jun 19 08:12:19 UTC 2013 - coolo@suse.com + +- move the provides of gettext-devel to gettext-tools-mini too + +------------------------------------------------------------------- +Tue Jun 18 19:59:21 UTC 2013 - coolo@suse.com + +- more conflicts between the minis + +------------------------------------------------------------------- +Tue Jun 18 11:10:59 UTC 2013 - coolo@suse.com + +- make gettext-runtime conflict with gettext-runtime-mini + +------------------------------------------------------------------- +Tue Jun 18 09:54:33 UTC 2013 - schwab@suse.de + +- Add gettext-runtime-mini.spec that reverts to using the included + library sources + +------------------------------------------------------------------- +Sat Jun 15 11:52:06 UTC 2013 - schwab@linux-m68k.org + +- Add glib2-devel libcroco-devel libxml2-devel to build requires to avoid + using the included copies. +- gettext-configure.patch: Fix syntax in libxml check to avoid spurious + failure + +------------------------------------------------------------------- +Sat Jun 8 08:39:07 UTC 2013 - christoph.miebach@web.de + +- Update to version 0.18.2.1: Version 0.18.2 - December 2012 + + xgettext now understands the block comment syntax of Guile 2.0. + + libgettextpo library: + * The initial msgstr of a new message is now "", not NULL. + * Bug fixes in the functions po_message_is_range, + po_file_check_all, po_message_check_all. + + Installation options: + The configure options --with-xz and --with-bzip2 can be used to + specify alternate compression methods for the archive used by + the 'autopoint' program. These options, together with + --with-git, allow to trade dependencies against installed + package size. --with-xz has the highest compression rate, + followed by --with-git, followed by --with-bzip2. + + Autoconf macros: + * The autoconf macros installed by 'gettextize' now work with + the forthcoming Automake 1.14 and require Autoconf version + 2.60 or newer. + + Portability: + * Building on MacOS X 10.7, Cygwin 1.7.10, and newer 64-bit + mingw is now supported. + +- Remove obsolete patches: + + getext-stdio.in.patch + + gettext-codecleanup.patch + +------------------------------------------------------------------- +Fri May 31 07:47:08 UTC 2013 - coolo@suse.com + +- do not call autoreconf, spares you all the ugly patches: + gettext-no_silent_rules.patch + gettext-0.15-docdir.diff + gettext-autotools.patch + +------------------------------------------------------------------- +Wed Mar 27 07:50:12 UTC 2013 - mmeister@suse.com + +- Added url as source. + Please see http://en.opensuse.org/SourceUrls + +------------------------------------------------------------------- +Mon Sep 24 17:21:00 CEST 2012 - pth@suse.de + +- remove silent_rules from AM_INIT_AUTOMAKE to make autoreconf + succeed on older distributions. +- Rename po-mode.diff to gettext-po-mode.diff + +------------------------------------------------------------------- +Thu Sep 13 14:31:56 UTC 2012 - coolo@suse.com + +- replace ; with and in spdx.org license + +------------------------------------------------------------------- +Sun Jul 22 18:41:39 UTC 2012 - aj@suse.de + +- Fix build with missing gets declaration (glibc 2.16) + +------------------------------------------------------------------- +Mon Jul 2 11:04:21 UTC 2012 - coolo@suse.com + +- do not use obsolete AM_PROG_MKDIR_P + +------------------------------------------------------------------- +Thu Jan 12 15:57:24 UTC 2012 - aj@suse.de + +- Disable tests test-readlink and test-areadlink since they + fail randomly. + +------------------------------------------------------------------- +Thu Jan 12 13:37:28 UTC 2012 - aj@suse.de + +- Remove cvs, not used anymore since 0.18.1 in our build. + +------------------------------------------------------------------- +Sun Oct 2 14:24:27 CEST 2011 - dmueller@suse.de + +- revert last change - it is not the testsuite that hangs + but everything. The better workaround is to disable openmp + +------------------------------------------------------------------- +Sat Oct 1 05:39:12 UTC 2011 - coolo@suse.com + +- add libtool as buildrequire to make the spec file more reliable + +------------------------------------------------------------------- +Sat Oct 1 02:00:30 UTC 2011 - crrodriguez@opensuse.org + +- Test suite hangs in qemu-arm due to bugs in the emulator + workaround this issue. + +------------------------------------------------------------------- +Thu Sep 29 13:27:17 CEST 2011 - dmueller@suse.de + +- fix build + +------------------------------------------------------------------- +Thu Sep 29 10:20:07 UTC 2011 - adrian@suse.de + +- disable openmp when qemu is used for building (like on arm) + +------------------------------------------------------------------- +Fri Jan 7 10:36:22 CET 2011 - meissner@suse.de + +- Also add gettext-tools to baselibs.conf, wine-devel now needs + libgettextpo. + +------------------------------------------------------------------- +Tue Dec 21 13:43:49 CET 2010 - pth@suse.de + +- Update to 0.18.1. Changes since 0.17: + Version 0.18.1 - June 2010 + + * msggrep: A '$' anchor in a regular expression now also matches + the end of the string, even if it does not end in a newline. + + * Dependencies: + The libraries and programs are now linked with libunistring if + this library is already installed. + + * Installation options: + The configure option --with-cvs is deprecated. The 'autopoint' + program will now use the 'git' program by default to compress its + archive. If the configure option --without-git is specified, + 'autopoint' will not rely on 'git', but will instead rely on a + locally installed 3 MB large archive. + + Version 0.18 - May 2010 + + * PO file format: + There is a new field 'Language' in the header entry. It denotes + the language code (plus optional country code) for the PO file. + This field can be used by automated tools, such as spell + checkers. It is expected to be more reliable than looking at the + file name or at the 'Language-Team' field in the header entry. + + msgmerge, msgcat, msgen have a new option --lang that allows to + specify this field. Additionally, msgmerge fills in this new + field by looking at the 'Language-Team' field (if the --lang + option is not given). + + * xgettext and PO file format: + + For messages with plural forms, programmers can inform the + translators about the range of possible values of the numeric + argument, like this: + /* xgettext: range: 0..15 */ + This information 'range: 0..15' is stored in the PO file as a + flag attached to the message. Translators can produce better + translations when they know that the numeric argument is small. + + * Colorized PO files: + msgattrib, msgcomm, msgconv, msgen, msgfilter, msggrep, msginit, + msgmerge, msgunfmt, msguniq, xgettext now have options --color + and --style, like msgcat has since version 0.17. + + * msgmerge is up to 10 times faster when the PO and POT files are + large. This speedup was contributed by Ralf Wildenhues. + + * msgcmp has a new option -N/--no-fuzzy-matching, like msgmerge has + since version 0.12. + + * msgfilter now sets environment variables during the invocation of + the filter, indicating the msgid and location of the messge being + processed. + + * xgettext now can extract plural forms from Qt 4 programs. The + recommended xgettext command-line options for this case are: + --qt --keyword=tr:1,1t --keyword=tr:1,2c,2t --keyword=tr:1,1,2c,3t + + * xgettext --language=GCC-source now recognizes also the format + strings used in the Fortran front-end of the GCC compiler, and + marks them as 'gfc-internal-format'. + + * autopoint can now be used to update several PO directories all + together. + + * PO mode changes: + - PO files with plural entries are now correctly handled. + - Editing a message with previous msgid (in comments) removes these + comments. Contributed by Noritada Kobayashi. + + * The po/Makevars file has a new field MSGMERGE_OPTIONS, that can + be used to adjust msgmerge's operation. + + * The use of the macro AM_GNU_GETTEXT without 'external' argument + and the --intl option of the gettextize program are deprecated + and will be removed in the next release. Instead of including + the intl sources in your package, we suggest making the libintl + library an (optional) prerequisite of your package. + + * Updated the meaning of 'gcc-internal-format' to match GCC 4.3. + + * Installation options: + The configure options --without-cvs and --with-git can be used to + specify whether 'autopoint' will use the 'cvs' program, or the + 'git' program, or none at all. These options allow to trade + dependencies against installed package size: If --without-cvs is + specified and --with-git is not specified, 'autopoint' will not + rely on 'cvs' or 'git', but will instead rely on a locally + installed a 3 MB large archive. + + * Portability: The msgfilter program now also works on native Woe32 + - platforms. Compiled C# message catalogs now also work with + - 'mono' versions from 2009 + or newer. + +------------------------------------------------------------------- +Mon Jun 28 06:38:35 UTC 2010 - jengelh@medozas.de + +- use %_smp_mflags + +------------------------------------------------------------------- +Fri Mar 5 09:34:18 UTC 2010 - puzel@novell.com + +- remove gettext-tools/gnulib-m4/openmp.m4: fix build with new + autoconf + +------------------------------------------------------------------- +Sun Dec 13 17:13:10 CET 2009 - jengelh@medozas.de + +- add baselibs.conf as a source + +------------------------------------------------------------------- +Tue Dec 8 10:39:08 CET 2009 - jengelh@medozas.de + +- enable parallel building + +------------------------------------------------------------------- +Thu Jul 23 16:23:44 CEST 2009 - ke@suse.de + +- Synch po-mode.el with version from gettext CVS; for details, see the + beginning of po-mode-cvs-2009-07-23.patch. + +------------------------------------------------------------------- +Sat Feb 7 18:32:57 CET 2009 - schwab@suse.de + +- Rebuild broken info file. + +------------------------------------------------------------------- +Tue Jan 13 12:34:56 CET 2009 - olh@suse.de + +- obsolete old -XXbit packages (bnc#437293) + +------------------------------------------------------------------- +Tue Oct 14 13:14:16 CEST 2008 - kukuk@suse.de + +- Never install files in %check section +- Disable autoconf/libtool tests + +------------------------------------------------------------------- +Mon Oct 13 16:03:21 CEST 2008 - kukuk@suse.de + +- Fix autoreconf call + +------------------------------------------------------------------- +Sun May 18 10:35:50 CEST 2008 - pth@suse.de + +- Fix segmentation fault in msgmerge (bnc#391372). +- Get rid of %run_ldconfig + +------------------------------------------------------------------- +Wed May 7 21:39:56 CEST 2008 - coolo@suse.de + +- provide gettext- too + +------------------------------------------------------------------- +Tue Apr 29 17:29:50 CEST 2008 - cthiel@suse.de + +- obsolete gettext- via baselibs.conf + +------------------------------------------------------------------- +Thu Apr 10 12:54:45 CEST 2008 - ro@suse.de + +- added baselibs.conf file to build xxbit packages + for multilib support + +------------------------------------------------------------------- +Tue Jan 22 12:21:18 CET 2008 - pth@suse.de + +- Define version before using it. +- Fix Provides and Obsoletes for gettext-tools + +------------------------------------------------------------------- +Tue Jan 15 13:11:18 CET 2008 - pth@suse.de + +- Update rpmlintrc. + +------------------------------------------------------------------- +Tue Dec 4 14:42:03 CET 2007 - pth@suse.de + +- Add patch from upstreams to add the missing mode for the open call. + +------------------------------------------------------------------- +Fri Nov 23 14:43:11 CET 2007 - pth@suse.de + +- Reenable msgmerge-compendium-5 now that gcc has been fixed. +- Change Provides/Obsoletes to match guidelines +- Add Comment as to when the rename happened. + +------------------------------------------------------------------- +Thu Nov 15 12:51:17 CET 2007 - pth@suse.de + +- Rename packages: gettext -> gettext-runtime and + gettext-devel -> gettext->tools + Packaging closely follows uptream recommendation with a few + exceptions. + +- Initialize variable to shut up gcc. +- Disable msgmerge-compendium-5 for now. + +- Update to 0.17: + * License: + The gettext related programs and tools are now licensed under the GPL + version 3, instead of the GPL version 2. + + * PO file format: + The Project-Id-Version field in the header entry may now already be filled + in the POT file. In this case, the translators don't need to fill it in. + xgettext has new options --package-name and --package-version that allow + to specify the package name and version from a Makefile. + + * Colorized PO files: + The msgcat program has new options --color and --style that produce a + colorized PO file output, where keywords, strings, comments, or format + directives can be highlighted. See the documentation section + "Highlighting parts of PO files" for more info. + + * gettextize now has a --po-dir option that allows several PO directories to + be updated all together. + + * Programming languages support: + - Contexts (msgctxt) are now also supported for Java and C#. + - C# with Qt: The support for Qt format strings has been updated for Qt 4. + - C++ with KDE: + xgettext has a new option --kde that triggers the recognition and marking + of KDE 4 format strings. + + * Autoconf macros: + - A new macro AM_XGETTEXT_OPTION can be used as an alternative to modifying + po/Makevars. + + * libgettextpo library: + - New functions are available for querying the list of supported format + types. + - The functions po_message_comments and po_message_extracted_comments + return a multiline string where each line no longer starts with a + redundant space. The leading space in every comment line is now stripped + while reading the PO file. + - Conversely, when you pass a multiline string to the function + po_message_set_comments or po_message_set_extracted_comments, you normally + don't pass a space at the beginning of each line, because such spaces are + no longer trimmed during output. + + * Documentation: + - The "Users" chapter has been completely rewritten. + - New section "Highlighting parts of PO files". + - A complete example showing the use of GNU gettext in Java with the Qt/Jambi + GUI toolkit has been added. + +- Add tcl and perl-libintl-perl to BuildRequires (testsuite needs + them). +- Remove call to gl_AC_TYPE_LONG_LONG from libasprintf's + configure.ac + +------------------------------------------------------------------- +Mon Nov 5 17:26:27 CET 2007 - rguenther@suse.de + +- Fix ordering of gettext.changes entries. + +------------------------------------------------------------------- +Wed Oct 31 16:58:36 CET 2007 - mrueckert@suse.de + +- renamed rpmlintrc to gettext-rpmlintrc and added it to the spec + as source 1 + +------------------------------------------------------------------- +Mon Sep 3 13:51:10 CEST 2007 - pth@suse.de + +- Incorporate upstream patch that correctly fixes the expat + dynloading code (http://savannah.gnu.org/bugs/?19585). + +------------------------------------------------------------------- +Wed Aug 15 21:14:29 CEST 2007 - coolo@suse.de + +- do not set the version to 0.16.1 + +------------------------------------------------------------------- +Fri Aug 10 19:40:37 CEST 2007 - bk@suse.de + +- Update to gettext 0.16.1, required by GnuPG 2.0.5 + +------------------------------------------------------------------- +Thu Aug 9 18:04:26 CEST 2007 - bk@suse.de + +- apply the fixes from gettext-0.16.1, noticeable changes: + * gettext.m4: changequote instead of pairs of brackets + * add a few function protoypes and update polish translations +- extract missing ycp comments (fix from upstream maintainer, #287150) +- re-enable make check to identify possible toolchain bugs +- move java and csharp documentation to gettext-{java,csharp} +- hardlink duplicate example files in documentation + +------------------------------------------------------------------- +Sat May 26 00:01:35 CEST 2007 - ro@suse.de + +- added rpmlintrc for gettext-devel (examples executable) + +------------------------------------------------------------------- +Fri Apr 20 14:43:28 CEST 2007 - pth@suse.de + +- Make inclusion of expat.h independent of dynamic loading so + that XML_MAJOR_VERSION is actually defined (#264110). + +------------------------------------------------------------------- +Fri Mar 30 15:18:31 CEST 2007 - pth@suse.de + +- Fix use of uninitialized variables. +- Set CXXFLAGS to get C++ code compiled with RPM_BUILD_OPTS +- sync .spec files + +------------------------------------------------------------------- +Thu Mar 29 11:25:05 CEST 2007 - rguenther@suse.de + +- Add site-lisp directories to package. + +------------------------------------------------------------------- +Tue Mar 20 17:54:36 CET 2007 - rguenther@suse.de + +- Remove unused expat BuildRequires. + +------------------------------------------------------------------- +Wed Mar 7 23:34:03 CET 2007 - rguenther@suse.de + +- Add cvs Requires to gettext-devel as autopoint requires it. + +------------------------------------------------------------------- +Tue Jan 16 17:09:35 CET 2007 - pth@suse.de + +- Update to gettext 0.16 + + * Interoperability with automake-1.10. + * msgmerge has a new option --previous that has the effect of saving the + previous msgid of message when making them fuzzy. + * msgcmp now ignores fuzzy and untranslated messages in the PO file. + * gettextize, when invoked without --intl option, now installs only the .m4 + files that are needed. + * gettextize no longer creates symbolic links by default; it makes file copies + instead. + + * Autoconf macros: + - The gettext autoconf macros now require autoconf 2.52 or newer. + - New autoconf macro AM_GNU_GETTEXT_INTL_SUBDIR + - A new autoconf macro AM_GNU_GETTEXT_NEED is added. + + * The libgettextpo library no longer exports symbols that could clash with + symbols of the application that uses it. + +------------------------------------------------------------------- +Mon Sep 18 13:45:05 CEST 2006 - rguenther@suse.de + +- Build java tools from a separate spec file gettext-java. +- Remove gcc-java and gcc-objc build dependencies. + +------------------------------------------------------------------- +Tue Sep 5 16:58:56 CEST 2006 - rguenther@suse.de + +- Remove build dependency on emacs. +- Remove install dependency on libstdc++-devel for gettext-devel. + +------------------------------------------------------------------- +Wed Jul 26 08:59:35 CEST 2006 - ke@suse.de + +- Version 0.15: + * Enhance PO file format. Messages constrained to a certain context + are possible. The syntax is: + msgctxt "context" + msgid "original" + msgstr "translation" + The xgettext program can be told through the --keyword flag which + function/macro argument has the role of a context. It also supports + the GNOME glib convention to specify the context and original string + in the same string literal: "context|original". + The (non-public) include file gettext.h defines macros pgettext, dpgettext + etc. that take a context argument. + For more information, see the node "Contexts" in the manual. + * msgfmt's format string checking is now stricter in the presence of plural + forms. + * Enhancements to msggrep, xgettext, msgmerge (much faster now!). + * New program recode-sr-latin, that converts Serbian text from + the Cyrillic script to the Latin script. + * Programming languages support: + - C++ with Boost: + - Python: xgettext now recognizes the source encoding from a + "coding:" comment among the first two lines. The default encoding + is now ASCII, no longer ISO-8859-1. + * libgettextpo library: Incompatible change with the error handler + type passed to functions. +- Remove strict aliasing patch which seems to be obsolete because of + code changes. +- Require expat, but still no-op? + +------------------------------------------------------------------- +Wed Jan 25 21:30:17 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Tue Jan 3 13:51:53 CET 2006 - sbrabec@suse.cz + +- Fixed info installation scriptlets (#141183). +- Use %doc, where appropriate. +- Moved autosprintf.info to devel subpackage. +- Move emacs-lisp files to main package. +- Fixed devel splitting and requirements. + +------------------------------------------------------------------- +Mon Sep 19 13:13:49 CEST 2005 - mmj@suse.de + +- Update to 0.14.5 +- Fix strict aliasing issues + +------------------------------------------------------------------- +Sat Apr 16 14:28:46 CEST 2005 - schwab@suse.de + +- Move libgettextsrc-*.so and libgettextlib-*.so to main package as needed + by msgfmt. + +------------------------------------------------------------------- +Thu Apr 14 11:28:06 CEST 2005 - kukuk@suse.de + +- Move msgfmt into main package for LSB support + +------------------------------------------------------------------- +Tue Apr 5 23:05:15 CEST 2005 - mmj@suse.de + +- Fix documentation packaging + +------------------------------------------------------------------- +Mon Apr 4 22:43:48 CEST 2005 - schwab@suse.de + +- Remove the stupid casts. + +------------------------------------------------------------------- +Mon Apr 4 19:39:41 CEST 2005 - mmj@suse.de + +- Introduce incredibly gross hack to make sure (int) casts are + changed to (long) +- Update to gettext-0.14.3 +- Move many files to the -devel package, trying to conform with + gettext authors recommendation of split runtime/tools [#66614] + +------------------------------------------------------------------- +Wed Feb 9 16:38:13 CET 2005 - mmj@suse.de + +- Revise the tmp file race patch: + - Make umask not so strict [#50437] + - Use mktemp in more places + +------------------------------------------------------------------- +Tue Jan 11 18:20:32 CET 2005 - schwab@suse.de + +- Fix placement of po-mode-line-entry in mode-line-format for CVS Emacs. + +------------------------------------------------------------------- +Thu Nov 25 11:01:34 CET 2004 - mmj@suse.de + +- add fixes for tmp file races [#47724] + +------------------------------------------------------------------- +Tue Oct 19 00:28:00 CEST 2004 - ro@suse.de + +- locale-rename: no -> nb + +------------------------------------------------------------------- +Tue Apr 20 19:28:30 CEST 2004 - mmj@suse.de + +- Add autoreconf -fi + +------------------------------------------------------------------- +Tue Mar 2 17:37:54 CET 2004 - mmj@suse.de + +- Update to 0.14.1 [#34491] including: + - C#: xgettext now also supports C#. + - Bugfixes + +------------------------------------------------------------------- +Sat Jan 10 10:30:31 CET 2004 - adrian@suse.de + +- add %run_ldconfig + +------------------------------------------------------------------- +Fri Jan 9 21:45:35 CET 2004 - schwab@suse.de + +- Fix makefiles. + +------------------------------------------------------------------- +Fri Dec 19 14:20:35 CET 2003 - pthomas@suse.de + +- Update to 0.13 + - New languages support: shell, Perl, PHP ObjectiveC, + the special format strings used in the gcc sources and + C++ with Qt. + - Complete examples for all supported programing languages + added to the documentation. + +------------------------------------------------------------------- +Tue Dec 9 10:09:00 CET 2003 - kukuk@suse.de + +- Don't build PDF docu +- Remove lots of obsolete packages from neededforbuild + +------------------------------------------------------------------- +Tue Jun 17 12:30:58 CEST 2003 - pthomas@suse.de + +- Update to 0.12.1 + +------------------------------------------------------------------- +Thu Apr 24 12:20:23 CEST 2003 - ro@suse.de + +- fix install_info --delete call and move from preun to postun + +------------------------------------------------------------------- +Thu Feb 6 18:32:39 CET 2003 - kukuk@suse.de + +- Use install-info macros + +------------------------------------------------------------------- +Thu Aug 8 13:56:08 CEST 2002 - pthomas@suse.de + +- Update to 0.11.5 + From NEWS: Bug fixes in the gettext.m4 autoconf macros. + +- Remove patches obsoleted by the update and adapt those + still needed. + +------------------------------------------------------------------- +Fri Jul 26 22:27:59 CEST 2002 - schwab@suse.de + +- Fix filelist. +- Install missing m4 macros. +- Remove interaction in gettextize. +- Fix unwanted expansion in AM_PO_SUBDIRS. + +------------------------------------------------------------------- +Fri Jul 26 13:44:32 CEST 2002 - pthomas@suse.de + +- Update to gettext 0.11.4 + + - The tools now know about the ISO C 99 format + string directive macros PRId64, PRIxMAX etc. + + - remove patches obsoleted by this new version + +------------------------------------------------------------------- +Wed Jul 24 11:57:21 CEST 2002 - ke@suse.de + +- Remove texinfo.tex from source files and make use of texinfo.tex + provided by the system. +- Install gettext.pdf under $RPM_BUILD_ROOT. + +------------------------------------------------------------------- +Tue Jul 23 11:33:14 CEST 2002 - schwab@suse.de + +- Update to gettext 0.11.3. +- Force checking for division by zero. + +------------------------------------------------------------------- +Tue Jul 9 16:34:37 CEST 2002 - schwab@suse.de + +- Fix autoload for po-mode. + +------------------------------------------------------------------- +Thu Jun 13 16:13:38 CEST 2002 - meissner@suse.de + +- mark msgfmt-6 as SKIP, division by 0 is not exactly well defined. + +------------------------------------------------------------------- +Tue May 21 14:47:28 CEST 2002 - ke@suse.de + +- suse-start-po-mode.el: Load po-compat if "po-find-file-coding-system" + doesn't come with stock Emacs. + +------------------------------------------------------------------- +Thu Apr 25 16:07:32 CEST 2002 - pthomas@suse.de + +- Update to 0.11.2. + From NEWS: + - Bug fixes in the gettext.m4 autoconf macros. + - New documentation section: Preparing Translatable Strings. + - xgettext now also supports Python, Tcl, Awk and Glade. + - msgfmt can create (and msgunfmt can dump) Tcl message catalogs. + - msggrep has a new option -C that allows to search for strings + in translator comments. +- Run gettext testsuite. + +------------------------------------------------------------------- +Wed Apr 3 15:59:28 CEST 2002 - schwab@suse.de + +- Move suse-start-po-mode.el here from po-utils. +- Remove ia64 workaround. + +------------------------------------------------------------------- +Thu Mar 28 18:14:53 CET 2002 - pthomas@suse.de + +- Use %{_libdir} + +------------------------------------------------------------------- +Mon Feb 18 15:10:16 CET 2002 - pthomas@suse.de + +- Update %files. + +------------------------------------------------------------------- +Mon Feb 4 13:25 CET 2002 - pthomas@suse.de + +- Update to 0.11 + This is a major update with lots of new features and new tools. +- Integrate a patch from Bruno Haible to make libtool regard + DESTDIR when installing. +- Don't use the included libintl but rather the one in libc. +- Build dynamically linked binaries. +- Added the current texinfo.tex as otherwise gettext.pdf won't build. + +------------------------------------------------------------------- +Fri Feb 1 00:26:13 CET 2002 - ro@suse.de + +- changed neededforbuild to + +------------------------------------------------------------------- +Wed Oct 31 13:37:55 CET 2001 - kukuk@suse.de + +- Include manual pages + +------------------------------------------------------------------- +Tue Oct 30 20:32:21 CET 2001 - kukuk@suse.de + +- Update to 0.10.40 + +------------------------------------------------------------------- +Mon Aug 27 18:10:09 CEST 2001 - ke@suse.de + +- Update German translation from UMontreal Translation Project. +- Make sure to compile and install 'po-mode'. + +------------------------------------------------------------------- +Fri May 11 09:59:44 CEST 2001 - pthomas@suse.de + +- Update to 0.10.37. + Remove manual.diff as most of the fixes have been incorporated. + +------------------------------------------------------------------- +Wed May 9 18:40:53 CEST 2001 - cstein@suse.de + +- repacked sources with bzip2 + +------------------------------------------------------------------- +Thu Apr 12 14:34:00 CEST 2001 - pthomas@suse.de + +- Don't list directories shared with other packages in + spec file. + +------------------------------------------------------------------- +Mon Apr 9 05:59:00 CEST 2001 - pthomas@suse.de + +- Update to 0.10.36 +- Drop msghack patch +- Improve gettext manual ( hopefully :) +- Now provides po-mode.el + +------------------------------------------------------------------- +Thu Mar 8 08:56:17 CET 2001 - ke@suse.de + +- Use more rpm macros. +- Build and install a printable manual (PDF). + +------------------------------------------------------------------- +Fri Mar 2 19:20:48 CET 2001 - schwab@suse.de + +- Compile with -O1 on ia64 to work around compiler bug. + +------------------------------------------------------------------- +Tue Sep 19 17:43:21 MEST 2000 - pthomas@suse.de + +- add patch from Bruno Haible. This allows statically linking + programs with libintl.a on glibc systems. + +------------------------------------------------------------------- +Tue Jun 20 14:05:05 MEST 2000 - pthomas@suse.de + +- xgettext.c: format YCP automatically set for .ycp extension +- gettext.spec: allow building on systems where gettext.m4 etc. + are installed. + +------------------------------------------------------------------- +Thu Jun 15 17:05:23 CEST 2000 - pthomas@suse.de + +- add patches from Paul Eggert needed for NLS in gcc +- add patch from Martin v. Loewis to allow searching + inside of #define + +------------------------------------------------------------------- +Fri May 5 10:16:17 CEST 2000 - kukuk@suse.de + +- Fix Bug 2812 +- Add DESTDIR to intl/Makefile.in and po/Makefile.in.in +- Use BuildRoot + +------------------------------------------------------------------- +Mon May 1 21:05:29 CEST 2000 - ke@suse.de + +- Add msghack from RH's package: gettext-0.10.35-hacks.patch + +------------------------------------------------------------------- +Wed Apr 26 17:29:43 CEST 2000 - kukuk@suse.de + +- Fix configure call (add %{_target_cpu} macro) + +------------------------------------------------------------------- +Thu Apr 6 10:51:38 EDT 2000 - bk@suse.de + +- replace config.{guess,sub} against config update macro for s390 + +------------------------------------------------------------------- +Thu Feb 3 17:35:26 CET 2000 - schwab@suse.de + +- Update config.{guess,sub} to latest version. + +------------------------------------------------------------------- +Fri Jan 28 16:55:57 CET 2000 - schwab@suse.de + +- Do not even try to install po-mode.el. + +------------------------------------------------------------------- +Tue Jan 25 18:43:18 CET 2000 - kukuk@suse.de + +- Fix permissions of locale dirs. +- Move /usr/info -> /usr/share/info. +- Remove po-mode, now in extra package. + +------------------------------------------------------------------- +Mon Dec 13 12:02:54 CET 1999 - schwab@suse.de + +- Remove libintl.a from file list, everything is in libc. + +------------------------------------------------------------------- +Tue Nov 30 10:56:10 CET 1999 - schwab@suse.de + +- Add format checking for YCP strings. +- Don't declare getline and getdelim. + +------------------------------------------------------------------- +Sat Nov 13 14:46:46 MET 1999 - kukuk@suse.de + +- Clean up spec file and old, obsolete patches + +------------------------------------------------------------------- +Fri Oct 15 11:51:03 CEST 1999 - aj@suse.de + +- Handle \v. + +------------------------------------------------------------------- +Tue Oct 12 10:32:52 MEST 1999 - kettner@suse.de + +- patched for use with YaST2 YCP scripts, new option + --language=YCP + +------------------------------------------------------------------- +Sat Oct 9 14:46:38 CEST 1999 - ro@suse.de + +- fixed to build on any arch + +------------------------------------------------------------------- +Mon Sep 13 17:23:57 CEST 1999 - bs@suse.de + +- ran old prepare_spec on spec file to switch to new prepare_spec. + +------------------------------------------------------------------- +Sun Aug 15 17:16:03 MEST 1999 - ke@suse.de + +- update po-mode.el. + +------------------------------------------------------------------- +Thu Mar 11 18:52:25 MET 1999 - kukuk@suse.de + +- don't link against libintl.a on glibc systems + +------------------------------------------------------------------- +Sun Feb 14 14:39:32 MET 1999 - ke@suse.de + +- update po-mode.el. + +------------------------------------------------------------------- +Thu Jan 7 17:51:27 MET 1999 - ro@suse.de + +- respect alpha in specfile + +------------------------------------------------------------------- +Thu Jan 7 17:49:02 MET 1999 - ro@suse.de + +- don't redeclare getline + +------------------------------------------------------------------- +Mon Dec 7 16:02:41 MET 1998 - florian@suse.de + +- update to gettext 0.10.35 + +------------------------------------------------------------------- +Mon Dec 7 14:00:49 MET 1998 - bs@suse.de + +- added locale.alias to file list for libc5 systems. + +------------------------------------------------------------------- +Thu Nov 26 15:31:55 MET 1998 - bs@suse.de + +- skipped /usr/share/locale/locale.alias from file list (is in localedb) + +------------------------------------------------------------------- +Fri Sep 11 13:49:40 MEST 1998 - ro@suse.de + +- switch detection of GLIBC to automake + +------------------------------------------------------------------- +Thu Aug 13 11:57:46 MEST 1998 - bs@suse.de + +- added export LC_CTYPE to build an install section in spec file. + +------------------------------------------------------------------- +Wed Aug 12 09:32:43 MEST 1998 - ke@suse.de + +- new po-mode.el from + http://www.iro.umontreal.ca/contrib/po/po-mode/po-mode.el +- and install po-mode.el. + +------------------------------------------------------------------- +Fri Jun 19 19:36:31 MEST 1998 - ro@suse.de + +- dirty hack should at least work now + +------------------------------------------------------------------- +Fri Jun 19 10:04:32 MEST 1998 - bs@suse.de + +- don't include libintl.h if glibc is used. + did it with a dirty hack. Will be done better in a while. + +------------------------------------------------------------------- +Mon Mar 9 19:31:18 MET 1998 - ro@suse.de + +- added some documentation + +------------------------------------------------------------------- +Thu Feb 5 10:28:07 MET 1998 - florian@suse.de + +- add missing m4 macro files in /usr/share/aclocal + +------------------------------------------------------------------- +Fri Oct 10 12:48:23 MEST 1997 - florian@suse.de + + +- update to version 0.10.32 + + +------------------------------------------------------------------- +Wed Jan 22 22:24:11 CET 1997 - florian@suse.de + + +- update to version 0.10.26 diff --git a/gettext-runtime.keyring b/gettext-runtime.keyring new file mode 100644 index 0000000..05af0ea --- /dev/null +++ b/gettext-runtime.keyring @@ -0,0 +1,63 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQINBFxjJagBEACtJ6cBUyULIsZ163tvkSwAtqGIF4EvymDMB/q4tjf2S9RmW5Zo +UuEdFkImFWZaY8LV6shHF44RXHPL/irnA0byr9pVit+sj5RtWMXLJUnY6hp60OAN +n1CptCztcDwhDiSt0bcjPHRSvInqU5uHPiCfXau06TzveZ7UCj6Tkqc3n87W74y9 +HMfgVF7OrdyZCq3Bif+TCUnywnGmO4Boet2xGDCpCRyiIZXG4kl3REu/xqvhIyNk +w/o9TmnbEMbt4hGNp8O7nGZra9ajeDNYccxZYN2P6HKxCYfueKqjy+356+jnKgvR +D4QYP7z+3X3y7F1Ii2WIBWzCeZyVuPwATvGOL4lzOfMNJP9xdS3lbqHBYlAhWHcI +cRKhd7D7YAOjqVCfiKkZcZqUkcg1RZpaQ6nGQEpxmIj9QDfv+2f2QnbRiPjt2smn +Mi79ONEGUIu3h+PyMaS8Xn09Krasszd9gs0uKbCsRKOuVkzv0nQ8XnjlIBVbkCrB +IU3aKL94BmC0ZcGVqBXsWgZY2BzjKfI3HoJS0BaUAth1VJeLa4VPY2X7BV0ewyzo +Hf0OFdLwZ6RIxMlWX+dz9r8V/zNCxP/jU0z+Brhxm3iCdiRykkfHteSwoz1xyBQ3 +F+F+5dkZH3EFSab7CK57BF4/xcYwuwOheoqd76jhtfYP3uPgCe3VOSPVqwARAQAB +tDhCcnVubyBIYWlibGUgKE9wZW4gU291cmNlIERldmVsb3BtZW50KSA8YnJ1bm9A +Y2xpc3Aub3JnPokCPQQTAQgAJwUCXGMlqAIbAwUJC0c1AAULCQgHAgYVCAkKCwIE +FgIDAQIeAQIXgAAKCRD1vosmfGpAbSb+EACRlaeS0r9hCLn0YhN6hNEVvtkTU4pj +8rrAD3gMBZF+DBl1QkvMcEULwI2NBuETgJfW1uO2CUyxw8EWronQXmPruAdCrvA2 +V1dJP43Qy8IKqlgcAwKki+Yaq7+8qQLmCVzOcKyLg+4wYIpT17jE9O2U6eW2tO1R +fJuRnUSvft5DibHrhKaIYe283yTmvR2dioqg+91FJ5fvsGw7rH0nxzlmb+fx4w0F +uvLutxQNQDgJBDeVzMOM7VZdvnIUGzg+d4rKUftG5tzvIraIjjWfFJ5bEh5ljzSy +wZ/MbGUePmBIFTFeLt4/vlFa3oY77V9pAQkd1zhz10QEnAsOHbgah5enRfFKDhz0 +n6+3W4cHjcwByM319wM708Lk2nzCL1tfOhdUtJzUCdJ5Lx5osK1Abt8IqwDaCXy/ +ICEnldDEUqoBVTNluqxPV4k/o2YYVIhNcz+DysazLTVeLk+HPwjnVaXS0WF/e2G0 +S9NfljQBG1W+NdWjs0ZWZ2reLSoxdkndqgTqu2KZWhE8QIGa8LvveWAZc/bgHj1V +aXFCcgDf17PR6ADOtF58hytaTIwnb382qVesYL1torQO3IWabHHfNwgIm3aEtb/i +u1iO6WA3KWrAK9R0BneygswC+q+FKo8YL+rb6q+EEyZqU6WPPriD9ssS2bdjvlbu +ClfB3hOtan7PM4kCHAQQAQgABgUCXGMrDAAKCRBPSUqULkYWwoRMEACrY5AMc8JM +U8PZq7qhJ9yJgqnjGmN8/TGmta7NK0YJWTuluEK1Q5G6bWysLTHbkoNs8VgFvSiG +JQNqkJzCu0mhZn9fnxQYFcsZFzK4Z7pJj7Mw7AK5DaGqwQz1YeA+TFIirQY95PPw +Iq6C8qy8LMF58YRRZffpd1ABFasHk4OgsXnvXPa25/T1FQm0hllR0JbCep2LDE53 +PAKUgivHecV9RYYkpNJInwT7BIRljY7hQGPSn6GsgB5uZZDJKU4jgfaimJWfrXHw +ge5zjBBTkHU8BsnvrnEiaDQ0mxnJ/jVm9ylLel/7hq5rXTx92q0VrbL9/ZRQDVVO +4CqABeNjLmdZiJqQfa390Gzhkch6aOk6OznxG7s1EmJi64YmBZMd81HpXLyfKbLq +pcYvb4k+Y5/an1Sc1Bcoa9S3bCUhq89bRMgMIRGxVQdnYTC+1wvOSDsBgv0YYCTS +piP73e5IVw/ywgNAT9V9kkPC79iMyxTk9E4NafQ2Q/OgdxNsa+oY0oFT5m3Gj7jH +RhVe+di0Vtm5ueRFxE7p1yIz0hTgKsd9j7sslFNCjboeJZD7IpxPu3p5yZ2nlt9H +N2ajl10AOb6FLuDMUkQ5uRAAVPiEW7ZE9y6ctdNAYB6jCCrShheJ5ryXcvzrJbmp +Wi9dD8XX8ATEGv0ikiN7erpfVlL5t4p867kCDQRcYyWoARAAmK9cFiEkxVwSCC4N +MkhWaX5pqsA8YIhuBuwJuKrA1FqsysNt4bURWEmLgYOsEsNGQIBPBZP7ywYezf+s +mNiIweASvX1X1CfKqUpghiSCOVu1qkhjVjBMMqwRoj/4gRRHyYfHVwhbtRvtwKOH +rW+gGcwOhWGyGQia+c0m7TYJuajaMa8+HcLzORg0hiNPutgzeAlsV9ft7VOKKQtS +R9gKD9fYrDxOD4v5K5dvQXyuOzUuyQqfG8UocKoRhB6Ml3eu3fWRkK3KIeiIa0Ls +ZZ2sNV9ffBoGvfOMQjhbuNPegV3LFCpUP18e3VSae7dX1MnSti08k255YDD1QvdP +6egabE+lNLUuOtGYeT9U0M8jOs2Kq1pUeIt0TDJ9t1CuEsnvgl2DabjZHKZXxerP +Q8/bG6wQLskTZt6Rh0vObqbE/VOFt885qLvZkxFIQCQbfBzlas3/jM0j5q2poOuD +MiuzsfEZ8P4y94l3ESJRzkuSIMQeAgLlR0ASVM19I4tNfjAr0yWMX5JSdh95yd0s +khRoKsoFmUcx1MOOS7YtECURai+IGxpf7EKR6cT55Tl+oSGjPjOKaiWWrpWkyy61 +b1rXjMqmgzxXO9rBMWY/hc2Yp/EFZBoe+SyNoBHJm6hmyINQyICDSS3oqIhDBmeE +msUoPsRXtszfksalrjt+dOBOAvMAEQEAAYkCJQQYAQgADwUCXGMlqAIbDAUJC0c1 +AAAKCRD1vosmfGpAbfO3D/9D5VBr0G1X21tGoesAoEGhQcxAnCNTBYH+4WhSNLSW +w08sCH8Q+NinCqV5/QCgIwsMcxidnszm+7//l667gmUu8hM66U2T+ZCZMUL1G/iX +htpeTWv6dNDFyvSXwXoSIHhGVuSO2q95OeCSkJpf5V13fczNLDzTSsidGCY18+0r +LxwA+c0skLHY4k/7TWPj2QBViKXrXCv7XhpCMwPJCoAa6p4JpzQ3FqbAwes839t7 +3EeGpZsV+YyTKXgzt2odNiiraHv5/XyP7xxDUIhHn51r81bEaUSv6NtdAYU8dIsj +cMVt+xTNyKnPUaWwB3QCucZaPGBqwM5j/jKy/jAMN8ybnz01V5RWsJzf1nG0d+uH +aYsQZgppDSdVxvEgXGxnWZHcYjisLYntXNd8+frFOCs82kJeiqcpcciYiPOCSIjM +P62wGiwc4loeIhjukt9XhjEwQy+q1ty050a7fEGvFdJE05PQp3W4uee5YAjIG4gm +CC+Km7uqTrE8fItjWlDGeoShqif+tWDLoMoGFZWO3cYuhz8rfR3rb2QURW5mWevx +u4WYymbGlEc7z37qgJ4i8a6Qp1pjejMc0OLwyJyYP49dBh1Z4pJLjP4joqRDfO5z +gD8jnRhKlh/3ilmwZj5pzyLlaDV+P1PY0BnlHzp5Mj9xuZixx0/lc4kpHo9sWgPJ +Dw== +=MDRR +-----END PGP PUBLIC KEY BLOCK----- diff --git a/gettext-runtime.spec b/gettext-runtime.spec new file mode 100644 index 0000000..c7ced19 --- /dev/null +++ b/gettext-runtime.spec @@ -0,0 +1,379 @@ +# +# spec file for package gettext-runtime +# +# Copyright (c) 2024 SUSE LLC +# +# 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 https://bugs.opensuse.org/ +# + + +%define pacname gettext +%bcond_with mini + +Name: gettext-runtime +Version: 0.22.5 +Release: 0 +BuildRequires: automake >= 1.14 +BuildRequires: gcc-c++ +BuildRequires: glibc-gconv-modules-extra +BuildRequires: libtool +# To get an updated linkdupes.sh (in case there are new dupes), temproarily enable: +#BuildRequires: fdupes +%if %{without mini} +BuildRequires: glib2-devel +BuildRequires: libxml2-devel +BuildRequires: perl-libintl-perl +BuildRequires: tcl +# bug437293 +%ifarch ppc64 +Obsoletes: gettext-64bit +%endif +# +#Rename done for openSUSE 11.0 +Provides: gettext = %{version} +Obsoletes: gettext < %{version} +Conflicts: gettext-runtime-mini +Conflicts: gettext-tools-mini +%else +# to allow a prjconf preference which to take per build +Provides: gettext-runtime = %{version} +# Ensure this never finds its way onto a real installation +Requires: this-is-only-for-build-envs +# rpm-build requires gettext-tools, but we will only just be building it +#!BuildIgnore: gettext-tools +%endif +Summary: Tools for Native Language Support (NLS) +License: GPL-3.0-or-later AND LGPL-2.0-or-later +Group: Development/Tools/Other +URL: https://www.gnu.org/software/gettext/ +Source0: https://ftp.gnu.org/gnu/gettext/gettext-%{version}.tar.xz +Source1: https://ftp.gnu.org/gnu/gettext/gettext-%{version}.tar.xz.sig +Source2: suse-start-po-mode.el +Source3: gettext-linkdupes.sh +Source4: baselibs.conf +Source5: gettext-rpmlintrc +Source6: gettext-runtime.keyring +Patch0: gettext-0.12.1-sigfpe.patch +Patch1: gettext-0.19.3-fix-bashisms.patch +Patch2: gettext-0.12.1-gettextize.patch +Patch3: use-acinit-for-libtextstyle.patch +Patch4: gettext-po-mode.diff +Patch5: gettext-initialize_vars.patch +# PATCH-FIX-OPENSUSE gettext-dont-test-gnulib.patch -- coolo@suse.de +Patch6: gettext-dont-test-gnulib.patch +# PATCH-FIX-UPSTREAM boo#941629 -- pth@suse.com +Patch11: boo941629-unnessary-rpath-on-standard-path.patch +# PATCH-FIX-SUSE Bug boo#1106843 +Patch13: reproducible.patch +# PATCH-FEATURE bsc#1165138 +Patch14: 0001-msgcat-Add-feature-to-use-the-newest-po-file.patch +Patch15: 0002-msgcat-Merge-headers-when-use-first.patch + +%description +This package contains the intl library as well as tools that ease the +creation and maintenance of message catalogs. It allows you to extract +strings from source code. The supplied Emacs mode (po-mode.el) helps +editing these catalogs (called PO files, for portable object) and +adding translations. A special compiler turns these PO files into +binary catalogs. + +%package -n gettext-tools%{?with_mini:-mini} +Summary: Tools for Native Language Support (NLS) +License: LGPL-2.1-or-later +Group: Development/Tools/Other +Requires: %{name} = %{version} +Requires: xz +# gettext.sh requires envsubst +Requires: envsubst%{?with_mini:-mini} = %{version} +# autopoint requires find +Requires: findutils +# For non-UTF encodings +Requires: glibc-gconv-modules-extra +%if %{without mini} +Requires(post): info +Requires(preun): info +%endif +Provides: gettext-devel = %{version} +%if %{without mini} +# bug437293 +%ifarch ppc64 +Obsoletes: gettext-devel-64bit +%endif +# +Obsoletes: gettext-devel < %{version} +Conflicts: gettext-runtime-mini +Conflicts: gettext-tools-mini +%else +# to allow a prjconf preference which to take per build +Provides: gettext-tools = %{version} +# Ensure this never finds its way onto a real installation +Requires: this-is-only-for-build-envs +%endif +# Several tools use bison-runtime text domain: +%if 0%{?suse_version} +Recommends: bison-lang +%endif + +%description -n gettext-tools%{?with_mini:-mini} +This package contains the `intl' library as well as tools that ease the +creation and maintenance of message catalogs. With it you can extract +strings from source code. The supplied Emacs mode (po-mode.el) will aid +in editing these catalogs (called PO files, for portable object) and +add translations. A special compiler will turn these PO files into +binary catalogs. + +%package tools-doc +Summary: HTML documentation and examples for gettext-runtime +License: GPL-3.0-or-later AND LGPL-2.0-or-later +Group: Documentation/HTML +BuildArch: noarch + +%description tools-doc +This subpackage contains the HTML version of the gettext documentation +as well as project examples. + +%package -n envsubst%{?with_mini:-mini} +Summary: Environment substitution helper binary +%if %{with mini} +Conflicts: envsubst +Requires: this-is-only-for-build-envs +%endif + +%description -n envsubst%{?with_mini:-mini} +This package contains the envsubst helper binary to replace values from the +environment. + +%if %{without mini} +%package -n libtextstyle0 +Summary: Provides textstyling for console output +License: LGPL-2.1-or-later +Group: Development/Tools/Other + +%description -n libtextstyle0 +GNU libtextstyle provides an easy way to add styling to programs that produce output to a console or terminal emulator window. +It does this in a way that allows the end user to customize the styling using the industry standard, namely Cascading Style Sheets (CSS). + +%package -n libtextstyle-devel +Summary: Devel package for libtextstyle +License: LGPL-2.1-or-later +Group: Development/Tools/Other +Requires: libtextstyle0 = %{version} + +%description -n libtextstyle-devel +This package provides headers and static libraries for libtextstyle +%endif + +%prep +%autosetup -p1 -n %{pacname}-%{version} + +%build +%define _lto_cflags %{nil} +# expect a couple "You should update your `aclocal.m4' by running aclocal." +autoreconf -fiv +export CFLAGS="%{optflags} -pipe -W -Wall -Dgcc_is_lint" +export CXXFLAGS="$CFLAGS -Dgcc_is_lint" +export LDFLAGS="-lm" +%configure --disable-static $OPTS +%if %{with mini} +# Link statically to libtextstyle from libgettextlib.so +export CFLAGS="${CFLAGS} -fPIC" +export CXXFLAGS="${CXXFLAGS} -fPIC" +(cd libtextstyle; %configure --enable-static --disable-shared ${OPTS}) +%endif +make %{?_smp_mflags} GMSGFMT=../src/msgfmt V=1 +# use texinfo.tex supplied by the system (texinfo) +# make -C gettext-tools/doc gettext.pdf + +%install +%define my_docdir %{_defaultdocdir}/%{name} +export LC_CTYPE=ISO-8859-15 +%make_install docdir=%{my_docdir} +cp -pr AUTHORS NEWS README* %{buildroot}/%{my_docdir} +mkdir -p %{buildroot}/usr/share/emacs/site-lisp +install -m 644 %SOURCE2 %{buildroot}/usr/share/emacs/site-lisp +install -m 644 gettext-tools/emacs/po-compat.el %{buildroot}/usr/share/emacs/site-lisp +install -m 644 gettext-tools/emacs/po-mode.el %{buildroot}/usr/share/emacs/site-lisp +install -m 644 gettext-tools/emacs/start-po.el %{buildroot}/usr/share/emacs/site-lisp +#make -C gettext-tools/doc docdir=%%{buildroot}/%%{my_docdir} install-pdf +if [ -e %{buildroot}/%{_libdir}/preloadable_libintl.so ];then + chmod 755 %{buildroot}/%{_libdir}/preloadable_libintl.so +fi +# fix rpmlint invalid-lc-messages-dir: +rm -rf %{buildroot}/%_datadir/locale/en@{bold,}quot +%{find_lang} gettext-tools +%{find_lang} gettext-runtime +#remove unwanted stuff +rm -f %{buildroot}/usr/share/doc/packages/gettext/README.{mingw,vms,woe32} +rm -f %_datadir/%name/gettext.jar +rm -f %{buildroot}/%_libdir/libtextstyle.la +%if %{with mini} + rm -f %{buildroot}/usr/include/textstyle.h + rm -rf %{buildroot}/usr/include/textstyle + rm -rf %{buildroot}/usr/share/doc/packages/gettext-runtime-mini/libtextstyle_*.html + rm -f %{buildroot}/%_libdir/libtextstyle.a + rm -f %{buildroot}/%{_infodir}/libtextstyle.info +%endif +#find %%{buildroot} -maxdepth 2 -name '*html' -delete +# hardlink the dupes in the documentation: +cd %{buildroot}/%{my_docdir}/examples +sh %{SOURCE3} +# moved to gettext-java and gettext-csharp: +rm -rf *csharp* *java* ../javadoc* ../csharpdoc* +rm -f %{buildroot}%{_defaultdocdir}/%name/README.woe32 +rm -f %{buildroot}%{_infodir}/dir +cd %{buildroot}/%{_mandir}/man3 +echo ".so man3/dngettext.3" > dcngettext.3 +echo ".so man3/dgettext.3" > dcgettext.3 + +%if %{without mini} +%check +# s390s fails this test, +# Starting test_recursive_lock ...test-lock: pthread_mutex_lock.c:66: __pthread_mutex_lock: Assertion `mutex->__data.__owner == 0' failed. + +# These fails randomly, remove them from Makefile +sed -i -e 's/test-areadlink\$(EXEEXT) //g' \ + -e 's/test-readlink\$(EXEEXT) //g' \ + gettext-tools/gnulib-tests/Makefile + +make check || { +%ifarch s390x + echo "got this during mbuild testing on s390x (on both times which make check ran):" + echo "Starting test_recursive_lock ...test-lock: pthread_mutex_lock.c:66: __pthread_mutex_lock: Assertion mutex->__data.__owner == 0 failed." + echo "s390x needs kernel/glibc/gcc fix, but let it continue bootstrap for now!" +%else + echo "make check failed, check it!" + exit 5 +%endif +} +%endif + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%post -n gettext-tools%{?with_mini:-mini} +%install_info --info-dir=%{_infodir} %{_infodir}/gettext.info.gz +%install_info --info-dir=%{_infodir} %{_infodir}/autosprintf.info.gz + +%preun -n gettext-tools%{?with_mini:-mini} +%install_info_delete --info-dir=%{_infodir} %{_infodir}/gettext.info.gz +%install_info_delete --info-dir=%{_infodir} %{_infodir}/autosprintf.info.gz + +%if %{without mini} +%post -n libtextstyle0 -p /sbin/ldconfig +%postun -n libtextstyle0 -p /sbin/ldconfig +%endif + +%files -f gettext-runtime.lang +%defattr(-,root,root) +%license COPYING +%dir %_datadir/gettext +%doc %dir %_docdir/%name/ +%doc %_docdir/%name/gettext.1.html +%doc %_docdir/%name/ngettext.1.html +%doc %_docdir/%name/*.3.html +%doc %_docdir/%name/AUTHORS +%doc %_docdir/%name/NEWS +%doc %_docdir/%name/README +%doc %_docdir/%name/FAQ.html +%_bindir/gettext +%_bindir/ngettext +%_bindir/gettext.sh +%_bindir/msgfmt +%_libdir/libgettextlib-*.so +%_libdir/libgettextsrc-*.so +%_libdir/libasprintf.so.* +%doc %_mandir/man1/gettext.1.gz +%doc %_mandir/man1/ngettext.1.gz +%doc %_mandir/man1/msgfmt.1.gz +%doc %_mandir/man3/* +%_datadir/gettext/ABOUT-NLS +%dir %_datadir/emacs +%dir %_datadir/emacs/site-lisp +%_datadir/emacs/site-lisp/po-compat.* +%_datadir/emacs/site-lisp/po-mode.* +%_datadir/emacs/site-lisp/start-po.* +%_datadir/emacs/site-lisp/suse-start-po-mode.el + +%files -n envsubst%{?with_mini:-mini} +%license COPYING +%_bindir/envsubst +%doc %_mandir/man1/envsubst.1.gz +%doc %_docdir/%name/envsubst.1.html + +%files -n gettext-tools%{?with_mini:-mini} -f gettext-tools.lang +%defattr(-,root,root) +%_bindir/msg[a-eg-u]* +%_bindir/msgfilter +%_bindir/xgettext +%_bindir/gettextize +%_bindir/autopoint +%_bindir/recode-sr-latin +%doc %_mandir/man1/msg[a-eg-u]*.1.gz +%doc %_mandir/man1/msgfilter.1.gz +%doc %_mandir/man1/xgettext.1.gz +%doc %_mandir/man1/gettextize.1.gz +%doc %_mandir/man1/autopoint.1.gz +%doc %_mandir/man1/recode-sr-latin.1.gz +%doc %_infodir/gettext.info* +%doc %_infodir/autosprintf.info* +%_includedir/gettext-po.h +%_includedir/autosprintf.h +%_libdir/libasprintf.*a +%_libdir/libasprintf.so +%_libdir/libgettextlib.* +%_libdir/libgettextsrc.* +%_libdir/libgettextpo* +%_libdir/preloadable_libintl.so +%_libdir/gettext +%_datadir/%pacname/config.rpath +%_datadir/%pacname/po +%_datadir/%pacname/projects +%_datadir/%pacname/gettext.h +%_datadir/%pacname/msgunfmt.tcl +%_datadir/%pacname/javaversion.class +%_datadir/%pacname/styles +%_datadir/%pacname/archive.dir.tar.xz +%_datadir/aclocal +%dir %{_datadir}/%{pacname}-%{version} +%{_datadir}/%{pacname}-%{version}/its + +%files tools-doc +%defattr(-,root,root) +%doc %dir %_docdir/%name/ +%doc %_docdir/%name/examples/ +%doc %_docdir/%name/auto*.html +%doc %_docdir/%name/gettext_*.html +%doc %_docdir/%name/gettextize*.html +%doc %_docdir/%name/msg*.html +%doc %_docdir/%name/tutorial*.html +%doc %_docdir/%name/xgettext*.html +%doc %_docdir/%name/recode-sr-latin.1.html + +%if %{without mini} +%files -n libtextstyle0 +%defattr(-,root,root) +%_libdir/libtextstyle.so.* + +%files -n libtextstyle-devel +%defattr(-,root,root) +%dir %_includedir/textstyle +%_includedir/textstyle.h +%_includedir/textstyle/stdbool.h +%_includedir/textstyle/version.h +%_includedir/textstyle/woe32dll.h +%_libdir/libtextstyle.so +%doc %_docdir/gettext-runtime%{?with_mini:-mini}/libtextstyle*.html +%doc %_infodir/libtextstyle.info.gz +%endif + +%changelog diff --git a/pre_checkin.sh b/pre_checkin.sh new file mode 100644 index 0000000..2a87347 --- /dev/null +++ b/pre_checkin.sh @@ -0,0 +1,6 @@ +#!/bin/bash +# This script should be called before checkin. +sed -e 's/%bcond_with mini/%bcond_without mini/' \ + -e '/^Name:/s/$/-mini/' \ + gettext-runtime.spec > gettext-runtime-mini.spec +cp gettext-runtime.changes gettext-runtime-mini.changes diff --git a/reproducible-jar.patch b/reproducible-jar.patch new file mode 100644 index 0000000..cf79981 --- /dev/null +++ b/reproducible-jar.patch @@ -0,0 +1,186 @@ +commit 06bb3d6f86c43c7eb259cb2f0b8522ad87df40f1 +Author: Bruno Haible +Date: Tue Jul 16 23:59:05 2024 +0200 + + java: Create reproducible .jar files if the 'jar' utility supports it. + + Suggested by Bernhard M. Wiedemann in + . + + * build-aux/jar-cf: New file. + * Makefile.am (EXTRA_DIST): Add it. + * gettext-runtime/intl-java/Makefile.am (libintl.jar): Use jar-cf. + * gettext-tools/src/Makefile.am (gettext.jar): Likewise. + +diff --git a/Makefile.am b/Makefile.am +index c3ac6e0e5..4e2ad1128 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -54,7 +54,8 @@ EXTRA_DIST = \ + $(changelog_etc) DEPENDENCIES PACKAGING HACKING JOIN-GNU ChangeLog.0 \ + autogen.sh \ + check-copyright-headers \ +- build-aux/ac-help.sed build-aux/git-version-gen build-aux/texi2html \ ++ build-aux/ac-help.sed build-aux/git-version-gen build-aux/jar-cf \ ++ build-aux/texi2html \ + m4/fixautomake.m4 m4/woe32-dll.m4 \ + m4/libtool.m4 + +diff --git a/build-aux/jar-cf b/build-aux/jar-cf +new file mode 100755 +index 000000000..f42578c02 +--- /dev/null ++++ b/build-aux/jar-cf +@@ -0,0 +1,112 @@ ++#!/bin/sh ++# Creating a Java archive (.jar). ++ ++# Copyright (C) 2024 Free Software Foundation, Inc. ++# ++# This file is free software: you can redistribute it and/or modify ++# it under the terms of the GNU General Public License as published ++# by the Free Software Foundation, either version 3 of the License, ++# or (at your option) any later version. ++# ++# This file is distributed in the hope that it will be useful, ++# but WITHOUT ANY WARRANTY; without even the implied warranty of ++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++# GNU General Public License for more details. ++# ++# You should have received a copy of the GNU General Public License ++# along with this program. If not, see . ++ ++# Written by Bruno Haible , 2024. ++ ++# func_usage ++# outputs to stdout the --help usage message. ++func_usage () ++{ ++ echo "\ ++Usage: jar-cf [OPTION]... JAR_PROGRAM TOP_SRCDIR DESTINATION.jar ELEMENT... ++ ++Invokes the JAR_PROGRAM, to create DESTINATION.jar with the ELEMENTs as ++contents. ++ ++Options: ++ --help print this help and exit ++ --version print version information and exit ++ ++Send patches and bug reports to ." ++} ++ ++# func_version ++# outputs to stdout the --version message. ++func_version () ++{ ++ echo "jar-cf (GNU gettext)" ++ echo "Copyright (C) 2024 Free Software Foundation, Inc. ++License GPLv3+: GNU GPL version 3 or later ++This is free software: you are free to change and redistribute it. ++There is NO WARRANTY, to the extent permitted by law." ++ echo ++ printf 'Written by %s.\n' "Bruno Haible" ++} ++ ++# func_fatal_error message ++# outputs to stderr a fatal error message, and terminates the program. ++func_fatal_error () ++{ ++ echo "jar-cf: *** $1" 1>&2 ++ echo "jar-cf: *** Stop." 1>&2 ++ exit 1 ++} ++ ++# Outputs a command and runs it. ++func_verbose () ++{ ++ # Make it easy to copy&paste the printed command into a shell in most cases, ++ # by escaping '\\', '"', and '$'. This is not perfect, just good enough. ++ echo "$@" | sed -e 's/\([\\"$]\)/\\\1/g' ++ "$@" ++} ++ ++# Command-line option processing. ++while test $# -gt 0; do ++ case "$1" in ++ --help | --hel | --he | --h ) ++ func_usage ++ exit 0 ;; ++ --version | --versio | --versi | --vers | --ver | --ve | --v ) ++ func_version ++ exit 0 ;; ++ -- ) # Stop option processing ++ shift; break ;; ++ -* ) ++ func_fatal_error "unrecognized option: $1" ++ ;; ++ * ) ++ break ;; ++ esac ++done ++ ++if test $# -lt 2; then ++ func_fatal_error "too few arguments" ++fi ++ ++jar_program="$1" ++top_srcdir="$2" ++shift ++shift ++ ++if $jar_program --help 2>&1 | grep '\-\-date=' >/dev/null; then ++ # The JAR_PROGRAM supports the --date option. Its effect is to set the given ++ # date as time stamp on all the ELEMENTs and also the META-INF/MANIFEST.MF. ++ # Use it, for reproducibility (cf. ). ++ if test -d "$top_srcdir/.git"; then ++ # We are in a git checkout. Use the date of the latest commit. ++ date=`git log -n 1 --date=iso --format=fuller | sed -n -e 's/^CommitDate: //p' | sed -e 's/ /T/' -e 's/ \(...\)\(..\)$/\1:\2/'` ++ else ++ # We are building from a tarball. ++ # Use the date of the first entry of the ChangeLog file. ++ date=`sed -n -e 's/^\([0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]\).*/\1/p' -e 1q "$top_srcdir/ChangeLog"`'T00:00:00+00:00' ++ fi ++ func_verbose $jar_program --date="$date" -c -f "$@" ++else ++ func_verbose $jar_program cf "$@" ++fi +diff --git a/gettext-runtime/intl-java/Makefile.am b/gettext-runtime/intl-java/Makefile.am +index a8c5290e9..4444f6e6c 100644 +--- a/gettext-runtime/intl-java/Makefile.am ++++ b/gettext-runtime/intl-java/Makefile.am +@@ -1,5 +1,5 @@ + ## Makefile for the gettext-runtime/intl-java subdirectory of GNU gettext +-## Copyright (C) 2001-2003, 2006-2007, 2013 Free Software Foundation, Inc. ++## Copyright (C) 2001-2024 Free Software Foundation, Inc. + ## + ## This program is free software: you can redistribute it and/or modify + ## it under the terms of the GNU General Public License as published by +@@ -45,7 +45,7 @@ gnu/gettext/GettextResource.class: $(srcdir)/gnu/gettext/GettextResource.java + $(JAVACOMP) -d . $(srcdir)/gnu/gettext/GettextResource.java + + libintl.jar: gnu/gettext/GettextResource.class +- $(JAR) cf $@ gnu/gettext/GettextResource*.class ++ $(top_srcdir)/../build-aux/jar-cf '$(JAR)' '$(top_srcdir)/..' $@ gnu/gettext/GettextResource*.class + + EXTRA_DIST += gnu/gettext/GettextResource.java + +diff --git a/gettext-tools/src/Makefile.am b/gettext-tools/src/Makefile.am +index d95b08ed6..0316ca287 100644 +--- a/gettext-tools/src/Makefile.am ++++ b/gettext-tools/src/Makefile.am +@@ -1,5 +1,5 @@ + ## Makefile for the gettext-tools/src subdirectory of GNU gettext +-## Copyright (C) 1995-1998, 2000-2023 Free Software Foundation, Inc. ++## Copyright (C) 1995-2024 Free Software Foundation, Inc. + ## + ## This program is free software: you can redistribute it and/or modify + ## it under the terms of the GNU General Public License as published by +@@ -655,7 +655,7 @@ gnu/gettext/GetURL.class: $(srcdir)/gnu/gettext/GetURL.java + $(JAVACOMP) -d . $(srcdir)/gnu/gettext/GetURL.java + + gettext.jar: gnu/gettext/DumpResource.class gnu/gettext/GetURL.class +- $(JAR) cf $@ gnu/gettext/DumpResource*.class gnu/gettext/GetURL*.class ++ $(top_srcdir)/../build-aux/jar-cf '$(JAR)' '$(top_srcdir)/..' $@ gnu/gettext/DumpResource*.class gnu/gettext/GetURL*.class + + EXTRA_DIST += gnu/gettext/DumpResource.java gnu/gettext/GetURL.java + diff --git a/reproducible.patch b/reproducible.patch new file mode 100644 index 0000000..e94f64c --- /dev/null +++ b/reproducible.patch @@ -0,0 +1,50 @@ +merged upstream + + +Index: gettext-0.19.8.1/gettext-tools/src/xgettext.c +=================================================================== +--- gettext-0.19.8.1.orig/gettext-tools/src/xgettext.c ++++ gettext-0.19.8.1/gettext-tools/src/xgettext.c +@@ -3714,6 +3714,9 @@ construct_header () + char *msgstr; + char *comment; + static lex_pos_ty pos = { __FILE__, __LINE__ }; ++ char *source_date_epoch; ++ unsigned long long epoch; ++ char *endptr; + + if (package_name != NULL) + { +@@ -3734,7 +3738,31 @@ the MSGID_BUGS_ADDRESS variable there; o + specify an --msgid-bugs-address command line option.\n\ + "))); + +- time (&now); ++ source_date_epoch = getenv("SOURCE_DATE_EPOCH"); ++ if (source_date_epoch) { ++ errno = 0; ++ epoch = strtoull(source_date_epoch, &endptr, 10); ++ if ((errno == ERANGE && (epoch == ULLONG_MAX || epoch == 0)) ++ || (errno != 0 && epoch == 0)) { ++ fprintf(stderr, "Environment variable $SOURCE_DATE_EPOCH: strtoull: %s\n", strerror(errno)); ++ exit(EXIT_FAILURE); ++ } ++ if (endptr == source_date_epoch) { ++ fprintf(stderr, "Environment variable $SOURCE_DATE_EPOCH: No digits were found: %s\n", endptr); ++ exit(EXIT_FAILURE); ++ } ++ if (*endptr != '\0') { ++ fprintf(stderr, "Environment variable $SOURCE_DATE_EPOCH: Trailing garbage: %s\n", endptr); ++ exit(EXIT_FAILURE); ++ } ++ if (epoch > ULONG_MAX) { ++ fprintf(stderr, "Environment variable $SOURCE_DATE_EPOCH: value must be smaller than or equal to %lu but was found to be: %llu \n", ULONG_MAX, epoch); ++ exit(EXIT_FAILURE); ++ } ++ now = epoch; ++ } else { ++ now = time(NULL); ++ } + timestring = po_strftime (&now); + + msgstr = xasprintf ("\ diff --git a/suse-start-po-mode.el b/suse-start-po-mode.el new file mode 100644 index 0000000..99c4ae3 --- /dev/null +++ b/suse-start-po-mode.el @@ -0,0 +1,23 @@ +;; /usr/share/emacs/site-lisp/suse-start-po-mode.el + +(autoload 'po-mode "po-mode" + "Major mode for translators when they edit PO files. + +Special commands: +\\{po-mode-map} +Turning on PO mode calls the value of the variable 'po-mode-hook', +if that value is non-nil. Behaviour may be adjusted through some variables, +all reachable through 'M-x customize', in group 'Emacs.Editing.I18n.Po'." t) +(setq auto-mode-alist (cons '("\\.po[tx]?\\'" . po-mode) + auto-mode-alist)) + +;; To automatically use proper fonts under Emacs 20, also add: + +(unless (fboundp 'po-find-file-coding-system) + (autoload 'po-find-file-coding-system "po-compat" "\ +Return a Mule (DECODING . ENCODING) pair, according to PO file charset. +Called through file-coding-system-alist, before the file is visited for real.")) +(modify-coding-system-alist 'file "\\.po[tx]?\\'" + 'po-find-file-coding-system) + +;; /usr/share/emacs/site-lisp/suse-start-po-mode.el ends here diff --git a/use-acinit-for-libtextstyle.patch b/use-acinit-for-libtextstyle.patch new file mode 100644 index 0000000..39de6b0 --- /dev/null +++ b/use-acinit-for-libtextstyle.patch @@ -0,0 +1,18 @@ +Index: gettext-0.21.1/libtextstyle/configure.ac +=================================================================== +--- gettext-0.21.1.orig/libtextstyle/configure.ac ++++ gettext-0.21.1/libtextstyle/configure.ac +@@ -17,11 +17,10 @@ dnl along with this program. If not, se + dnl Process this file with autoconf to produce a configure script. + + AC_PREREQ([2.64]) +-AC_INIT ++AC_INIT([libtextstyle], ++ m4_esyscmd([source ./version.sh; echo $VERSION_NUMBER | tr -d '\n'])) + AC_CONFIG_SRCDIR([version.sh]) + AC_CONFIG_AUX_DIR([build-aux]) +-. $srcdir/version.sh +-gl_INIT_PACKAGE([libtextstyle], [$VERSION_NUMBER]) + AM_INIT_AUTOMAKE([1.13 silent-rules]) + AC_CONFIG_HEADERS([config.h]) +