%define name texinfo %define version 4.13a %define release %mkrel 10 %define bootstrap 0 %{?_without_bootstrap: %global bootstrap 0} %{?_with_bootstrap: %global bootstrap 1} Name: %{name} Version: %{version} Release: %{release} Summary: Tools needed to create Texinfo format documentation files License: GPLv3 Group: Publishing URL: http://www.texinfo.org/ Source0: ftp://ftp.gnu.org/pub/gnu/texinfo/%{name}-%{version}.tar.lzma Source1: info-dir Patch1: texinfo-3.12h-fix.patch Patch2: texinfo-4.13-test.patch Patch3: texinfo-4.13-fix-crash-used-parallel.patch Patch107: texinfo-4.13-vikeys-segfault-fix.patch Patch108: texinfo-4.13-xz.patch # backported from cvs Patch109: texinfo-4.13-use-size_t-for-len.patch # Local fixes submitted upstream Patch200: texinfo-4.13-mb_modeline.patch # Upstream/Gentoo patch to fix accent encoding test Patch201: texinfo-4.13-accentenc-test.patch # (anssi 01/2008) for make check: %if %bootstrap == 0 BuildRequires: tetex BuildRequires: tetex-latex %endif BuildRequires: ncurses-devel BuildRequires: zlib-devel BuildRequires: help2man Requires(pre): info-install Requires(preun): info-install %description 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. %package -n info Summary: A stand-alone TTY-based reader for GNU texinfo documentation Group: System/Base Requires(pre): info-install Requires(preun): info-install %description -n info The GNU project uses the texinfo file format for much of its documentation. The info package provides a standalone TTY-based browser program for viewing texinfo files. You should install info, because GNU's texinfo documentation is a valuable source of information about the software on your system. %package -n info-install Summary: Program to update the GNU texinfo documentation main page Group: System/Base Requires: xz # explicit file provides Provides: /sbin/install-info Conflicts: dpkg < 1.16.8-6 %description -n info-install The GNU project uses the texinfo file format for much of its documentation. The info package provides a standalone TTY-based browser program for viewing texinfo files. %package tex Summary: Tools for formatting Texinfo documentation files using TeX Group: Publishing Requires: texinfo = %{version}-%{release} Requires: texmf-data Requires: texlive Requires(post): texlive Requires(postun): texlive # conflict necessary for upgrade (version is when the tex subpackage is created) Conflicts: texinfo < 4.13a-4 %description tex Texinfo is a documentation system that can produce both online information and printed output from a single source file. The GNU Project uses the Texinfo file format for most of its documentation. The texinfo-tex package provides tools to format Texinfo documents for printing using TeX. %prep %setup -qn %name-4.13 %patch1 -p1 %patch2 -p1 -b .test~ %patch3 -p1 -b .parallel~ %patch107 -p1 %patch108 -p1 -b .xz~ %patch109 -p1 -b .size_t~ %patch200 -p1 -b .mb_modeline %patch201 -p1 %build %configure2_5x \ --disable-rpath %make rm -f util/install-info %make -C util LIBS=%{_libdir}/libz.a %check # all tests must pass make check %install %makeinstall_std install -m644 %{SOURCE1} -D %{buildroot}%{_sysconfdir}/info-dir rm -rf %{buildroot}%{_infodir}/dir ln -s %{_sysconfdir}/info-dir %{buildroot}%{_infodir}/dir mkdir -p %{buildroot}/sbin mv %{buildroot}%{_bindir}/install-info %{buildroot}/sbin/install-info mkdir -p %{buildroot}%{_sysconfdir}/X11/wmconfig # Doc install for the tex subpackage (from Fedora) mkdir -p %{buildroot}%{_datadir}/texmf/tex/texinfo install -p -m644 doc/texinfo.tex doc/txi-??.tex %{buildroot}%{_datadir}/texmf/tex/texinfo %find_lang %{name} %post %_install_info %{name} %preun %_remove_install_info %{name} %post -n info %_install_info info.info %preun -n info %_remove_install_info info.info %files -f %{name}.lang %doc AUTHORS INTRODUCTION NEWS README TODO %doc info/README %{_bindir}/makeinfo %{_infodir}/info-stnd.info* %{_infodir}/texinfo* %{_mandir}/man1/makeinfo.1* %{_mandir}/man5/texinfo.5* %{_datadir}/texinfo %files -n info %{_bindir}/info %{_infodir}/info.info* %{_bindir}/infokey %files -n info-install %config(noreplace) %attr(644,root,root) %{_sysconfdir}/info-dir %{_infodir}/dir /sbin/install-info %{_mandir}/man1/info.1* %{_mandir}/man1/infokey.1* %{_mandir}/man1/install-info.1* %{_mandir}/man5/info.5* %files tex %{_bindir}/texindex %{_bindir}/texi2dvi %{_bindir}/texi2pdf %{_bindir}/pdftexi2dvi %{_datadir}/texmf/tex/texinfo %{_mandir}/man1/texindex.1* %{_mandir}/man1/texi2dvi.1* %{_mandir}/man1/texi2pdf.1* %{_mandir}/man1/pdftexi2dvi.1*