]> git.pld-linux.org Git - packages/texinfo.git/blobdiff - texinfo.spec
- fix permision to /usr/share/info/dir (in texinfo-fir-info-dir.patch)
[packages/texinfo.git] / texinfo.spec
index b1c7be2489786037e0256b610aab3295896219f6..321321c72ec324f692952477b5f497fbe2ec4837 100644 (file)
@@ -1,47 +1,80 @@
-Summary:       texinfo formatter and info reader
-Summary(de):   texinfo-Formatier- und Leseprogramm
-Summary(fr):   Formatteur texinfo et lecteur pour info.
-Summary(pl):   Texinfo -- formatter plików texinfo
+Summary:       Tools needed to create Texinfo format documentation files
+Summary(de):   Tools zum Erstellen von texinfo-Dokumentationsdateien
+Summary(fr):   Outils créant des documentations au format texinfo
+Summary(pl):   Narzêdzia potrzebne przy tworzeniu dokumentacji w formacie texinfo
 Summary(tr):   texinfo biçimleyici ve info okuyucu
 Name:          texinfo
-Version:       3.12f
-Release:       6
+Version:       3.12s
+Release:       3
 Copyright:     GPL
 Group:         Applications/Publishing
 Group(pl):     Aplikacje/Publikowanie
 Source:                ftp://prep.ai.mit.edu/pub/gnu/%{name}-%{version}.tar.gz
-Source1:       info-dir
-Source2:       info.wmconfig
-Patch0:                texinfo-exe.patch
+Source1:       info.desktop
 Patch1:                texinfo-fix.patch
-Patch2:                texinfo-alpha-tioc.patch
 Patch3:                texinfo-zlib.patch
 Patch4:                texinfo-info.patch
-BuildPrereq:   autoconf >= 1.13-8
-Prereq:                /sbin/install-info
+Patch5:                texinfo-version.texi.patch
+Patch6:                texinfo-DESTDIR.patch
+Patch7:                texinfo-fix-info-dir.patch
+BuildRequires: zlib-devel
+Prereq:                /usr/sbin/fix-info-dir
 Requires:      info = %{version}
+Requires:      mktemp
 Buildroot:     /tmp/%{name}-%{version}-root
 
+%define                _sysconfdir     /etc
+
 %description
-The GNU project uses the texinfo file format for much of its documentation. 
-This package includes the tools necessary to create .info files from .texinfo 
-source files, as well as an emacs interface to all these tools.
+Texinfo is a documentation system that can produce both online information
+and printed output from a single source file. Normally, you'd have to write
+two separate documents: one for online help or other online information and
+the other for a typeset manual or other printed work. Using Texinfo, you
+only need to write one source document. Then when the work needs revision,
+you only have to revise one source document. The GNU Project uses the
+Texinfo file format for most of its documentation.
+
+Install texinfo if you want a documentation system for producing both online
+and print documentation from the same source file and/or if you are going to
+write documentation for the GNU Project.
 
 %description -l de
-Das GNU-Projekt verwendet das Dateiformtat 'texinfo' für den Großteil der
-Dokumentation. Dieses Paket enthält Tools zum Erstellen von .info-Dateien aus
-.texinfo-Quelldateien und eine emacs-Schnittstelle für diese Tools.
+Texinfo ist ein Dokumentationssystem, das sowohl Online-Information und
+gedruckte Ausgabe von einer einzigen Source-Datei erzeugen kann.
+Normalerweise würden Sie zwei verschiedene Dokumente schreiben, eins für
+Onlinehilfe und eins für ein gedrucktes Handbuch. Mit Texinfo reicht es, ein
+Dokument zu schreiben (und später zu aktualisieren). Das GNU-Projekt benutzt
+texinfo für den größten Teil seiner Dokumentation.
+
+Installieren Sie texinfo, wenn Sie ein Dokumentationssystem für Online- und
+gedruckte Dokumentation brauchen, oder wenn Sie Dokumentationen für das
+GNU-Projekt schreiben wollen.
 
 %description -l fr
-Le projet GBU utilise le format de fichier texinfo pour la plupart de sa
-documentation. Ce paquetage contient les outils pour créer des fichiers .info
-à partir des fichiers sources .texinfo, ainsi qu'une interface emacs pour tous
-ces outils.
+Texinfo est un système de documentation capable de produire de la
+documentation online ou imprimée à partir d'un seul fichier. 
+Habituellement, il faut écrire deux documents : l'un orienté hypertexte,
+l'autre axé sur une présentation de type PAO. En utilisant texinfo, vous
+n'avez plus besoin que d'un seul fichier source. Le projet GNU utilie le
+format de fichier Texinfo pour la plupart de ses documentations.
+
+Vous devriez installer texinfo si vous compter écrire des documents en ligne
+et sur papier à partir du même fichier ou si vous désirez écrire une
+documentation pour le projet GNU.
 
 %description -l pl
