]> git.pld-linux.org Git - packages/gettext.git/blobdiff - gettext.spec
- devel subpackage R: iconv
[packages/gettext.git] / gettext.spec
index f891f03f748ed66cb94c28975ad7174a11569c7d..2de35358fff451685d48b0bd83e718948c2c7e77 100644 (file)
@@ -1,38 +1,42 @@
+# _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:       9
-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
-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
@@ -40,108 +44,102 @@ katalog
 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
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-./configure %{_target} \
-       --enable-shared \
-       --with-included-gettext \
-       --prefix=/usr
-make
+rm -f m4/libtool.m4 aclocal.m4
+libtoolize --copy --force
+#aclocal --acdir=m4 -I $(aclocal --print-ac-dir)
+aclocal -I m4
+autoconf
+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/usr/info/* \
-       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 /usr/info/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 /usr/info/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/*
-/usr/info/*info*.gz
-/usr/share/aclocal/*
-/usr/share/gettext
-%lang(da) /usr/share/locale/da/LC_MESSAGES/gettext.mo
-%lang(de) /usr/share/locale/de/LC_MESSAGES/gettext.mo
-%lang(es) /usr/share/locale/es/LC_MESSAGES/gettext.mo
-%lang(fr) /usr/share/locale/fr/LC_MESSAGES/gettext.mo
-%lang(nl) /usr/share/locale/nl/LC_MESSAGES/gettext.mo
-%lang(no) /usr/share/locale/no*/LC_MESSAGES/gettext.mo
-%lang(ko) /usr/share/locale/ko/LC_MESSAGES/gettext.mo
-%lang(pl) /usr/share/locale/pl/LC_MESSAGES/gettext.mo
-%lang(pt) /usr/share/locale/pt/LC_MESSAGES/gettext.mo
-%lang(sl) /usr/share/locale/sl/LC_MESSAGES/gettext.mo
-%lang(sv) /usr/share/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 /usr/share/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
+%attr(755,root,root) %{_bindir}/*
+%{_infodir}/*info*
+%{_aclocaldir}/*
+%{_datadir}/gettext
+%{_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}
This page took 0.080501 seconds and 4 git commands to generate.