cvsdist d07d99
%define libtoolize :
cvsdist d07d99
cvsdist e7d290
Summary: GNU libraries and utilities for producing multi-lingual messages.
cvsdist e7d290
Name: gettext
cvsdist aea03d
Version: 0.12.1
cvsdist aea03d
Release: 1
cvsdist d07d99
License: GPL/LGPL
cvsdist e7d290
Group: Development/Tools
cvsdist eeb8d5
Source: ftp://ftp.gnu.org/gnu/gettext/%{name}-%{version}.tar.gz
cvsdist d07d99
URL: http://www.gnu.org/software/gettext/
cvsdist eeb8d5
Source1: po-mode-init.el
cvsdist 2b5159
Source2: msghack.py
cvsdist e7d290
Patch0: gettext-0.10-misc.patch
cvsdist e7d290
Patch1: gettext-0.10.35-jbj.patch
cvsdist e7d290
Patch2: gettext-0.10.35-arm.patch
cvsdist e7d290
Patch3: gettext-0.10.35-hacks.patch
cvsdist e7d290
Patch4: gettext-0.10.35-aclocaldir.patch
cvsdist e7d290
Patch5: gettext-0.10.35-buildroot.patch
cvsdist e7d290
Patch6: gettext-0.10.35-destdir.patch
cvsdist e7d290
Patch7: gettext-0.10.35-drepper.patch
cvsdist eeb8d5
Patch8: gettext-0.10.35-oka-plus.patch
cvsdist 2b5159
Patch9: gettext-0.10.38-msghack.patch
cvsdist e2b78a
Patch10: gettext-0.11.4-ulonglong.patch
cvsdist eeb8d5
Prereq: /sbin/install-info
cvsdist 2b5159
Buildroot: %{_tmppath}/%{name}-%{version}-root
cvsdist e7d290
cvsdist e7d290
%description
cvsdist e7d290
The GNU gettext package provides a set of tools and documentation for
cvsdist 31ff37
producing multi-lingual messages in programs. Tools include a set of
cvsdist e7d290
conventions about how programs should be written to support message
cvsdist e7d290
catalogs, a directory and file naming organization for the message
cvsdist e7d290
catalogs, a runtime library which supports the retrieval of translated
cvsdist e7d290
messages, and stand-alone programs for handling the translatable and
cvsdist 31ff37
the already translated strings. Gettext provides an easy to use
cvsdist e7d290
library and tools for creating, using, and modifying natural language
cvsdist e7d290
catalogs and is a powerful and simple method for internationalizing
cvsdist e7d290
programs.
cvsdist e7d290
cvsdist e7d290
%prep
cvsdist e7d290
rm -rf %{buildroot}
cvsdist e7d290
%setup -q
cvsdist e7d290
cvsdist e7d290
%build
cvsdist d07d99
[ -f  /usr/share/automake/depcomp ] && cp -f /usr/share/automake/{depcomp,ylwrap} . || :
cvsdist 69a981
%configure --with-included-gettext --disable-shared --with-pic-=yes
cvsdist e7d290
make
cvsdist e7d290
cvsdist e7d290
%install
cvsdist e7d290
rm -rf %{buildroot}
cvsdist e7d290
cvsdist e7d290
# Fix busted no-emacs install for $lispdir/po-mode.el
cvsdist e7d290
%makeinstall lispdir=%{buildroot}/usr/share/emacs/site-lisp \
cvsdist e7d290
    aclocaldir=%{buildroot}/usr/share/aclocal
cvsdist eeb8d5
    
cvsdist eeb8d5
mkdir -p %{buildroot}/bin
cvsdist eeb8d5
mv %{buildroot}/%{_bindir}/gettext %{buildroot}/bin
cvsdist eeb8d5
ln -s ../../bin/gettext %{buildroot}/%{_bindir}/gettext
cvsdist 2b5159
install -m 755 %SOURCE2 $RPM_BUILD_ROOT/%{_bindir}/msghack
cvsdist e7d290
cvsdist e7d290
pushd %{buildroot}
cvsdist e7d290
rm -f .%{_infodir}/dir .%{_includedir}/libintl.h
cvsdist e7d290
popd
cvsdist e7d290
cvsdist eeb8d5
pushd %{buildroot}/%{_datadir}/locale
cvsdist eeb8d5
for foo in `find . -maxdepth 1 -mindepth 1 -type d` ; do
cvsdist eeb8d5
  lang=`echo $foo | cut -c 3-`
