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