1
0
gettext-runtime/gettext-java.spec

142 lines
4.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package gettext-java
#
# Copyright (c) 2021 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
Accepting request 823172 from home:cvoegl:branches:Base:System -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. - 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. - 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. - 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. OBS-URL: https://build.opensuse.org/request/show/823172 OBS-URL: https://build.opensuse.org/package/show/Base:System/gettext-runtime?expand=0&rev=169
2020-08-04 10:25:00 +02:00
Version: 0.21
Release: 0
Summary: Java Support for Native Language Support (NLS)
License: LGPL-2.1-or-later
Group: Development/Tools/Other
URL: http://www.gnu.org/software/gettext/
Source0: http://ftp.gnu.org/gnu/gettext/gettext-%{version}.tar.xz
Source1: gettext-rpmlintrc
Source2: suse-start-po-mode.el
Source3: gettext-linkdupes.sh
Source4: http://ftp.gnu.org/gnu/gettext/gettext-%{version}.tar.xz.sig
Source5: %{name}.keyring
Patch0: gettext-0.12.1-sigfpe.patch
Patch2: gettext-0.12.1-gettextize.patch
Patch4: gettext-po-mode.diff
Patch5: gettext-initialize_vars.patch
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: glib2-devel
BuildRequires: java-devel
BuildRequires: libcroco-devel
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
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
%setup -q -n gettext-%{version}
%patch0
%patch2
%patch4
%patch5
%build
# expect a couple "You should update your `aclocal.m4' by running aclocal."
autoreconf -fiv
#sh autogen.sh
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
make GMSGFMT=../src/msgfmt %{?_smp_mflags} V=1
%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}
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 <<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}
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
}
ls -l %{buildroot}/%{_datadir}
# 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
%files
%{_defaultdocdir}/%{name}
%{_libdir}/gettext/gettext.jar
%{_libdir}/gettext/gnu.gettext.DumpResource
%{_libdir}/gettext/gnu.gettext.GetURL
%changelog