cvsdist eeb8d5
  echo "%lang($lang) %{_datadir}/locale/$foo/*/*" >> \
cvsdist eeb8d5
    $RPM_BUILD_DIR/%{name}-%{version}/trans.list
cvsdist eeb8d5
done
cvsdist eeb8d5
popd
cvsdist eeb8d5
cvsdist eeb8d5
mkdir -p $RPM_BUILD_ROOT/usr/share/emacs/site-lisp/site-start.d
cvsdist eeb8d5
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/usr/share/emacs/site-lisp/site-start.d
cvsdist eeb8d5
cvsdist b3c85c
# remove unpackaged files from the buildroot
cvsdist b3c85c
rm -rf $RPM_BUILD_ROOT/usr/doc
cvsdist b3c85c
rm -rf $RPM_BUILD_ROOT%{_datadir}/emacs
cvsdist b3c85c
rm -f $RPM_BUILD_ROOT%{_libdir}/{libintl.a,libintl.la}
cvsdist b3c85c
rm -f $RPM_BUILD_ROOT%{_datadir}/locale/locale.alias
cvsdist aea03d
rm -f $RPM_BUILD_ROOT%{_includedir}/{autosprintf.h,gettext-po.h}
cvsdist aea03d
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
cvsdist b3c85c
cvsdist b3c85c
cvsdist e7d290
%clean
cvsdist e7d290
rm -rf %{buildroot}
cvsdist e7d290
cvsdist e7d290
%post
cvsdist e7d290
/sbin/install-info %{_infodir}/gettext.info.gz %{_infodir}/dir
cvsdist e7d290
cvsdist e7d290
%preun
cvsdist e7d290
if [ "$1" = 0 ]; then
cvsdist e7d290
    /sbin/install-info --delete %{_infodir}/gettext.info.gz %{_infodir}/dir
