]> git.pld-linux.org Git - packages/texinfo.git/blobdiff - texinfo.spec
- updated for 4.11
[packages/texinfo.git] / texinfo.spec
index f9b3d76d1b48eb7569eca596be2769fda772ede2..1025d57335b1dc436e5fa1dc78e10625b893e40a 100644 (file)
-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(tr):   texinfo biçimleyici ve info okuyucu
+Summary:       Tools needed to create Texinfo format documentation files
+Summary(de.UTF-8):     Tools zum Erstellen von texinfo-Dokumentationsdateien
+Summary(es.UTF-8):     Formateador texinfo y lector de archivos info
+Summary(fr.UTF-8):     Outils créant des documentations au format texinfo
+Summary(pl.UTF-8):     Narzędzia potrzebne przy tworzeniu dokumentacji w formacie texinfo
+Summary(pt_BR.UTF-8):  Formatador texinfo e leitor de arquivos info
+Summary(ru.UTF-8):     Инструменты для создания файлов документации формата Texinfo
+Summary(tr.UTF-8):     texinfo biçimleyici ve info okuyucu
+Summary(uk.UTF-8):     Інструменти для створення файлів документації формату Texinfo
 Name:          texinfo
-Version:       3.12h
+Version:       4.9
 Release:       1
-Copyright:     GPL
+License:       GPL v3+
 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
