2007-11-23 00:56:17 +01:00
|
|
|
#
|
2011-10-01 04:58:52 +02:00
|
|
|
# spec file for package gettext-java
|
2007-11-23 00:56:17 +01:00
|
|
|
#
|
2024-02-26 11:55:03 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2007-11-23 00:56:17 +01:00
|
|
|
#
|
2008-10-13 16:22:50 +02:00
|
|
|
# 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.
|
|
|
|
|
2019-08-27 13:42:29 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-11-23 00:56:17 +01:00
|
|
|
#
|
|
|
|
|
2008-04-10 13:16:55 +02:00
|
|
|
|
2007-11-23 00:56:17 +01:00
|
|
|
Name: gettext-java
|
2024-02-26 11:55:03 +01:00
|
|
|
Version: 0.22.4
|
2012-07-02 13:04:44 +02:00
|
|
|
Release: 0
|
2007-11-23 00:56:17 +01:00
|
|
|
Summary: Java Support for Native Language Support (NLS)
|
2018-05-16 08:56:01 +02:00
|
|
|
License: LGPL-2.1-or-later
|
2012-07-02 13:04:44 +02:00
|
|
|
Group: Development/Tools/Other
|
2021-01-22 23:07:21 +01:00
|
|
|
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
|
2007-11-23 00:56:17 +01:00
|
|
|
Source2: suse-start-po-mode.el
|
|
|
|
Source3: gettext-linkdupes.sh
|
2021-01-22 23:07:21 +01:00
|
|
|
Source4: gettext-rpmlintrc
|
2022-10-24 10:42:57 +02:00
|
|
|
Source5: gettext-runtime.keyring
|
2017-10-04 11:39:01 +02:00
|
|
|
Patch0: gettext-0.12.1-sigfpe.patch
|
2021-01-24 11:15:40 +01:00
|
|
|
Patch1: gettext-0.19.3-fix-bashisms.patch
|
2007-11-23 00:56:17 +01:00
|
|
|
Patch2: gettext-0.12.1-gettextize.patch
|
2021-01-24 11:15:40 +01:00
|
|
|
Patch3: use-acinit-for-libtextstyle.patch
|
2012-09-24 17:29:07 +02:00
|
|
|
Patch4: gettext-po-mode.diff
|
2007-11-23 00:56:17 +01:00
|
|
|
Patch5: gettext-initialize_vars.patch
|
2021-01-24 11:15:40 +01:00
|
|
|
# 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
|
2024-02-26 11:55:03 +01:00
|
|
|
BuildRequires: automake >= 1.14
|
2017-10-04 11:39:01 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: glib2-devel
|
2022-04-19 14:11:23 +02:00
|
|
|
BuildRequires: java-devel >= 1.8
|
Accepting request 712409 from home:cvoegl:branches:Base:System
- 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)
- 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)
- 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)
- 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)
OBS-URL: https://build.opensuse.org/request/show/712409
OBS-URL: https://build.opensuse.org/package/show/Base:System/gettext-runtime?expand=0&rev=153
2019-07-08 14:13:35 +02:00
|
|
|
BuildRequires: libtextstyle-devel
|
2017-10-04 11:39:01 +02:00
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
BuildRequires: perl-libintl-perl
|
|
|
|
BuildRequires: tcl
|
2018-04-26 17:31:12 +02:00
|
|
|
|
|
|
|
%if 0%{?fedora_version} || 0%{?centos_version} <= 600 || 0%{?scilin_version} <= 600 || 0%{?rhel_version} <= 600
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%endif
|
2007-11-23 00:56:17 +01:00
|
|
|
|
|
|
|
%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
|
|
|
|
%setup -q -n gettext-%{version}
|
2017-10-04 11:39:01 +02:00
|
|
|
%patch0
|
2021-01-24 11:15:40 +01:00
|
|
|
%patch1 -p1
|
2007-11-23 00:56:17 +01:00
|
|
|
%patch2
|
2021-01-24 11:15:40 +01:00
|
|
|
%patch3 -p1
|
2007-11-23 00:56:17 +01:00
|
|
|
%patch4
|
|
|
|
%patch5
|
2021-01-24 11:15:40 +01:00
|
|
|
%patch6 -p1
|
|
|
|
%patch11 -p1
|
|
|
|
%patch13 -p1
|
|
|
|
%patch14 -p1
|
|
|
|
%patch15 -p1
|
2007-11-23 00:56:17 +01:00
|
|
|
|
|
|
|
%build
|
2014-06-05 07:15:03 +02:00
|
|
|
# expect a couple "You should update your `aclocal.m4' by running aclocal."
|
2017-10-04 11:39:01 +02:00
|
|
|
autoreconf -fiv
|
Accepting request 712409 from home:cvoegl:branches:Base:System
- 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)
- 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)
- 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)
- 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)
OBS-URL: https://build.opensuse.org/request/show/712409
OBS-URL: https://build.opensuse.org/package/show/Base:System/gettext-runtime?expand=0&rev=153
2019-07-08 14:13:35 +02:00
|
|
|
export CFLAGS="%{optflags} -pipe -W -Wall -Dgcc_is_lint -lm"
|
2010-12-21 13:54:03 +01:00
|
|
|
export CXXFLAGS="%{optflags} -pipe -W -Wall -Dgcc_is_lint"
|
Accepting request 712409 from home:cvoegl:branches:Base:System
- 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)
- 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)
- 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)
- 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)
OBS-URL: https://build.opensuse.org/request/show/712409
OBS-URL: https://build.opensuse.org/package/show/Base:System/gettext-runtime?expand=0&rev=153
2019-07-08 14:13:35 +02:00
|
|
|
%configure --enable-shared --enable-java
|
2012-09-24 17:29:07 +02:00
|
|
|
make GMSGFMT=../src/msgfmt %{?_smp_mflags} V=1
|
2007-11-23 00:56:17 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
export LC_CTYPE=ISO-8859-15
|
2010-12-21 13:54:03 +01:00
|
|
|
make -C gettext-tools/gnulib-lib install DESTDIR=%{buildroot}
|
|
|
|
make -C gettext-tools/src install DESTDIR=%{buildroot}
|
2007-11-23 00:56:17 +01:00
|
|
|
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 ..
|
2019-08-27 13:42:29 +02:00
|
|
|
find -type f -size 0 -delete
|
2017-10-04 11:39:01 +02:00
|
|
|
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 <<EOF > %{buildroot}%{_libdir}/gettext/$i
|
|
|
|
#!/bin/sh
|
|
|
|
exec java -cp %{_libdir}/gettext/gettext.jar $i \${1+\$@}
|
|
|
|
EOF
|
|
|
|
chmod +x %{buildroot}%{_libdir}/gettext/$i
|
|
|
|
done
|
2010-12-21 13:54:03 +01:00
|
|
|
rm -rf %{buildroot}/%{_datadir}/*
|
|
|
|
mkdir -p %{buildroot}/%{_defaultdocdir}/%{name}
|
|
|
|
cp -av * %{buildroot}/%{_defaultdocdir}/%{name}
|
2007-11-23 00:56:17 +01:00
|
|
|
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 <<END
|
|
|
|
######################################################
|
|
|
|
######################################################
|
|
|
|
## Updated gettext-linkdupes.sh in $PWD ##
|
|
|
|
######################################################
|
|
|
|
######################################################
|
|
|
|
END
|
|
|
|
}
|
2017-10-04 11:39:01 +02:00
|
|
|
ls -l %{buildroot}/%{_datadir}
|
2009-07-29 17:31:31 +02:00
|
|
|
# exclude files packaged via other spec files
|
2017-10-04 11:39:01 +02:00
|
|
|
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
|
2007-11-23 00:56:17 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%{_defaultdocdir}/%{name}
|
2017-10-04 11:39:01 +02:00
|
|
|
%{_libdir}/gettext/gettext.jar
|
|
|
|
%{_libdir}/gettext/gnu.gettext.DumpResource
|
|
|
|
%{_libdir}/gettext/gnu.gettext.GetURL
|
2007-11-23 00:56:17 +01:00
|
|
|
|
|
|
|
%changelog
|