forked from pool/gettext-runtime
- 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 */ OBS-URL: https://build.opensuse.org/package/show/Base:System/gettext-runtime?expand=0&rev=17
This commit is contained in:
parent
07e1132737
commit
e89495bb4e
@ -1,6 +1,8 @@
|
||||
--- gettext-tools/misc/gettextize.in
|
||||
+++ gettext-tools/misc/gettextize.in
|
||||
@@ -1070,20 +1070,6 @@
|
||||
Index: gettext-tools/misc/gettextize.in
|
||||
===================================================================
|
||||
--- gettext-tools/misc/gettextize.in.orig 2010-06-06 14:49:57.000000000 +0200
|
||||
+++ 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 <libintl.h> that implements the configure --disable-nls"
|
||||
echo "option."
|
||||
echo
|
||||
|
@ -1,6 +1,8 @@
|
||||
--- gettext-runtime/intl/dcigettext.c
|
||||
+++ gettext-runtime/intl/dcigettext.c 2002/08/08 10:27:59
|
||||
@@ -63,20 +63,7 @@
|
||||
Index: gettext-runtime/intl/dcigettext.c
|
||||
===================================================================
|
||||
--- gettext-runtime/intl/dcigettext.c.orig 2010-06-06 14:49:57.000000000 +0200
|
||||
+++ gettext-runtime/intl/dcigettext.c 2010-12-20 18:47:11.543133542 +0100
|
||||
@@ -68,20 +68,7 @@ extern int errno;
|
||||
#endif
|
||||
|
||||
#include <locale.h>
|
||||
@ -22,9 +24,11 @@
|
||||
|
||||
#if defined HAVE_SYS_PARAM_H || defined _LIBC
|
||||
# include <sys/param.h>
|
||||
--- gettext-runtime/intl/eval-plural.h
|
||||
+++ gettext-runtime/intl/eval-plural.h 2002/08/08 10:27:59
|
||||
@@ -68,16 +68,12 @@
|
||||
Index: gettext-runtime/intl/eval-plural.h
|
||||
===================================================================
|
||||
--- gettext-runtime/intl/eval-plural.h.orig 2010-06-06 14:49:57.000000000 +0200
|
||||
+++ 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:
|
||||
|
@ -1,6 +1,8 @@
|
||||
--- gettext-0.16/gettext-tools/doc/Makefile.am
|
||||
+++ gettext-0.16/gettext-tools/doc/Makefile.am
|
||||
@@ -40,6 +40,7 @@
|
||||
Index: gettext-tools/doc/Makefile.am
|
||||
===================================================================
|
||||
--- gettext-tools/doc/Makefile.am.orig 2010-06-06 14:49:57.000000000 +0200
|
||||
+++ gettext-tools/doc/Makefile.am 2010-12-20 18:47:12.009132367 +0100
|
||||
@@ -42,6 +42,7 @@ gettext_TEXINFOS = \
|
||||
$(top_srcdir)/../gettext-runtime/doc/rt-ngettext.texi \
|
||||
$(top_srcdir)/../gettext-runtime/doc/rt-envsubst.texi
|
||||
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b6c2240e9f00fc75c3202a9abe6e1dde86f46da656d2afbfa64efbd9379d4bd9
|
||||
size 8236593
|
3
gettext-0.18.1.1.tar.bz2
Normal file
3
gettext-0.18.1.1.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5a2a36ebf0e7406c55827b3e1660dba0315744ac05a33cf7920b999413e08db9
|
||||
size 11940931
|
@ -1,6 +1,8 @@
|
||||
--- gettext-runtime/configure.ac
|
||||
+++ gettext-runtime/configure.ac
|
||||
@@ -30,6 +30,7 @@
|
||||
Index: gettext-runtime/configure.ac
|
||||
===================================================================
|
||||
--- gettext-runtime/configure.ac.orig 2010-06-06 14:49:57.000000000 +0200
|
||||
+++ gettext-runtime/configure.ac 2010-12-20 18:47:12.027132323 +0100
|
||||
@@ -30,6 +30,7 @@ test "$docdir" != '${datarootdir}/doc/${
|
||||
|
||||
dnl Checks for programs.
|
||||
AC_PROG_CC
|
||||
|
@ -1,5 +1,7 @@
|
||||
--- gettext-runtime/intl/eval-plural.h
|
||||
+++ gettext-runtime/intl/eval-plural.h
|
||||
Index: gettext-runtime/intl/eval-plural.h
|
||||
===================================================================
|
||||
--- gettext-runtime/intl/eval-plural.h.orig 2010-12-20 18:47:11.544133539 +0100
|
||||
+++ gettext-runtime/intl/eval-plural.h 2010-12-20 18:47:11.952132512 +0100
|
||||
@@ -16,6 +16,8 @@
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
||||
USA. */
|
||||
@ -9,6 +11,3 @@
|
||||
#ifndef STATIC
|
||||
#define STATIC static
|
||||
#endif
|
||||
/* -------------------------- gl_list_t Data Type -------------------------- */
|
||||
|
||||
static gl_list_t
|
||||
|
@ -1,3 +1,103 @@
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package gettext-csharp (Version 0.17)
|
||||
# spec file for package gettext-csharp (Version 0.18.1.1)
|
||||
#
|
||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
@ -25,8 +25,8 @@ Url: http://www.gnu.org/software/gettext/
|
||||
License: LGPLv2.1+
|
||||
Group: Development/Tools/Other
|
||||
AutoReqProv: on
|
||||
Version: 0.17
|
||||
Release: 101
|
||||
Version: 0.18.1.1
|
||||
Release: 1
|
||||
Summary: Native Language Support (NLS) for C#
|
||||
PreReq: %{install_info_prereq}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
@ -41,11 +41,7 @@ Patch4: po-mode.diff
|
||||
Patch5: gettext-initialize_vars.patch
|
||||
Patch6: gettext-0.15-docdir.diff
|
||||
Patch7: gettext-autotools.patch
|
||||
Patch8: gettext-gl_AC_TYPE_LONG_LONG.patch
|
||||
Patch9: gettext-needlessly_init_vars.patch
|
||||
Patch10: gettext-open_missing_mode.patch
|
||||
Patch11: gettext-typo_to_segfault.patch
|
||||
Patch12: gettext-0.17-no-autoconf-tests.diff
|
||||
|
||||
%description
|
||||
Mono with its 'resgen' program uses a design that Microsoft created and
|
||||
@ -81,36 +77,23 @@ Authors:
|
||||
%patch3
|
||||
%patch4
|
||||
%patch5
|
||||
%patch6 -p1
|
||||
%patch6
|
||||
%patch7
|
||||
%patch8
|
||||
%patch9
|
||||
%patch10
|
||||
%patch11
|
||||
%patch12
|
||||
# fix build with new autoconf
|
||||
# see comments in the file and
|
||||
# http://www.mail-archive.com/bug-gnulib@gnu.org/msg12384.html
|
||||
rm -f gettext-tools/gnulib-m4/openmp.m4
|
||||
pushd gettext-tools/misc
|
||||
tar xfz archive.tar.gz
|
||||
find . -name gettext.m4,v -print0 | xargs -0 perl -spi -e 's/\(int\) /\(long\) /g'
|
||||
tar cfz archive.tar.gz archive/
|
||||
popd
|
||||
autoreconf -fiv
|
||||
|
||||
%build
|
||||
export CFLAGS="$RPM_OPT_FLAGS -pipe -W -Wall -Dgcc_is_lint"
|
||||
export CXXFLAGS="$RPM_OPT_FLAGS -pipe -W -Wall -Dgcc_is_lint"
|
||||
export CFLAGS="%{optflags} -pipe -W -Wall -Dgcc_is_lint"
|
||||
export CXXFLAGS="%{optflags} -pipe -W -Wall -Dgcc_is_lint"
|
||||
autoreconf -fiv
|
||||
%configure --enable-shared --enable-csharp
|
||||
make GMSGFMT=../src/msgfmt
|
||||
|
||||
%install
|
||||
export LC_CTYPE=ISO-8859-15
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
make install DESTDIR=%{buildroot}
|
||||
mkdir examples
|
||||
mv $RPM_BUILD_ROOT/%{_datadir}/doc/gettext/examples/*csharp* examples
|
||||
mv $RPM_BUILD_ROOT/%{_datadir}/doc/gettext/csharpdoc csharpdoc
|
||||
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
|
||||
@ -122,22 +105,22 @@ fdupes -r *|while read dupe; do
|
||||
fi
|
||||
done
|
||||
cd ..
|
||||
rm -rf $RPM_BUILD_ROOT/%{_datadir}/*
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}
|
||||
mv examples $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}
|
||||
mv csharpdoc $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}
|
||||
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 $RPM_BUILD_ROOT/%_bindir
|
||||
rm -f $RPM_BUILD_ROOT/%_libdir/lib*
|
||||
rm -f $RPM_BUILD_ROOT/%_libdir/gettext/hostname
|
||||
rm -f $RPM_BUILD_ROOT/%_libdir/gettext/project-id
|
||||
rm -f $RPM_BUILD_ROOT/%_libdir/gettext/urlget
|
||||
rm -f $RPM_BUILD_ROOT/%_libdir/gettext/user-email
|
||||
rm -Rf $RPM_BUILD_ROOT/%_includedir
|
||||
rm -f $RPM_BUILD_ROOT/%_libdir/preloadable_libintl.so
|
||||
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 -Rf %{buildroot}/%_includedir
|
||||
rm -f %{buildroot}/%_libdir/preloadable_libintl.so
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
|
@ -1,11 +0,0 @@
|
||||
--- gettext-runtime/libasprintf/configure.ac
|
||||
+++ gettext-runtime/libasprintf/configure.ac
|
||||
@@ -54,7 +54,7 @@
|
||||
dnl Checks for typedefs, structures, and compiler characteristics.
|
||||
AC_C_INLINE
|
||||
AC_TYPE_SIZE_T
|
||||
-gl_AC_TYPE_LONG_LONG
|
||||
+AC_TYPE_LONG_LONG_INT
|
||||
gt_TYPE_LONGDOUBLE
|
||||
gt_TYPE_WCHAR_T
|
||||
gt_TYPE_WINT_T
|
@ -1,6 +1,8 @@
|
||||
--- gettext-tools/gnulib-lib/gl_anylinked_list2.h
|
||||
+++ gettext-tools/gnulib-lib/gl_anylinked_list2.h
|
||||
@@ -35,6 +35,12 @@
|
||||
Index: gettext-tools/gnulib-lib/gl_anylinked_list2.h
|
||||
===================================================================
|
||||
--- gettext-tools/gnulib-lib/gl_anylinked_list2.h.orig 2010-05-24 11:42:37.000000000 +0200
|
||||
+++ gettext-tools/gnulib-lib/gl_anylinked_list2.h 2010-12-20 18:47:11.981132438 +0100
|
||||
@@ -34,6 +34,12 @@
|
||||
# define ASYNCSAFE(type)
|
||||
#endif
|
||||
|
||||
|
@ -1,3 +1,103 @@
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package gettext-java (Version 0.17)
|
||||
# spec file for package gettext-java (Version 0.18.1.1)
|
||||
#
|
||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
@ -24,8 +24,8 @@ Url: http://www.gnu.org/software/gettext/
|
||||
License: LGPLv2.1+
|
||||
Group: Development/Tools/Other
|
||||
AutoReqProv: on
|
||||
Version: 0.17
|
||||
Release: 113
|
||||
Version: 0.18.1.1
|
||||
Release: 1
|
||||
Summary: Java Support for Native Language Support (NLS)
|
||||
PreReq: %{install_info_prereq}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
@ -40,11 +40,7 @@ Patch4: po-mode.diff
|
||||
Patch5: gettext-initialize_vars.patch
|
||||
Patch6: gettext-0.15-docdir.diff
|
||||
Patch7: gettext-autotools.patch
|
||||
Patch8: gettext-gl_AC_TYPE_LONG_LONG.patch
|
||||
Patch9: gettext-needlessly_init_vars.patch
|
||||
Patch10: gettext-open_missing_mode.patch
|
||||
Patch11: gettext-typo_to_segfault.patch
|
||||
Patch12: gettext-0.17-no-autoconf-tests.diff
|
||||
|
||||
%description
|
||||
This package includes the tools needed to support message catalogs in
|
||||
@ -58,34 +54,21 @@ java+swing.
|
||||
%patch3
|
||||
%patch4
|
||||
%patch5
|
||||
%patch6 -p1
|
||||
%patch6
|
||||
%patch7
|
||||
%patch8
|
||||
%patch9
|
||||
%patch10
|
||||
%patch11
|
||||
%patch12
|
||||
# fix build with new autoconf
|
||||
# see comments in the file and
|
||||
# http://www.mail-archive.com/bug-gnulib@gnu.org/msg12384.html
|
||||
rm -f gettext-tools/gnulib-m4/openmp.m4
|
||||
pushd gettext-tools/misc
|
||||
tar xfz archive.tar.gz
|
||||
find . -name gettext.m4,v -print0 | xargs -0 perl -spi -e 's/\(int\) /\(long\) /g'
|
||||
tar cfz archive.tar.gz archive/
|
||||
popd
|
||||
autoreconf -fiv
|
||||
|
||||
%build
|
||||
export CFLAGS="$RPM_OPT_FLAGS -pipe -W -Wall -Dgcc_is_lint"
|
||||
export CXXFLAGS="$RPM_OPT_FLAGS -pipe -W -Wall -Dgcc_is_lint"
|
||||
export CFLAGS="%{optflags} -pipe -W -Wall -Dgcc_is_lint"
|
||||
export CXXFLAGS="%{optflags} -pipe -W -Wall -Dgcc_is_lint"
|
||||
autoreconf -fiv
|
||||
%configure --enable-shared
|
||||
make GMSGFMT=../src/msgfmt
|
||||
|
||||
%install
|
||||
export LC_CTYPE=ISO-8859-15
|
||||
make -C gettext-tools/gnulib-lib install DESTDIR=$RPM_BUILD_ROOT
|
||||
make -C gettext-tools/src install DESTDIR=$RPM_BUILD_ROOT
|
||||
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
|
||||
@ -102,9 +85,9 @@ fdupes -r *|while read dupe; do
|
||||
done
|
||||
cd ..
|
||||
find -size 0 -print0 | xargs -0 --no-run-if-empty rm
|
||||
rm -rf $RPM_BUILD_ROOT/%{_datadir}/*
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}
|
||||
cp -av * $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}
|
||||
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
|
||||
@ -125,17 +108,17 @@ diff %{SOURCE3} . || {
|
||||
######################################################
|
||||
END
|
||||
}
|
||||
ls -l $RPM_BUILD_ROOT/%_datadir
|
||||
ls -l %{buildroot}/%_datadir
|
||||
# exclude files packaged via other spec files
|
||||
rm -rf $RPM_BUILD_ROOT/%_prefix/bin
|
||||
rm -f $RPM_BUILD_ROOT/%_libdir/lib*
|
||||
rm -f $RPM_BUILD_ROOT/%_libdir/gettext/hostname
|
||||
rm -f $RPM_BUILD_ROOT/%_libdir/gettext/project-id
|
||||
rm -f $RPM_BUILD_ROOT/%_libdir/gettext/urlget
|
||||
rm -f $RPM_BUILD_ROOT/%_libdir/gettext/user-email
|
||||
rm -rf %{buildroot}/%_prefix/bin
|
||||
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
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
|
@ -1,6 +1,8 @@
|
||||
--- gettext-tools/gnulib-lib/gl_array_list.c
|
||||
+++ gettext-tools/gnulib-lib/gl_array_list.c
|
||||
@@ -421,7 +421,7 @@
|
||||
Index: gettext-tools/gnulib-lib/gl_array_list.c
|
||||
===================================================================
|
||||
--- gettext-tools/gnulib-lib/gl_array_list.c.orig 2010-12-20 18:47:23.871101502 +0100
|
||||
+++ gettext-tools/gnulib-lib/gl_array_list.c 2010-12-20 18:47:37.666063318 +0100
|
||||
@@ -454,7 +454,7 @@ gl_array_iterator (gl_list_t list)
|
||||
result.count = list->count;
|
||||
result.p = list->elements + 0;
|
||||
result.q = list->elements + list->count;
|
||||
@ -9,7 +11,7 @@
|
||||
result.i = 0;
|
||||
result.j = 0;
|
||||
#endif
|
||||
@@ -442,7 +442,7 @@
|
||||
@@ -475,7 +475,7 @@ gl_array_iterator_from_to (gl_list_t lis
|
||||
result.count = list->count;
|
||||
result.p = list->elements + start_index;
|
||||
result.q = list->elements + end_index;
|
||||
|
@ -1,40 +0,0 @@
|
||||
2007-11-07 Jim Meyering <meyering@redhat.com>
|
||||
Bruno Haible <bruno@clisp.org>
|
||||
|
||||
* write-catalog.c (msgdomain_list_print): Fix open() call.
|
||||
|
||||
*** gettext-tools/src/write-catalog.c.bak 2007-10-07 21:37:39.000000000 +0200
|
||||
--- gettext-tools/src/write-catalog.c 2007-11-07 12:39:29.000000000 +0100
|
||||
***************
|
||||
*** 1,5 ****
|
||||
/* GNU gettext - internationalization aids
|
||||
! Copyright (C) 1995-1998, 2000-2006 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
|
||||
--- 1,5 ----
|
||||
/* GNU gettext - internationalization aids
|
||||
! Copyright (C) 1995-1998, 2000-2007 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
|
||||
***************
|
||||
*** 220,226 ****
|
||||
/* Open the output file. */
|
||||
if (!to_stdout)
|
||||
{
|
||||
! fd = open (filename, O_WRONLY | O_CREAT);
|
||||
if (fd < 0)
|
||||
{
|
||||
const char *errno_description = strerror (errno);
|
||||
--- 220,228 ----
|
||||
/* Open the output file. */
|
||||
if (!to_stdout)
|
||||
{
|
||||
! fd = open (filename, O_WRONLY | O_CREAT | O_TRUNC,
|
||||
! /* 0666 in portable POSIX notation: */
|
||||
! S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);
|
||||
if (fd < 0)
|
||||
{
|
||||
const char *errno_description = strerror (errno);
|
||||
|
@ -1,3 +1,103 @@
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package gettext-runtime (Version 0.17)
|
||||
# spec file for package gettext-runtime (Version 0.18.1.1)
|
||||
#
|
||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
@ -17,11 +17,11 @@
|
||||
|
||||
# norootforbuild
|
||||
|
||||
%define pacname gettext
|
||||
|
||||
Name: gettext-runtime
|
||||
%define pacname gettext
|
||||
Version: 0.17
|
||||
Release: 68
|
||||
Version: 0.18.1.1
|
||||
Release: 1
|
||||
BuildRequires: gcc-c++ perl-libintl-perl tcl
|
||||
# To get an updated linkdupes.sh (in case there are new dupes), temproarily enable:
|
||||
#BuildRequires: fdupes
|
||||
@ -39,7 +39,7 @@ Obsoletes: gettext < %{version}
|
||||
Summary: Tools for Native Language Support (NLS)
|
||||
PreReq: %{install_info_prereq}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: %pacname-%version.tar.bz2
|
||||
Source: gettext-%{version}.tar.bz2
|
||||
Source1: gettext-rpmlintrc
|
||||
Source2: suse-start-po-mode.el
|
||||
Source3: gettext-linkdupes.sh
|
||||
@ -51,12 +51,7 @@ Patch4: po-mode.diff
|
||||
Patch5: gettext-initialize_vars.patch
|
||||
Patch6: gettext-0.15-docdir.diff
|
||||
Patch7: gettext-autotools.patch
|
||||
Patch8: gettext-gl_AC_TYPE_LONG_LONG.patch
|
||||
Patch9: gettext-needlessly_init_vars.patch
|
||||
Patch10: gettext-open_missing_mode.patch
|
||||
Patch11: gettext-typo_to_segfault.patch
|
||||
Patch12: gettext-0.17-no-autoconf-tests.diff
|
||||
Patch13: po-mode-cvs-2009-07-23.patch
|
||||
|
||||
%description
|
||||
This package contains the intl library as well as tools that ease the
|
||||
@ -73,7 +68,7 @@ Authors:
|
||||
Ulrich Drepper <drepper@cygnus.com>
|
||||
Bruno Haible <bruno@clisp.org>
|
||||
|
||||
%package -n gettext-tools
|
||||
%package -n gettext-tools
|
||||
License: LGPLv2.1+
|
||||
Summary: Tools for Native Language Support (NLS)
|
||||
Group: Development/Tools/Other
|
||||
@ -109,31 +104,15 @@ Authors:
|
||||
%patch3
|
||||
%patch4
|
||||
%patch5
|
||||
%patch6 -p1
|
||||
%patch6
|
||||
%patch7
|
||||
%patch8
|
||||
%patch9
|
||||
%patch10
|
||||
%patch11
|
||||
%patch12
|
||||
%patch13 -p1
|
||||
# fix build with new autoconf
|
||||
# see comments in the file and
|
||||
# http://www.mail-archive.com/bug-gnulib@gnu.org/msg12384.html
|
||||
rm -f gettext-tools/gnulib-m4/openmp.m4
|
||||
pushd gettext-tools/misc
|
||||
tar xfz archive.tar.gz
|
||||
find . -name gettext.m4,v -print0 | xargs -0 perl -spi -e 's/\(int\) /\(long\) /g'
|
||||
tar cfz archive.tar.gz archive/
|
||||
popd
|
||||
# force rebuild with non-broken makeinfo
|
||||
rm -f gettext-tools/doc/*.info
|
||||
|
||||
%build
|
||||
# expect a couple "You should update your `aclocal.m4' by running aclocal."
|
||||
autoreconf -fiv
|
||||
#sh autogen.sh
|
||||
export CFLAGS="$RPM_OPT_FLAGS -pipe -W -Wall -Dgcc_is_lint"
|
||||
export CFLAGS="%{optflags} -pipe -W -Wall -Dgcc_is_lint"
|
||||
export CXXFLAGS="$CFLAGS -Dgcc_is_lint"
|
||||
%configure --enable-shared
|
||||
make %{?_smp_mflags} GMSGFMT=../src/msgfmt
|
||||
@ -143,32 +122,32 @@ make %{?_smp_mflags} GMSGFMT=../src/msgfmt
|
||||
%install
|
||||
%define my_docdir %{_defaultdocdir}/%{name}
|
||||
export LC_CTYPE=ISO-8859-15
|
||||
make install DESTDIR=$RPM_BUILD_ROOT docdir=%{my_docdir}
|
||||
cp -pr AUTHORS COPYING NEWS README* $RPM_BUILD_ROOT/%{my_docdir}
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/share/emacs/site-lisp
|
||||
install -m 644 %SOURCE2 $RPM_BUILD_ROOT/usr/share/emacs/site-lisp
|
||||
install -m 644 gettext-tools/misc/po-compat.el $RPM_BUILD_ROOT/usr/share/emacs/site-lisp
|
||||
install -m 644 gettext-tools/misc/po-mode.el $RPM_BUILD_ROOT/usr/share/emacs/site-lisp
|
||||
install -m 644 gettext-tools/misc/start-po.el $RPM_BUILD_ROOT/usr/share/emacs/site-lisp
|
||||
#make -C gettext-tools/doc docdir=$RPM_BUILD_ROOT/%{my_docdir} install-pdf
|
||||
if [ -e $RPM_BUILD_ROOT/%{_libdir}/preloadable_libintl.so ];then
|
||||
chmod 755 $RPM_BUILD_ROOT/%{_libdir}/preloadable_libintl.so
|
||||
make install DESTDIR=%{buildroot} docdir=%{my_docdir}
|
||||
cp -pr AUTHORS COPYING 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/misc/po-compat.el %{buildroot}/usr/share/emacs/site-lisp
|
||||
install -m 644 gettext-tools/misc/po-mode.el %{buildroot}/usr/share/emacs/site-lisp
|
||||
install -m 644 gettext-tools/misc/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 $RPM_BUILD_ROOT/%_datadir/locale/en@{bold,}quot
|
||||
rm -rf %{buildroot}/%_datadir/locale/en@{bold,}quot
|
||||
%{find_lang} gettext-tools
|
||||
%{find_lang} gettext-runtime
|
||||
#remove unwanted stuff
|
||||
rm -f $RPM_BUILD_ROOT/usr/share/doc/packages/gettext/README.{mingw,vms,woe32}
|
||||
rm -f %{buildroot}/usr/share/doc/packages/gettext/README.{mingw,vms,woe32}
|
||||
rm -f %_datadir/%name/gettext.jar
|
||||
#find $RPM_BUILD_ROOT -maxdepth 2 -name '*html' | xargs rm -f
|
||||
#find %{buildroot} -maxdepth 2 -name '*html' | xargs rm -f
|
||||
# hardlink the dupes in the documentation:
|
||||
cd $RPM_BUILD_ROOT/%{my_docdir}/examples
|
||||
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
|
||||
cd $RPM_BUILD_ROOT/%{_mandir}/man3
|
||||
cd %{buildroot}/%{_mandir}/man3
|
||||
echo ".so man3/dngettext.3" > dcngettext.3
|
||||
echo ".so man3/dgettext.3" > dcgettext.3
|
||||
|
||||
@ -187,7 +166,7 @@ make check || {
|
||||
}
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
@ -275,8 +254,8 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%_datadir/%pacname/gettext.h
|
||||
%_datadir/%pacname/msgunfmt.tcl
|
||||
%_datadir/%pacname/javaversion.class
|
||||
%_datadir/%pacname/archive.tar.gz
|
||||
%_datadir/%pacname/styles
|
||||
%_datadir/%pacname/archive.dir.tar.gz
|
||||
%_datadir/aclocal/*
|
||||
|
||||
%changelog
|
||||
|
@ -1,6 +1,8 @@
|
||||
--- gettext-tools/misc/po-mode.el
|
||||
+++ gettext-tools/misc/po-mode.el
|
||||
@@ -1110,6 +1110,7 @@
|
||||
Index: gettext-tools/misc/po-mode.el
|
||||
===================================================================
|
||||
--- gettext-tools/misc/po-mode.el.orig 2010-06-06 14:49:57.000000000 +0200
|
||||
+++ gettext-tools/misc/po-mode.el 2010-12-20 18:47:11.963132483 +0100
|
||||
@@ -1242,6 +1242,7 @@ all reachable through 'M-x customize', i
|
||||
;; mode-line-format usually contains global-mode-string, but some
|
||||
;; people customize this variable. As a last resort, append at the end.
|
||||
(let ((prev-entry (or (member 'global-mode-string mode-line-format)
|
||||
|
Loading…
Reference in New Issue
Block a user