-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
-Requires:      info = %{version}
-Buildroot:     /tmp/%{name}-%{version}-root
+Source0:       ftp://ftp.gnu.org/gnu/texinfo/%{name}-%{version}.tar.bz2
+# Source0-md5: f4458e4b81e5469fa0815c35654141ab
+Source1:       info.desktop
+Patch0:                %{name}-info.patch
+Patch1:                %{name}-CVE-2005-3011.patch
+Patch2:                %{name}-as_needed-fix.patch
+Patch3:                %{name}-pl.po-update.patch
+URL:           http://texinfo.org/
+BuildRequires: autoconf >= 2.59
+BuildRequires: automake >= 1:1.8
+#BuildRequires:        gettext-autopoint >= 0.14.1
+BuildRequires: gettext-devel >= 0.14.1
+BuildRequires: ncurses-devel >= 5.0
+BuildRequires: sed >= 4.0
+BuildRequires: zlib-devel
+Requires:      info = %{version}-%{release}
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %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.
-
-%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.
-
-%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.
-
-%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. 
-
-%description -l tr
-GNU projesi, belgelemesinin büyük bölümünde texinfo dosyalarýný kullanýr.
-Bu paket, texinfo dosyalarýndan info dosyalarýnýn türetilmesini saðlayan
-araçlarla birlikte, tüm bu araçlar için bir emacs arayüzü de sunar.
+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.
+
+%description -l de.UTF-8
+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.
+
+%description -l es.UTF-8
+Texinfo es un sistema de documentación que puede producir tanto,
+información online como salida impresa a partir de un único archivo
+fuente. Generalmente, tenía que escribir dos documentos por separado:
+uno para la ayuda u otro tipo de información online, y otro para un
+manual u otro tipo de trabajos impresos. Usando Texinfo, basta con
+escribir un único documento fuente. El día que sea necesaria una
+revisión del trabajo, sólo tendrá que revisar un único documento. El
+Proyecto GNU usa el formato de archivo Texinfo para la mayoría de su
+documentación.
+
+Instale Texinfo si quiere un sistema de documentación para producir
+tanto documentación online como impresa a partir del mismo archivo
+fuente y si va a escribir documentación para el Proyecto GNU.
+
+%description -l fr.UTF-8
+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.
+
+%description -l pl.UTF-8
+Texinfo jest systemem dokumentowania umożliwiającym wyprodukowanie
+zarówno dokumentacji online jak i w postaci do wydruku z pojedynczego
+pliku źródłowego. Bardzo często pisze się dwie dokumentacje: jedną do
+przeglądania online i drugą do przyszykowania wysokiej jakości postaci
+drukowanej. Używając Texinfo do powyższego potrzebujesz 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 dokumentowania formatu Texinfo.
+
+%description -l pt_BR.UTF-8
+O texinfo é um sistema de documentação que pode produzir tanto
+informação on-line como saída impressa a partir de um único
+arquivo-fonte. Geralmente, você teria que escrever dois documentos
+separados: um para ajuda on-line ou outro tipo de informação on-line,
+e outro para um manual ou outro tipo de trabalho impresso. Usando o
+Texinfo, basta escrever um único documento-fonte. Quando houver
+necessidade de revisão, é preciso apenas revisar um único
+documento-fonte. O projeto GNU usa o formato de arquivo texinfo para a
+maioria da sua documentação.
+
+%description -l ru.UTF-8
+Проект GNU использует формат texinfo для большинства документации,
+созданной в его рамках. Этот пакет включает инструменты, необходимые
+для создания файлов .info из исходных файлов .texinfo и интерфейс к
+emacs для всех этих инструментов.
+
+%description -l tr.UTF-8
+[6~GNU projesi, belgelemesinin büyük bölümünde texinfo dosyalarını
+kullanır. Bu paket, texinfo dosyalarından info dosyalarının
+türetilmesini sağlayan araçlarla birlikte, tüm bu araçlar için bir
+emacs arayüzü de sunar.
+
+%description -l uk.UTF-8
+Проект GNU використовує формат texinfo для більшості документації,
+створеної в його рамках. Цей пакет містить інструменти, потрібні для
+створення файлів .info з вхідних файлів .texinfo та інтерфейс до emacs
+для всіх цих інструментів.
 
 %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(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
-Group(pl):     Narzêdzia/System
+Summary:       A stand-alone TTY-based reader for GNU texinfo documentation
+Summary(de.UTF-8):     Ein TTY-basiertes Leseprogramm für GNU info-Dokumentation
+Summary(es.UTF-8):     Lector basado en tty para documentos texinfo GNU
+Summary(fr.UTF-8):     un lecteur de documentations info
+Summary(pl.UTF-8):     Samodzielny, terminalowy czytnik dokumentów GNU texinfo
+Summary(pt_BR.UTF-8):  Leitor baseado em tty para documentos texinfo GNU
+Summary(ru.UTF-8):     Программа для просмотра документов в формате GNU texinfo на текстовой консоли
+Summary(tr.UTF-8):     GNU texinfo belgeleri için tty tabanlı görüntüleyici
+Summary(uk.UTF-8):     Програма для перегляду документів в форматі GNU texinfo на текстовому терміналі
+Group:         Applications/System
+Requires:      fix-info-dir
+Obsoletes:     info-install
 
 %description -n info
-The GNU project uses the texinfo file format for much of its documentation. 
-This package includes a standalone browser program to view these files.
+The GNU project uses the texinfo file format for much of its
+documentation. This package includes a standalone browser program to
+view these files.
+
+%description -n info -l de.UTF-8
+Das GNU-Projekt benutzt das texinfo-Dateiformat für den Großteil
+seiner Dokumentation. Dieses Paket enthält ein selbständiges
+Browser-Programm zum Einsehen dieser Dateien.
+
+%description -n info -l fr.UTF-8
+Le projet GNU utilise le format de fichier texinfo pour la plupart de
+sa documentation. Ce paquetage contient un navigateur pour visualiser
+ces fichiers.
+
+%description -n info -l pl.UTF-8
+Projekty GNU używają formatu texinfo do tworzenia dokumentacji. Pakiet
+ten zawiera samodzielną przeglądarkę tychże plików.
+
+%description -n info -l pt_BR.UTF-8
+O projeto GNU usa o formato de arquivos texinfo para a maioria de sua
+documentação. Este pacote inclui um browser para visualização destes
+arquivos.
+
+%description -n info -l ru.UTF-8
+Проект GNU использует формат texinfo для большинства документации,
+созданной в его рамках. Этот пакет включает программу для просмотра
+документов в формате GNU texinfo на текстовой консоли.
+
+%description -n info -l tr.UTF-8
+Bu pakette, info biçimindeki dosyaları okumak için bir görüntüleyici
+bulunur.
 
-%description -l de -n info
-Das GNU-Projekt benutzt das texinfo-Dateiformat für den Großteil seiner
-Dokumentation. Dieses Paket enthält ein selbständiges Browser-Programm 
-zum Einsehen dieser Dateien. 
+%description -n info -l uk.UTF-8
+Проект GNU використовує формат texinfo для більшості документації,
+створеної в його рамках. Цей пакет містить програму для перегляду
+документів в форматі GNU texinfo на текстовому терміналі.
 
-%description -l fr -n info
-Le projet GNU utilise le format de fichier texinfo pour la plupart de sa
-documentation. Ce paquetage contient un navigateur pour visualiser ces
-fichiers.
+%package texi2dvi
+Summary:       Texinfo to dvi conversion tool
+Summary(pl.UTF-8):     Narzędzie do konwersji texinfo na dvi
+Group:         Applications/Publishing
+Requires:      %{name} = %{version}-%{release}
+Requires:      tetex-fonts-latex
+# R: tetex 3.0 to avoid texi2pdf file conflict with tetex 2.0
+Requires:      tetex-format-pdfetex >= 1:3.0
+Requires:      tetex-format-plain
 
-%description -l pl -n info
-Projekty GNU u¿ywaj± formatu texinfo do tworzenia dokumentacji.
-Pakiet ten zawiera samodzieln± przegl±darkê tych¿e plików.
+%description texi2dvi
+Texinfo to dvi conversion tool.
 
-%description -l tr -n info
-Bu pakette, info biçimindeki dosyalarý okumak için bir görüntüleyici
-bulunur.
+%description texi2dvi -l pl.UTF-8
+Narzędzie do konwersji plików texinfo na dvi.
 
 %prep
 %setup -q
 %patch0 -p1
-%patch1 -p1
+%patch1 -p2
 %patch2 -p1
 %patch3 -p1
-%patch4 -p1
+
+# nb was added but outdated no not removed
+sed -i -e '/^no$/d' po/LINGUAS
+rm -f po/stamp-po
 
 %build
-autoconf
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-./configure %{_target} \
-       --prefix=/usr \
-       --without-included-gettext
-make
-rm util/install-info
-make -C util LIBS=-lz
+# don't touch - too fresh m4 macros required (newer than in gettext 0.14.1)
+#%%{__autopoint}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__automake}
+%configure
+
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/{etc/X11/wmconfig,sbin}
+install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_sbindir},/sbin}
 
