#
# 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
+Version: 0.12
+Release: 0.1
License: GPL
Group: Development/Tools
Source0: ftp://ftp.gnu.org/pub/gnu/gettext/%{name}-%{version}.tar.gz
-Patch0: %{name}-jbj.patch
-Patch1: %{name}-info.patch
-Patch2: %{name}-aclocal.patch
-Patch3: %{name}-killkillkill.patch
-Patch4: %{name}-pl.po-update.patch
-Patch5: %{name}-gettextize-fix.patch
+Patch0: %{name}-info.patch
+Patch1: %{name}-aclocal.patch
+Patch2: %{name}-killkillkill.patch
+Patch3: %{name}-pl.po-update.patch
+Patch4: %{name}-no_docs.patch
BuildRequires: autoconf >= 2.52
-BuildRequires: automake
-%{!?_without_java:%{!?_with_javac:BuildRequires: gcj >= 3.0}}
-%{!?_without_java:%{?_with_javac:BuildRequires: jdk >= 1.1}}
+BuildRequires: automake >= 1.7.5
+%{?_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
%prep
%setup -q
-%patch0 -p1
+#%%patch0 -p1 - needs update
%patch1 -p1
%patch2 -p1
-%patch3 -p1
+#%%patch3 -p1 - needs update
+# patch4 not finished yet
%patch4 -p1
-%patch5 -p1
%build
-rm -f m4/libtool.m4 aclocal.m4 missing
+rm -f aclocal.m4 missing
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+cd gettext-tools
+rm -f aclocal.m4 missing
%{__libtoolize}
%{__aclocal} -I m4
%{__autoconf}
%{__automake}
+cd ../gettext-tools
+rm -f aclocal.m4 missing
+%{__libtoolize}
+%{__aclocal} -I m4 -I ../gettext-runtime/m4
+%{__autoconf}
+%{__automake}
+cd ..
%configure \
%{?!_without_xemacs:--with-lispdir=%{_datadir}/xemacs-packages/lisp/po-mode} \
--enable-nls \
--without-included-gettext
%{__make}
-%{?!_without_xemacs:cd misc}
-%{?!_without_xemacs:EMACS=/usr/bin/xemacs ./elisp-comp ./po-mode.el}
+%{?!_without_xemacs:cd gettext-tools/misc}
+%{?!_without_xemacs:EMACS=%{_bindir}/xemacs ./elisp-comp ./po-mode.el}
%install
rm -rf $RPM_BUILD_ROOT
mv -f $RPM_BUILD_ROOT%{_bindir}/{,n}gettext $RPM_BUILD_ROOT/bin
# static libs are removed in install-exec-clean
-install lib/.libs/lib*.a src/.libs/lib*.a $RPM_BUILD_ROOT%{_libdir}
+install gettext-tools/lib/.libs/lib*.a gettext-tools/src/.libs/lib*.a $RPM_BUILD_ROOT%{_libdir}
# needed by uintmax.m4 (maybe automake is too old?)
-install m4/ulonglong.m4 $RPM_BUILD_ROOT%{_aclocaldir}
+#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}
+%find_lang %{name}-runtime
+%find_lang %{name}-tools
%clean
rm -rf $RPM_BUILD_ROOT
%postun devel
[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
-%files -f %{name}.lang
+%files -f %{name}-runtime.lang
%defattr(644,root,root,755)
%attr(755,root,root) /bin/*
%{_mandir}/man1/gettext.1*
%{_mandir}/man1/ngettext.1*
-%files devel
+%files devel -f %{name}-tools.lang
%defattr(644,root,root,755)
-%doc AUTHORS BUGS ChangeLog DISCLAIM NEWS README* THANKS TODO
+%doc AUTHORS ChangeLog NEWS README* THANKS
%attr(755,root,root) %{_bindir}/*
%exclude %{_bindir}/autopoint
%attr(755,root,root) %{_libdir}/lib*.so
%{_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