Summary: GNU libraries and utilities for producing multi-lingual messages. Name: gettext Version: 0.10.35 Release: 6 Copyright: GPL Group: Development/Tools Source: ftp://alpha.gnu.org/pub/gnu/gettext-0.10.35.tar.gz Patch0: gettext-0.10.35-aixlt.patch Patch1: gettext-0.10.35-aclocaldir.patch Prefix: %{_prefix} Buildroot: /var/tmp/gettext-root %ifarch ia64 %define stdlib lib/ia64l32 %define liblink ../../.. %define DEFCC bcc %else %define stdlib lib %define liblink ../.. #%define DEFCC cc # automake forces -MD for the moment %define DEFCC gcc %endif %description 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. If you would like to internationalize or incorporate multi-lingual messages into programs that you're developing, you should install gettext. %prep rm -rf $RPM_BUILD_ROOT %setup -q %patch0 -p1 -b .aixlt %patch1 -p1 -b .aclocal %build # Use the default compiler for this platform - gcc otherwise if [[ -z "$CC" ]] then if test "X`type %{DEFCC} 2>/dev/null`" != 'X'; then export CC=%{DEFCC} export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's:-fsigned-char::'` else export CC=gcc fi fi aclocal automake M4=%{_prefix}/bin/m4 autoconf libtoolize --copy --force CFLAGS="$RPM_OPT_FLAGS" ./configure \ --enable-shared --with-included-gettext M4=%{_prefix}/bin/m4 make %install rm -rf $RPM_BUILD_ROOT make install prefix=$RPM_BUILD_ROOT%{_prefix} (cd $RPM_BUILD_ROOT rm -f ./usr/info/dir gzip -9nf .%{_prefix}/info/* /usr/bin/strip .%{_prefix}/bin/* || : cd $RPM_BUILD_ROOT for dir in bin include do mkdir -p usr/$dir cd usr/$dir ln -sf ../..%{prefix}/$dir/* . cd - done mkdir -p usr/%{stdlib} cd usr/%{stdlib} ln -sf %{liblink}%{prefix}/lib/* . cd - mkdir -p usr/share ln -sf ../..%{_prefix}/share/gettext . ) %ifarch ppc || %ifarch rs6000 ( cd $RPM_BUILD_ROOT/%{prefix}/lib # Create a compatibility member to mitigate differences with Bull Freeware # offering COMPATMEMBER=shr.o for lib in *.a do /usr/bin/dump -Tv $lib |/usr/bin/awk 'match($4,"EXP|Exp") { print $NF }' > tmp.exp libbase=`print $lib | sed -e 's/.a$//' -e 's/^lib//'` ld -L. -bI:tmp.exp -bE:tmp.exp -l$libbase -bM:SRE -bnoentry -o $COMPATMEMBER /usr/bin/strip -e $COMPATMEMBER # Make shr.o a load-only module /usr/bin/ar -r $lib $COMPATMEMBER rm -f $COMPATMEMBER tmp.exp done ) %endif %clean rm -rf $RPM_BUILD_ROOT %post /sbin/install-info %{_prefix}/info/gettext.info.gz %{_prefix}/info/dir %preun if [ "$1" = 0 ]; then /sbin/install-info --delete %{_prefix}/info/gettext.info.gz %{_prefix}/info/dir fi exit 0 %files %defattr(-,root,root) /usr/bin/* /usr/include/* /usr/%{stdlib}/* %{_prefix}/bin/* %{_prefix}/lib/* %{_prefix}/info/* %{_prefix}/include/* %{_prefix}/share/gettext %{_prefix}/share/locale/*/LC_MESSAGES/* %{_prefix}/share/aclocal/* %changelog * Thu Feb 15 2001 aixtoolbox - Account for different standard lib location in IA64 32-bit ABI * Fri Oct 27 2000 pkgmgr - Modify for AIX Freeware distribution * Sun Feb 27 2000 Cristian Gafton - add --comments to msghack * Thu Feb 10 2000 Cristian Gafton - fix bug #9240 - gettextize has the right aclocal patch * Wed Jan 12 2000 Cristian Gafton - add the --diff and --dummy options * Wed Oct 06 1999 Cristian Gafton - add the --missing option to msghack * Wed Sep 22 1999 Cristian Gafton - updated msghack not to merge in fuzzies in the master catalogs * Thu Aug 26 1999 Cristian Gafton - updated msghack to understand --append * Wed Aug 11 1999 Cristian Gafton - updated msghack to correctly deal with sorting files * Thu May 06 1999 Cristian Gafton - msghack updates * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 8) * Mon Mar 08 1999 Cristian Gafton - added patch for misc hacks to facilitate rpm translations * Thu Dec 03 1998 Cristian Gafton - patch to allow to build on ARM * Wed Sep 30 1998 Jeff Johnson - add Emacs po-mode.el files. * Sun Sep 13 1998 Cristian Gafton - include the aclocal support files * Fri Sep 3 1998 Bill Nottingham - remove devel package (functionality is in glibc) * Tue Sep 1 1998 Jeff Johnson - update to 0.10.35. * Mon Jun 29 1998 Jeff Johnson - add gettextize. - create devel package for libintl.a and libgettext.h. * Mon Apr 27 1998 Prospector System - translations modified for de, fr, tr * Sun Nov 02 1997 Cristian Gafton - added info handling - added misc-patch (skip emacs-lisp modofications) * Sat Nov 01 1997 Erik Troan - removed locale.aliases as we get it from glibc now - uses a buildroot * Mon Jun 02 1997 Erik Troan - Built against glibc