-make install prefix=$RPM_BUILD_ROOT/usr
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
-install util/fix-info-dir $RPM_BUILD_ROOT/sbin
+mv -f $RPM_BUILD_ROOT%{_bindir}/install-info $RPM_BUILD_ROOT%{_sbindir}
+ln -sf %{_sbindir}/install-info $RPM_BUILD_ROOT/sbin/install-info
 
-install %{SOURCE1} $RPM_BUILD_ROOT/etc/info-dir
-ln -sf ../../../etc/info-dir $RPM_BUILD_ROOT%{_infodir}/dir
+install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
 
-mv -f $RPM_BUILD_ROOT/usr/bin/install-info $RPM_BUILD_ROOT/sbin
+%find_lang %{name}
 
-install %{SOURCE2} $RPM_BUILD_ROOT/etc/X11/wmconfig/info
+%clean
+rm -rf $RPM_BUILD_ROOT
 
-gzip -9nf $RPM_BUILD_ROOT%{_infodir}/*info* \
-       ChangeLog INTRODUCTION NEWS README info/README
 %post
-/sbin/install-info %{_infodir}/texinfo.gz /etc/info-dir
-
-%preun
-if [ "$1" = "0" ]; then
-       /sbin/install-info --delete %{_infodir}/texinfo.gz /etc/info-dir
-fi
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
 
-%pre -n info
-if [ -e %{_infodir} ] && [ ! -L /usr/info ]; then
-       mv -f %{_infodir}/* %{_infodir}
-fi
+%postun
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
 
 %post -n info
-if [ -e %{_infodir} ] && [ ! -L /usr/info ]; then
-       rm -rf %{_infodir}/
-       ln -sf %{_infodir} %{_infodir}
-fi
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+/usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
 
 %files
 %defattr(644,root,root,755)
-%doc {ChangeLog,INTRODUCTION,NEWS,README,info/README}.gz
-%attr(755,root,root) /usr/bin/*
-%{_infodir}/info-stnd.info*
+%doc AUTHORS ChangeLog INTRODUCTION NEWS README TODO
+%attr(755,root,root) %{_bindir}/makeinfo
+%attr(755,root,root) %{_bindir}/texindex
+%{_datadir}/texinfo
+
 %{_infodir}/texinfo*
+%{_mandir}/man1/makeinfo.1*
+%{_mandir}/man1/texindex.1*
+%{_mandir}/man5/texinfo.5*
 
-%files -n info
+%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 %{_infodir}/dir
-%attr(755,root,root) /usr/bin/info
-%{_infodir}/info.info*
+%doc info/README
+%attr(755,root,root) %{_bindir}/info
+%attr(755,root,root) %{_bindir}/infokey
 %attr(755,root,root) /sbin/install-info
-%attr(755,root,root) /sbin/fix-info-dir
-%lang(cs)    %{_datadir}/locale/cs/LC_MESSAGES/texinfo.mo
-%lang(de)    %{_datadir}/locale/de/LC_MESSAGES/texinfo.mo
-%lang(de_AT) %{_datadir}/locale/de_AT/LC_MESSAGES/texinfo.mo
-%lang(fr)    %{_datadir}/locale/fr/LC_MESSAGES/texinfo.mo
-%lang(nl)    %{_datadir}/locale/nl/LC_MESSAGES/texinfo.mo
-%lang(no)    %{_datadir}/locale/no/LC_MESSAGES/texinfo.mo
-%lang(ru)    %{_datadir}/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 %{_infodir}/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}/install-info
+
+%{_desktopdir}/info.desktop
+
+%{_infodir}/info.info*
+%{_infodir}/info-stnd.info*
+
+%{_mandir}/man1/info.1*
+%{_mandir}/man1/infokey.1*
+%{_mandir}/man1/install-info.1*
+%{_mandir}/man5/info.5*
+
+%files texi2dvi
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/texi2dvi
+%attr(755,root,root) %{_bindir}/texi2pdf
+%{_mandir}/man1/texi2dvi.1*
This page took 0.118372 seconds and 4 git commands to generate.