cvsdist e7d290
fi
cvsdist e7d290
exit 0
cvsdist e7d290
cvsdist eeb8d5
%files -f trans.list
cvsdist e7d290
%defattr(-,root,root)
cvsdist aea03d
%doc gettext-runtime/ABOUT-NLS AUTHORS gettext-runtime/BUGS 
cvsdist aea03d
%doc COPYING gettext-tools/misc/DISCLAIM README
cvsdist aea03d
%doc NEWS THANKS gettext-tools/TODO 
cvsdist eeb8d5
/bin/*
cvsdist 5ec5ab
/usr/bin/*
cvsdist aea03d
/usr/share/doc/*
cvsdist 1a785e
%{_libdir}/gettext
cvsdist e7d290
%{_infodir}/*
cvsdist d07d99
%{_mandir}/*/*
cvsdist 2b5159
#%config %{_libdir}/charset.alias
cvsdist e7d290
%{_datadir}/gettext
cvsdist e7d290
%{_datadir}/aclocal/*
cvsdist 1a785e
%{_libdir}/libgettextlib.*
cvsdist 1a785e
%{_libdir}/libgettextsrc.*
cvsdist aea03d
%{_libdir}/libgettextpo.*
cvsdist aea03d
%{_libdir}/libasprintf.*
cvsdist 5ec5ab
cvsdist 6b9110
# These aren't in glibc...
cvsdist 6b9110
%dir /usr/share/locale/en@boldquot
cvsdist 6b9110
%dir /usr/share/locale/en@boldquot/LC_MESSAGES
cvsdist 6b9110
%dir /usr/share/locale/en@quot
cvsdist 6b9110
%dir /usr/share/locale/en@quot/LC_MESSAGES
cvsdist e7d290
cvsdist e7d290
%changelog
cvsdist aea03d
* Fri Sep 19 2003 Leon Ho <llch@redhat.com>
cvsdist aea03d
- rebuilt 0.12.1
cvsdist aea03d
- fix including files and excludes some patches
cvsdist aea03d
cvsdist aea03d
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
cvsdist aea03d
- rebuilt
cvsdist aea03d
cvsdist aea03d
* Wed May 14 2003 Leon Ho <llch@redhat.com>
cvsdist aea03d
- 0.11.5
cvsdist aea03d
cvsdist b3c85c
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
cvsdist b3c85c
- rebuilt
cvsdist b3c85c
cvsdist b3c85c
* Thu Jan 16 2003 Leon Ho <llch@redhat.com> 0.11.4-6
cvsdist b3c85c
- add online help for msghack replacement
cvsdist b3c85c
cvsdist b3c85c
* Thu Dec  5 2002 Leon Ho <llch@redhat.com> 0.11.4-5
cvsdist b3c85c
- add patch to fix gettextize (#78720)
cvsdist b3c85c
cvsdist b3c85c
* Wed Nov 27 2002 Tim Powers <timp@redhat.com> 0.11.4-4
cvsdist b3c85c
- remove unpackaged files from the buildroot
cvsdist b3c85c
cvsdist 1a785e
* Wed Aug 28 2002 Trond Eivind Glomsrød <teg@redhat.com> 0.11.4-3
cvsdist 1a785e
- Use %%{_libdir} instead of /usr/lib (#72524)
cvsdist 1a785e
cvsdist e2b78a
* Fri Aug  2 2002 Nalin Dahyabhai <nalin@redhat.com> 0.11.4-2
cvsdist e2b78a
- install ulonglong.m4, which is required by uintmax_t.m4, which is already
cvsdist e2b78a
  being installed
cvsdist e2b78a
cvsdist 69a981
* Sun Jul 28 2002 Trond Eivind Glomsrød <teg@redhat.com> 0.11.4-1
cvsdist 69a981
- 0.11.4
cvsdist 69a981
cvsdist 69a981
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
cvsdist 69a981
- automated rebuild
cvsdist 69a981
cvsdist 69a981
* Thu May 23 2002 Tim Powers <timp@redhat.com>
cvsdist 69a981
- automated rebuild
cvsdist 69a981
cvsdist 69a981
* Tue May 14 2002 Trond Eivind Glomsrød <teg@redhat.com> 0.11.2-1
cvsdist 69a981
- 0.11.2
cvsdist 69a981
- include some new files
cvsdist 69a981
cvsdist 78b6f8
* Fri Apr  5 2002 Trond Eivind Glomsrød <teg@redhat.com> 0.11.1-2
cvsdist 78b6f8
- Add patch to make it compile with C99 compilers (#62313)
cvsdist 78b6f8
cvsdist 5b2802
* Wed Mar 13 2002 Trond Eivind Glomsrød <teg@redhat.com> 0.11.1-1
cvsdist 5b2802
- 0.11.1
cvsdist 5b2802
cvsdist 5b2802
* Sun Feb 17 2002 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist 5b2802
- update gettext to 0.11
cvsdist 5b2802
- disable patch4
cvsdist 5b2802
cvsdist 5b2802
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
cvsdist 5b2802
- automated rebuild
cvsdist 5b2802
cvsdist 5b2802
* Wed Dec  5 2001 Trond Eivind Glomsrød <teg@redhat.com> 0.10.40-3
cvsdist d07d99
- improve automake handling
cvsdist d07d99
cvsdist d07d99
* Wed Nov 14 2001 Trond Eivind Glomsrød <teg@redhat.com> 0.10.40-2
cvsdist d07d99
- Add URL
cvsdist d07d99
- Add automake workaround (#56081)
cvsdist d07d99
cvsdist d07d99
* Sun Sep 16 2001 Trond Eivind Glomsrød <teg@redhat.com> 0.10.40-1
cvsdist d07d99
- 0.10.40 - libintl is now LGPLed (it was GPLed). Note that RHL
cvsdist d07d99
  uses the glibc version, and don't include libintl from gettext.
cvsdist d07d99
- include new man pages
cvsdist d07d99
- don't include the elisp mode - bundle it into the main emacs package,
cvsdist d07d99
  like we do for XEmacs.
cvsdist d07d99
- README-alpha no longer exists, so don't list it as a doc file
cvsdist d07d99
cvsdist 5ec5ab
* Fri Aug 24 2001 Trond Eivind Glomsrød <teg@redhat.com> 0.10.38-7
cvsdist 5ec5ab
- Rebuild - this should fix #52463
cvsdist 5ec5ab
cvsdist 6b9110
* Wed Aug 22 2001 Trond Eivind Glomsrød <teg@redhat.com> 0.10.38-6
cvsdist 6b9110
- Fix handling of multiline entries (rest of #50065)
cvsdist 6b9110
- don't use the references of the last entry in a po file
cvsdist 6b9110
- remove duplicates when inverting
cvsdist 6b9110
- Own the en@quot and en@boldquot locale dirs (#52164)
cvsdist 6b9110
- Handle entries with a first line of "" as identical to those
cvsdist 6b9110
  without
cvsdist 6b9110
cvsdist 31ff37
* Thu Aug  9 2001 Trond Eivind Glomsrød <teg@redhat.com>
cvsdist 31ff37
- Added "--append" and "-o" to msghack, which should address 
cvsdist 31ff37
  initial concerns in #50065
cvsdist 31ff37
cvsdist 2b5159
* Thu Jul 19 2001 Trond Eivind Glomsrød <teg@redhat.com>
cvsdist 2b5159
- New msghack - from scratch, in python
cvsdist 2b5159
cvsdist 2b5159
* Tue Jul 17 2001 Trond Eivind Glomsrød <teg@redhat.com>
cvsdist 2b5159
- msghack is back
cvsdist 2b5159
cvsdist 2b5159
* Mon Jun  4 2001 Trond Eivind Glomsrød <teg@redhat.com>
cvsdist 2b5159
- Include some docfiles
cvsdist 2b5159
cvsdist 2b5159
* Sun Jun 03 2001 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist 2b5159
- 0.10.38
cvsdist 2b5159
- do not include charset.alias
cvsdist 2b5159
cvsdist 2b5159
* Wed May  2 2001 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 2b5159
- Build statically.
cvsdist 2b5159
cvsdist 2b5159
* Mon Apr 30 2001 Trond Eivind Glomsrød <teg@redhat.com>
cvsdist 2b5159
- 0.10.37
cvsdist 2b5159
- Disable all but two patches
cvsdist 2b5159
cvsdist eeb8d5
* Sun Feb 25 2001 Trond Eivind Glomsrød <teg@redhat.com>
cvsdist eeb8d5
- Initialize proper fonts when entering po-mode (#29152)
cvsdist eeb8d5
cvsdist eeb8d5
* Mon Feb 12 2001 Yukihiro Nakai <ynakai@redhat.com>
cvsdist eeb8d5
- More fix about msgmerge.
cvsdist eeb8d5
cvsdist eeb8d5
* Mon Feb 12 2001 Yukihiro Nakai <ynakai@redhat.com>
cvsdist eeb8d5
- Fix for msgmerge not to break multibyte strings
cvsdist eeb8d5
  at Japanese locale.
cvsdist eeb8d5
cvsdist eeb8d5
* Wed Jan 24 2001 Matt Wilson <msw@redhat.com>
cvsdist eeb8d5
- fixed the %lang generator to not have "./" in the lang
cvsdist eeb8d5
cvsdist eeb8d5
* Sun Jan 14 2001 Trond Eivind Glomsrød <teg@redhat.com>
cvsdist eeb8d5
- add an init file for the emacs po-mode
cvsdist eeb8d5
- update source URL
cvsdist eeb8d5
cvsdist eeb8d5
* Thu Jan 11 2001 Bill Nottingham <notting@redhat.com>
cvsdist eeb8d5
- put gettext in /bin for initscripts use
cvsdist eeb8d5
- %langify
cvsdist eeb8d5
cvsdist eeb8d5
* Fri Dec 29 2000 Bill Nottingham <notting@redhat.com>
cvsdist eeb8d5
- prereq /sbin/install-info
cvsdist eeb8d5
cvsdist e7d290
* Wed Aug 23 2000 Trond Eivind Glomsrød <teg@redhat.com>
cvsdist e7d290
- Added patch from Ulrich Drepper
cvsdist e7d290
cvsdist e7d290
* Fri Aug 04 2000 Trond Eivind Glomsrød <teg@redhat.com>
cvsdist e7d290
- update DESTDIR patch (#12072)
cvsdist e7d290
cvsdist e7d290
* Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
cvsdist e7d290
- automatic rebuild
cvsdist e7d290
cvsdist e7d290
* Mon Jul 10 2000 Trond Eivind Glomsrød <teg@redhat.com>
cvsdist e7d290
- fix problems wrt to DESTDIR (#12072)
cvsdist e7d290
cvsdist e7d290
* Thu Jun 22 2000 Preston Brown <pbrown@redhat.com>
cvsdist e7d290
- use FHS paths
cvsdist e7d290
- add buildroot patch for .../intl/Makefile.in, was using abs. install path
cvsdist e7d290
cvsdist e7d290
* Fri Apr 28 2000 Bill Nottingham <notting@redhat.com>
cvsdist e7d290
- minor configure tweaks for ia64
cvsdist e7d290
cvsdist e7d290
* Sun Feb 27 2000 Cristian Gafton <gafton@redhat.com>
cvsdist e7d290
- add --comments to msghack
cvsdist e7d290
cvsdist e7d290
* Thu Feb 10 2000 Cristian Gafton <gafton@redhat.com>
cvsdist e7d290
- fix bug #9240 - gettextize has the right aclocal patch
cvsdist e7d290
cvsdist e7d290
* Wed Jan 12 2000 Cristian Gafton <gafton@redhat.com>
cvsdist e7d290
- add the --diff and --dummy options
cvsdist e7d290
cvsdist e7d290
* Wed Oct 06 1999 Cristian Gafton <gafton@redhat.com>
cvsdist e7d290
- add the --missing option to msghack
cvsdist e7d290
cvsdist e7d290
* Wed Sep 22 1999 Cristian Gafton <gafton@redhat.com>
cvsdist e7d290
- updated msghack not to merge in fuzzies in the master catalogs
cvsdist e7d290
cvsdist e7d290
* Thu Aug 26 1999 Cristian Gafton <gafton@redhat.com>
cvsdist e7d290
- updated msghack to understand --append
cvsdist e7d290
cvsdist e7d290
* Wed Aug 11 1999 Cristian Gafton <gafton@redhat.com>
cvsdist e7d290
- updated msghack to correctly deal with sorting files
cvsdist e7d290
cvsdist e7d290
* Thu May 06 1999 Cristian Gafton <gafton@redhat.com>
cvsdist e7d290
- msghack updates
cvsdist e7d290
cvsdist e7d290
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
cvsdist e7d290
- auto rebuild in the new build environment (release 8)
cvsdist e7d290
cvsdist e7d290
* Mon Mar 08 1999 Cristian Gafton <gafton@redhat.com>
cvsdist e7d290
- added patch for misc hacks to facilitate rpm translations
cvsdist e7d290
cvsdist e7d290
* Thu Dec 03 1998 Cristian Gafton <gafton@redhat.com>
cvsdist e7d290
- patch to allow to build on ARM
cvsdist e7d290
cvsdist e7d290
* Wed Sep 30 1998 Jeff Johnson <jbj@redhat.com>
cvsdist e7d290
- add Emacs po-mode.el files.
cvsdist e7d290
cvsdist e7d290
* Sun Sep 13 1998 Cristian Gafton <gafton@redhat.com>
cvsdist e7d290
- include the aclocal support files
cvsdist e7d290
cvsdist e7d290
* Fri Sep  3 1998 Bill Nottingham <notting@redhat.com>
cvsdist e7d290
- remove devel package (functionality is in glibc)
cvsdist e7d290
cvsdist e7d290
* Tue Sep  1 1998 Jeff Johnson <jbj@redhat.com>
cvsdist e7d290
- update to 0.10.35.
cvsdist e7d290
cvsdist e7d290
* Mon Jun 29 1998 Jeff Johnson <jbj@redhat.com>
cvsdist e7d290
- add gettextize.
cvsdist e7d290
- create devel package for libintl.a and libgettext.h.
cvsdist e7d290
cvsdist e7d290
* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
cvsdist e7d290
- translations modified for de, fr, tr
cvsdist e7d290
cvsdist e7d290
* Sun Nov 02 1997 Cristian Gafton <gafton@redhat.com>
cvsdist e7d290
- added info handling
cvsdist e7d290
- added misc-patch (skip emacs-lisp modofications)
cvsdist e7d290
cvsdist e7d290
* Sat Nov 01 1997 Erik Troan <ewt@redhat.com>
cvsdist e7d290
- removed locale.aliases as we get it from glibc now
cvsdist e7d290
- uses a buildroot
cvsdist e7d290
cvsdist e7d290
* Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
cvsdist e7d290
- Built against glibc