+# _without_xemacs (--without xemacs)
Summary: Utilties for program national language support
Summary(de): Utilities zum Programmieren von nationaler Sprachunterstützung
-Summary(fr): Utilitaires pour le support de la langue nationnalepar les programmes.
+Summary(fr): Utilitaires pour le support de la langue nationnalepar les programmes
Summary(pl): Narzêdzia dla programów ze wsparciem dla jêzyków narodowych
Summary(tr): Desteði için kitaplýk ve araçlar
Name: gettext
-Version: 0.10.35
-Release: 10
-Copyright: GPL
+Version: 0.10.40
+Release: 1
+License: GPL
Group: Development/Tools
-Group(pl): Programowanie/Narzêdzia
-Source: ftp://alpha.gnu.org/gnu/%{name}-%{version}.tar.gz
-Patch0: gettext-jbj.patch
-Patch1: gettext-info.patch
-Patch2: gettext-arm.patch
-Patch4: gettext-Makefile.in.in.patach
-Prereq: /sbin/install-info
-Requires: m4
-Requires: automake
-Requires: autoconf
-Buildroot: /tmp/%{name}-%{version}-root
+Source0: ftp://ftp.gnu.org/pub/gnu/gettext/%{name}-%{version}.tar.gz
+Patch0: %{name}-jbj.patch
+Patch1: %{name}-info.patch
+Patch2: %{name}-dml.patch
+Patch3: %{name}-aclocal.patch
+BuildRequires: automake
+BuildRequires: autoconf >= 2.50
+BuildRequires: libtool >= 1.4
+BuildRequires: texinfo
+%{?!_without_xemacs:BuildRequires: xemacs}
+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 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.
%description -l de
-Die gettext-Library enthält eine einfach anzuwendende Library und Tools
-zum Erstellen, Verwenden und Ändern von natürlichsprachigen-Kataloge. Es ist
-ein einfaches und leistungsfähiges Verfahren zum Lokalisieren von Programmen.
+Die gettext-Library enthält eine einfach anzuwendende Library und
+Tools zum Erstellen, Verwenden und Ändern von
+natürlichsprachigen-Kataloge. Es ist ein einfaches und
+leistungsfähiges Verfahren zum Lokalisieren von Programmen.
%description -l fr
-La librarie gettext fournit des outils et une librairie simple à utiliser
-pour manipuler, créer, et modifier des catalogues de langage naturel. C'est
-une méthode simple et puissante pour internationnaliser les programmes.
+La librarie gettext fournit des outils et une librairie simple à
+utiliser pour manipuler, créer, et modifier des catalogues de langage
+naturel. C'est une méthode simple et puissante pour internationnaliser
+les programmes.
%description -l pl
Pakiet gettext dostarcza narzêdzi do tworzenia, u¿ywania i modyfikacji
lokalizacji (internationalizacji) programów.
%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.
+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.
+
+%package devel
+Summary: Utilties for program national language support
+Summary(de): Utilities zum Programmieren von nationaler Sprachunterstützung
+Summary(fr): Utilitaires pour le support de la langue nationnalepar les programmes
+Summary(pl): Narzêdzia dla programów ze wsparciem dla jêzyków narodowych
+Summary(tr): Desteði için kitaplýk ve araçlar
+Group: Development/Tools
+Requires: %{name} = %{version}-%{release}
+Requires: autoconf >= 2.50
+Requires: iconv
+
+%description devel
+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.
+
+%description devel -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.
+
+%package -n xemacs-po-mode-pkg
+Summary: Xemacs PO-mode
+Summary(pl): Tryb PO dla Xemacsa
+Group: Applications/Editors/Emacs
+Requires: xemacs
+
+%description -n xemacs-po-mode-pkg
+Emacs PO-mode.
+
+%description -n xemacs-po-mode-pkg -l pl
+Tryb edycji PO dla emacsa.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
-%patch4 -p1
+%patch3 -p1
%build
+rm -f m4/libtool.m4 aclocal.m4
+libtoolize --copy --force
+#aclocal --acdir=m4 -I $(aclocal --print-ac-dir)
+aclocal -I m4
autoconf
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-./configure %{_target} \
- --enable-shared \
- --with-included-gettext \
- --prefix=/usr
-make
+automake -a -c
+%configure \
+ %{?!_without_xemacs:--with-lispdir=%{_datadir}/xemacs-packages/lisp/po-mode} \
+ --enable-nls \
+ --without-included-gettext
+%{__make}
+
+%{?!_without_xemacs:cd misc}
+%{?!_without_xemacs:EMACS=%{_bindir}/xemacs ./elisp-comp ./po-mode.el}
%install
rm -rf $RPM_BUILD_ROOT
-make install \
- prefix=$RPM_BUILD_ROOT/usr
+install -d $RPM_BUILD_ROOT/bin
-strip $RPM_BUILD_ROOT/usr/bin/* || :
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
-gzip -9nf $RPM_BUILD_ROOT%{_infodir}/* \
- ABOUT-NLS AUTHORS BUGS ChangeLog DISCLAIM NEWS README* THANKS TODO
+mv -f $RPM_BUILD_ROOT%{_bindir}/gettext $RPM_BUILD_ROOT/bin/gettext
-%post
-/sbin/install-info %{_infodir}/gettext.info.gz /etc/info-dir
+gzip -9nf AUTHORS BUGS ChangeLog DISCLAIM NEWS README* THANKS TODO
-%preun
-if [ "$1" = 0 ]; then
- /sbin/install-info --delete %{_infodir}/gettext.info.gz /etc/info-dir
-fi
+%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
-%files
+%post devel
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+
+%postun devel
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%attr(755,root,root) /bin/*
+
+%files devel
%defattr(644,root,root,755)
%doc *.gz
-%attr(755,root,root) /usr/bin/*
-%{_infodir}/*info*.gz
-%{_datadir}/aclocal/*
+%attr(755,root,root) %{_bindir}/*
+%{_infodir}/*info*
+%{_aclocaldir}/*
%{_datadir}/gettext
-%lang(da) %{_datadir}/locale/da/LC_MESSAGES/gettext.mo
-%lang(de) %{_datadir}/locale/de/LC_MESSAGES/gettext.mo
-%lang(es) %{_datadir}/locale/es/LC_MESSAGES/gettext.mo
-%lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/gettext.mo
-%lang(nl) %{_datadir}/locale/nl/LC_MESSAGES/gettext.mo
-%lang(no) %{_datadir}/locale/no*/LC_MESSAGES/gettext.mo
-%lang(ko) %{_datadir}/locale/ko/LC_MESSAGES/gettext.mo
-%lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/gettext.mo
-%lang(pt) %{_datadir}/locale/pt/LC_MESSAGES/gettext.mo
-%lang(sl) %{_datadir}/locale/sl/LC_MESSAGES/gettext.mo
-%lang(sv) %{_datadir}/locale/sv/LC_MESSAGES/gettext.mo
-
-%changelog
-* Mon Apr 12 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- [0.10.35-9]
-- standarized {un}registering info pages (added gettext-info.patch),
-- removed emacs-po_mode subpackage (it would be beter add po mode macros
- directly in [x]emacs packages).
-
-* Sat Sep 26 1998 Arkadiusz Mi¶kiewicz <misiek@misiek.eu.org>
-- corrected pl translation.
-
-* 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).
-
-* Sat Aug 22 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- [0.10.35-1]
-- added missing %attr in %files for emacs-po_mode.
-
-* Fri May 15 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- [0.10.35-1]
-- %%{version} macro instead %%{PACKAGE_VERSION},
-- added -q %setup parameter,
-- added using %%{name} and %%{version} macro in Buildroot,
-- removed Packager field from spec (if you want recompile package and
- redistribute this package later put this in your private .rpmrc).
-- added making emacsc-po_mode subpackage with emac extension for editing .po
- files,
-- added %lang macros for %{_datadir}/locale/*/LC_MESSAGES/gettext.mo files,
-- added %defattr macro in %files (require rpm >= 2.4.99).
-
-* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
- [0.10-5]
-- 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
+%{_mandir}/man3/*
+
+%{?!_without_xemacs:%files -n xemacs-po-mode-pkg}
+%{?!_without_xemacs:%defattr(644,root,root,755)}
+%{?!_without_xemacs:%dir %{_datadir}/xemacs-packages/lisp/po-mode}
+%{?!_without_xemacs:%{_datadir}/xemacs-packages/lisp/po-mode/*.elc}