-Projekty GNU u¿ywaj± formatu texinfo do tworzenia dokumentacji. W pakiecie 
-tym znajduj± siê narzêdzia potrzebne do tworzenia plików info ze ¼ród³owych 
-*.texinfo, a tak¿e interface dla GNU Emacs. 
+Texinfo jest systemem dokumentowania umo¿liwiaj±cym wyprodukowanie zarówno
+dokumentacji online jak i postaci do wydruku z pojedynczego pliku
+¼ród³owego. bardzo czêsto piszê siedwie dokumentacje: jedna do przegl±dania
+online i inna do przyszykowanai wysokiej jako¶ci postaci drukowane. U¿ywaj±c
+Texinfo do powy¿szego potzrebujesz przygotowaæ dokumentacjê tylko w jednej
+postaci ¼ród³owej. Podczas modyfikacji dokumentacji modyfikujesz w takim
+razie tylko jeden dokument. Wiêkszo¶æ projektów GNU u¿ywa do dukumentowania
+formatu Texinfo.
+
+Zainstaluj Texinfo je¿eli potzrebujesz sporz±dzaæ dokumentacjê która bêdzie
+przegl±dana zarówno online jak i bêdzie drukowan lub je¿eli zamierzasz pisaæ
+dokumentacjê do projektów GNU.
 
 %description -l tr
 GNU projesi, belgelemesinin büyük bölümünde texinfo dosyalarýný kullanýr.
@@ -49,9 +82,9 @@ Bu paket, texinfo dosyalar
 araçlarla birlikte, tüm bu araçlar için bir emacs arayüzü de sunar.
 
 %package -n info
-Summary:       standalone tty based reader for GNU texinfo documents
-Summary(de):   Unabhängiges tty-basiertes Leseprogramm für GNU-texinfo-Dokumente
-Summary(fr):   Lecteur autonome de documents texinfo pour terminal.
+Summary:       A stand-alone TTY-based reader for GNU texinfo documentation.
+Summary(de):   Ein TTY-basiertes Leseprogramm für GNU info-Dokumentation.
+Summary(fr):   un lecteur de documentations info
 Summary(pl):   Samodzielny, bazuj±cy na terminalu czytnik dokumentów GNU texinfo
 Summary(tr):   GNU texinfo belgeleri için tty tabanlý görüntüleyici
 Group:         Utilities/System
@@ -81,57 +114,65 @@ bulunur.
 
 %prep
 %setup -q
-%patch0 -p1
 %patch1 -p1
-%patch2 -p1
-%patch3 -p1
+%patch3 -p1 
 %patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1 
 
 %build
+ln -s version.texi doc/version2.texi
+automake
+gettextize --copy --force
+aclocal
 autoconf
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-./configure %{_target} \
-       --prefix=/usr \
+LDFLAGS="-s -lz"; export LDFLAGS
+%configure \
        --without-included-gettext
 make
 rm util/install-info
-make -C util LIBS=-lz
+make -C util 
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/{etc/X11/wmconfig,sbin}
-
-make install prefix=$RPM_BUILD_ROOT/usr
+install -d $RPM_BUILD_ROOT{/usr/X11R6/share/applnk/Utilities,%{_sbindir}} \
+       $RPM_BUILD_ROOT{/sbin,%{_sysconfdir}}
 
-install util/fix-info-dir $RPM_BUILD_ROOT/sbin
+make install DESTDIR=$RPM_BUILD_ROOT
 
-install %{SOURCE1} $RPM_BUILD_ROOT/etc/info-dir
-ln -sf ../../../etc/info-dir $RPM_BUILD_ROOT/usr/share/info/dir
+install util/fix-info-dir $RPM_BUILD_ROOT%{_sbindir}
 
-mv -f $RPM_BUILD_ROOT/usr/bin/install-info $RPM_BUILD_ROOT/sbin
+mv -f $RPM_BUILD_ROOT%{_bindir}/install-info $RPM_BUILD_ROOT%{_sbindir}
+ln -s %{_sbindir}/install-info $RPM_BUILD_ROOT/sbin/install-info
 
-install %{SOURCE2} $RPM_BUILD_ROOT/etc/X11/wmconfig/info
+install %{SOURCE1} $RPM_BUILD_ROOT/usr/X11R6/share/applnk/Utilities
 
