#
# Conditional build:
# _without_xemacs without po-mode for xemacs
-# _without_java without Java support (which requires gcj 3.x or javac)
-# _with_javac use some javac instead of gcj 3.x
+# _with_gcj with Java support by gcj requires gcj 3.x, but not 3.0.4+ (broken for now))
+# _with_javac with Java support by some javac
#
+%define build_java %{?_with_gcj:1}%{!?_with_gcj:%{?_with_javac:1}%{!?_with_javac:0}}
Summary: Utilties for program national language support
Summary(de): Utilities zum Programmieren von nationaler Sprachunterstützung
-Summary(es): Utilitarios para el programa de soporte a lenguas locales.
+Summary(es): Utilitarios para el programa de soporte a lenguas locales
Summary(fr): Utilitaires pour le support de la langue nationnalepar les programmes
+Summary(ja): ¥Þ¥ë¥Á¥ê¥ó¥¬¥ë¥á¥Ã¥»¡¼¥¸¤òÀ¸À®¤¹¤ë¤¿¤á¤ÎGNU ¥é¥¤¥Ö¥é¥ê/¥æ¡¼¥Æ¥£¥ê¥Æ¥£
Summary(pl): Narzêdzia dla programów ze wsparciem dla jêzyków narodowych
-Summary(pt_BR): Utilitários para o programa de suporte de línguas locais.
+Summary(pt_BR): Utilitários para o programa de suporte de línguas locais
+Summary(ru): âÉÂÌÉÏÔÅËÉ É ÕÔÉÌÉÔÙ ÄÌÑ ÐÏÄÄÅÒÖËÉ ÎÁÃÉÏÎÁÌØÎÙÈ ÑÚÙËÏ×
Summary(tr): Desteði için kitaplýk ve araçlar
+Summary(uk): â¦Â̦ÏÔÅËÉ ÔÁ ÕÔÉ̦ÔÉ ÄÌÑ Ð¦ÄÔÒÉÍËÉ ÎÁæÏÎÁÌØÎÉÈ ÍÏ×
Name: gettext
Version: 0.11.5
-Release: 4
+Release: 5
License: GPL
Group: Development/Tools
Source0: ftp://ftp.gnu.org/pub/gnu/gettext/%{name}-%{version}.tar.gz
Patch2: %{name}-aclocal.patch
Patch3: %{name}-killkillkill.patch
Patch4: %{name}-pl.po-update.patch
-Patch5: %{name}-gettextize-fix.patch
+Patch5: %{name}-%{name}ize-fix.patch
BuildRequires: autoconf >= 2.52
BuildRequires: automake
-%{!?_without_java:%{!?_with_javac:BuildRequires: gcj >= 3.0}}
-%{!?_without_java:%{?_with_javac:BuildRequires: jdk >= 1.1}}
+%{?_with_gcj:BuildRequires: gcj >= 3.0}
+%{?_with_gcj:BuildRequires: gcj < 3.0.4}
+%{?_with_javac:BuildRequires: jdk >= 1.1}
BuildRequires: libtool >= 1.4
BuildRequires: texinfo
%{?!_without_xemacs:BuildRequires: xemacs}
+BuildRequires: gettext-devel
Obsoletes: gettext-base
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-The gettext library provides an easy to use library and tools for
-creating, using, and modifying natural language catalogs. It is a
-powerfull and simple method for internationalizing programs.
+The GNU gettext package provides a set of tools and documentation for
+producing multi-lingual messages in programs. Tools include a set of
+conventions about how programs should be written to support message
+catalogs, a directory and file naming organization for the message
+catalogs, a runtime library which supports the retrieval of translated
+messages, and stand-alone programs for handling the translatable and
+the already translated strings. Gettext provides an easy to use
+library and tools for creating, using, and modifying natural language
+catalogs and is a powerful and simple method for internationalizing
+programs.
%description -l de
Die gettext-Library enthält eine einfach anzuwendende Library und
naturel. C'est une méthode simple et puissante pour internationnaliser
les programmes.
+%description -l ja
+GNU gettext
+¥Ñ¥Ã¥±¡¼¥¸¤Ï¥×¥í¥°¥é¥àÃæ¤Ç¥Þ¥ë¥Á¥ê¥ó¥¬¥ë¥á¥Ã¥»¡¼¥¸¤òÀ¸À®¤¹¤ë
+¤¿¤á¤Î¥Ä¡¼¥ë¤Èʸ½ñ¤ò¶¡µë¤¹¤ë¡£¥Ä¡¼¥ë¤Ï¥á¥Ã¥»¡¼¥¸¥«¥¿¥í¥°¤ò¥µ¥Ý¡¼¥È¤¹¤ë¤¿¤á¤Ë
+¥×¥í¥°¥é¥à¤¬¤É¤Î¤è¤¦¤Ë½ñ¤«¤ì¤ë¤Ù¤¤«¤Î¿½¤·¹ç¤ï¤»¤È¡¢¥á¥Ã¥»¡¼¥¸¥«¥¿¥í¥°¤Î¤¿¤á¤Î
+¥Ç¥£¥ì¥¯¥È¥ê¤È¥Õ¥¡¥¤¥ë̾¤ÎÁÈ¿¥²½¤È¡¢ËÝÌõ¤µ¤ì¤¿¥á¥Ã¥»¡¼¥¸¤ÎËä¤á¹ç¤ï¤»¤ò
+¥µ¥Ý¡¼¥È¤¹¤ë¤¿¤á¤Î¥é¥ó¥¿¥¤¥à¥é¥¤¥Ö¥é¥ê¤È¡¢ËÝÌõ²Äǽ¤Ç¤«¤Ä¤¹¤Ç¤ËËÝÌõ¤µ¤ì¤¿Ê¸»úÎó
+¤ò¼è¤ê°·¤¦ÆÈΩ¤·¤¿¥×¥í¥°¥é¥à¤ò´Þ¤ó¤Ç¤¤¤ë¡£gettext
+¤Ï´Êñ¤Ë»È¤¨¤ë¥é¥¤¥Ö¥é¥ê
+¤È¼«Á³¸À¸ì¤Î¥«¥¿¥í¥°¤òÀ¸À®¡¢»ÈÍÑ¡¢½¤Àµ¤¹¤ë¥Ä¡¼¥ë¤È¡¢¹ñºÝ²½¥×¥í¥°¥é¥à
+¤Î¤¿¤á¤Î¶¯ÎϤ«¤Ä¥·¥ó¥×¥ë¤ÊÊýË¡¤ò¶¡µë¤¹¤ë¡£
+
%description -l pl
Pakiet gettext dostarcza narzêdzi do tworzenia, u¿ywania i modyfikacji
katalogów jêzyków narodowych. To jest prosta i wydajna metoda
-lokalizacji (internationalizacji) programów.
+lokalizacji (internacjonalizacji) programów.
%description -l pt_BR
A biblioteca gettext oferece uma biblioteca fácil de usar e
natural. Ele é um poderoso e simples método de internacionalização de
programas.
+%description -l ru
+ðÁËÅÔ gettext ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÕ É ÐÒÏÓÔÙÅ × ÉÓÐÏÌØÚÏ×ÁÎÉÉ
+ÉÎÓÔÒÕÍÅÎÔÙ ÄÌÑ ÓÏÚÄÁÎÉÑ, ÉÓÐÏÌØÚÏ×ÁÎÉÑ É ÍÏÄÉÆÉËÁÃÉÉ ËÁÔÁÌÏÇÏ×
+ÎÁÃÉÏÎÁÌØÎÙÈ ÑÚÙËÏ×. üÔÏ ÐÒÏÓÔÏÊ É ÍÏÝÎÙÊ ÍÅÔÏÄ ÄÌÑ
+ÉÎÔÅÒÎÁÃÉÏÎÁÌÉÚÁÃÉÉ ÐÒÏÇÒÁÍÍ.
+
%description -l tr
gettext, yerel dil desteðinde kullanýlan kataloglarý deðiþtirebilmek
için, kolayca kullanýlabilen kitaplýk ve araçlarý saðlar. Bu,
programlarý uluslararasýlaþtýrmak için sýkça baþvurulan, kuvvetli bir
yöntemdir.
+%description -l uk
+ðÁËÅÔ gettext ͦÓÔÉÔØ Â¦Â̦ÏÔÅËÕ ÔÁ ÐÒÏÓÔ¦ Õ ×ÉËÏÒÉÓÔÁÎΦ ¦ÎÓÔÒÕÍÅÎÔÉ
+ÄÌÑ ÓÔ×ÏÒÅÎÎÑ, ×ÉËÏÒÉÓÔÁÎÎÑ ÔÁ ÍÏÄÉƦËÁæ§ ËÁÔÁÌÏÇ¦× ÎÁæÏÎÁÌØÎÉÈ ÍÏ×.
+ãÅ ÐÒÏÓÔÉÊ ÔÁ ÐÏÔÕÖÎÉÊ ÍÅÔÏÄ ÄÌÑ ¦ÎÔÅÒÎÁæÏÎÁ̦ÚÁæ§ ÐÒÏÇÒÁÍ.
+
%package devel
Summary: Utilties for program national language support
Summary(de): Utilities zum Programmieren von nationaler Sprachunterstützung
%description autopoint
The `autopoint' program copies standard gettext infrastructure files
-into a source package. It extracts from a macro call of the form
+into a source package. It extracts from a macro call of the form
`AM_GNU_GETTEXT_VERSION(VERSION)', found in the package's
`configure.in' or `configure.ac' file, the gettext version used by the
package, and copies the infrastructure files belonging to this version
%{__make}
%{?!_without_xemacs:cd misc}
-%{?!_without_xemacs:EMACS=/usr/bin/xemacs ./elisp-comp ./po-mode.el}
+%{?!_without_xemacs:EMACS=%{_bindir}/xemacs ./elisp-comp ./po-mode.el}
%install
rm -rf $RPM_BUILD_ROOT
# needed by uintmax.m4 (maybe automake is too old?)
install m4/ulonglong.m4 $RPM_BUILD_ROOT%{_aclocaldir}
+# not supported by glibc 2.3.1
+rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/{en@boldquot,en@quot}
+
%find_lang %{name}
%clean
%{_mandir}/man1/xgettext.1*
%{_mandir}/man3/*
-%if %{?_without_java:0}%{?!_without_java:1}
+%if %{build_java}
%files java-devel
%defattr(644,root,root,755)
%doc intl-java/javadoc2