-gzip -9nf $RPM_BUILD_ROOT/usr/share/info/*info* \
+gzip -9nf $RPM_BUILD_ROOT%{_infodir}/*info* \
        ChangeLog INTRODUCTION NEWS README info/README
+
+%find_lang %{name}
+
 %post
-/sbin/install-info /usr/info/texinfo.gz /etc/info-dir
+/usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
-%preun
-if [ "$1" = "0" ]; then
-       /sbin/install-info --delete /usr/share/info/texinfo.gz /etc/info-dir
-fi
+%postun
+/usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
 %pre -n info
 if [ -e /usr/info ] && [ ! -L /usr/info ]; then
-       mv -f /usr/info/* /usr/share/info
+       cp -af /usr/info %{_infodir} 
 fi
 
 %post -n info
 if [ -e /usr/info ] && [ ! -L /usr/info ]; then
-       rm -rf /usr/info/
-       ln -sf /usr/share/info /usr/info
+       rm -rf /usr/info
+       ln -sf %{_infodir} /usr/info
+fi
+if [ -L %{_infodir}/dir ]; then
+       rm -f %{_infodir}/dir
 fi
+/usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -139,84 +180,21 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc {ChangeLog,INTRODUCTION,NEWS,README,info/README}.gz
-%attr(755,root,root) /usr/bin/*
-/usr/share/info/info-stnd.info*
-/usr/share/info/texinfo*
+%attr(755,root,root) %{_bindir}/makeinfo
+%attr(755,root,root) %{_bindir}/texi2dvi
+%attr(755,root,root) %{_bindir}/texindex
 
-%files -n info
+%{_infodir}/texinfo*
+
+%files -n info -f texinfo.lang
 %defattr(644,root,root,755)
-%config(missingok) /etc/X11/wmconfig/info
-%config(noreplace) %verify(not mtime size md5) /etc/info-dir
-%config /usr/share/info/dir
-%attr(755,root,root) /usr/bin/info
-/usr/share/info/info.info*
+%attr(755,root,root) %{_bindir}/info
 %attr(755,root,root) /sbin/install-info
-%attr(755,root,root) /sbin/fix-info-dir
-%lang(cs)    /usr/share/locale/cs/LC_MESSAGES/texinfo.mo
-%lang(de)    /usr/share/locale/de/LC_MESSAGES/texinfo.mo
-%lang(de_AT) /usr/share/locale/de_AT/LC_MESSAGES/texinfo.mo
-%lang(fr)    /usr/share/locale/fr/LC_MESSAGES/texinfo.mo
-%lang(nl)    /usr/share/locale/nl/LC_MESSAGES/texinfo.mo
-%lang(no)    /usr/share/locale/no/LC_MESSAGES/texinfo.mo
-%lang(ru)    /usr/share/locale/ru/LC_MESSAGES/texinfo.mo
-
-%changelog
-* Thu Apr  1 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [3.12f-5]
-- removed man group from man pages,
-- more locales (cs , de_AT, nl, no, ru),
-- gzipping %doc
-- added --without-included-gettext to ./configure parameters (smaler binary)
-- added texinfo-info.patch,
-- added /sbin/fix-info-dir.
-
-* Fri Oct  9 1998 Ziemek Borowski <ziembor@faq-bot.ceu.edu.pl>
-  [3.12-5]
-- more restricted permision to binaries,
-- added texinfo-3.12-fix.patch,
-- fixed spec Polish translation. 
-
-* Tue Oct 06 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
-- added pl translation,
-- restricted ELF binaries permissions,
-- minor modifications of the spec file.
-
-* Thu May 07 1998 Prospector System <bugs@redhat.com>
-- translations modified for de, fr, tr
-
-* Sun Apr 12 1998 Cristian Gafton <gafton@redhat.com>
-- added %clean
-- manhattan build
-
-* Wed Mar 04 1998 Cristian Gafton <gafton@redhat.com>
-- upgraded to version 3.12
-- added buildroot
-
-* Sun Nov 09 1997 Donnie Barnes <djb@redhat.com>
-- moved /usr/info/dir to /etc/info-dir and made /usr/info/dir a
-  symlink to /etc/info-dir.
-
-* Wed Oct 29 1997 Donnie Barnes <djb@redhat.com>
-- added wmconfig entry for info
-
-* Wed Oct 01 1997 Donnie Barnes <djb@redhat.com>
-- stripped /sbin/install-info
-
-* Mon Sep 22 1997 Erik Troan <ewt@redhat.com>
-- added info-dir to filelist
-
-* Sun Sep 14 1997 Erik Troan <ewt@redhat.com>
-- added patch from sopwith to let install-info understand gzip'ed info files
-- use skeletal dir file from texinfo tarball (w/ bash entry to reduce
-  dependency chain) instead (and install-info command everywhere else)
-- patches install-info to handle .gz names correctly
-
-* Tue Jun 03 1997 Erik Troan <ewt@redhat.com>
-- built against glibc
-
-* Tue Feb 25 1997 Erik Troan <ewt@redhat.com>
-- patched install-info.c for glibc.
-- added /usr/bin/install-info to the filelist
-
-* Tue Feb 18 1997 Michael Fulbright <msf@redhat.com>
-- upgraded to version 3.9.
+%attr(755,root,root) %{_sbindir}/fix-info-dir
+%attr(755,root,root) %{_sbindir}/install-info
+
+/usr/X11R6/share/applnk/Utilities/info.desktop
+
+%ghost %{_infodir}/dir
+%{_infodir}/info.info*
+%{_infodir}/info-stnd.info*
This page took 0.087409 seconds and 4 git commands to generate.