# # spec file for package texinfo # # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: texinfo Version: 6.0 Release: 0 Summary: Tools Needed to Create Documentation from Texinfo Sources License: GPL-3.0+ Group: Productivity/Publishing/Texinfo Url: http://www.gnu.org/software/texinfo/ Source0: ftp://ftp.gnu.org/pub/gnu/texinfo/texinfo-%{version}.tar.gz Source1: ftp://ftp.gnu.org/pub/gnu/texinfo/texinfo-%{version}.tar.gz.sig Source2: %{name}.keyring Source10: info-dir Patch1: texinfo-zlib.patch BuildRequires: automake BuildRequires: help2man BuildRequires: libbz2-devel BuildRequires: libpth-devel BuildRequires: libzio-devel BuildRequires: ncurses-devel BuildRequires: perl Requires: perl-Text-Unidecode Requires: perl-gettext Requires: perl-libintl-perl BuildRequires: perl-Text-Unidecode BuildRequires: perl-gettext BuildRequires: perl-libintl-perl BuildRequires: perl-macros BuildRequires: zlib-devel Requires: makeinfo = %{version} Requires: perl Requires(post): %install_info_prereq Requires(preun): %install_info_prereq %if 0%{?suse_version} > 1220 Requires: texlive-bibtex Requires: texlive-latex Requires: texlive-makeindex Requires: texlive-pdftex Requires: texlive-tex Requires: texlive-texinfo %endif %if 0%{?suse_version} > 1310 Recommends: texi2html Recommends: texi2roff %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Texinfo is a documentation system that uses a single source file to produce both online information and printed output. Using Texinfo, you can create a printed document with the normal features of a book, including chapters, sections, cross-references, and indices. From the same Texinfo source file, you can create a menu-driven, online info file with nodes, menus, cross-references, and indices using the included makeinfo tool. %package -n info Summary: A Stand-Alone Terminal-Based Info Browser Group: Productivity/Publishing/Texinfo Requires(pre): bash %description -n info Info is a terminal-based program for reading documentation of computer programs in the Info format. The GNU Project distributes most of its on-line manuals in the Info format, so you need a program called "Info reader" to read the manuals. %package -n makeinfo Summary: Translate Texinfo documents to info format Group: Productivity/Publishing/Texinfo Requires: perl # /usr/share/texinfo/Texinfo/Report.pm uses Locale::Messages Requires: perl(Locale::Messages) # /usr/share/texinfo/Texinfo/Convert/NodeNameNormalization.pm uses Text::Unidecode Requires: perl(Text::Unidecode) Provides: texinfo:/usr/bin/makeinfo Suggests: texinfo %description -n makeinfo Makeinfo translates Texinfo source documentation to various other formats, by default Info files suitable for reading online with Emacs or standalone GNU Info. %prep %setup -q %patch1 -p1 %build %configure --with-external-Text-Unidecode --with-external-libintl-perl --with-gnu-ld make %{?_smp_mflags} %install %make_install if cmp %{buildroot}%{_bindir}/pdftexi2dvi %{buildroot}%{_bindir}/texi2pdf then rm -vf %{buildroot}%{_bindir}/pdftexi2dvi ln -sf texi2pdf %{buildroot}%{_bindir}/pdftexi2dvi fi if cmp %{buildroot}%{_mandir}/man1/pdftexi2dvi.1 %{buildroot}%{_mandir}/man1/texi2pdf.1 then rm -vf %{buildroot}%{_mandir}/man1/pdftexi2dvi.1 ln -sf texi2pdf.1.gz %{buildroot}%{_mandir}/man1/pdftexi2dvi.1.gz fi rm -f %{buildroot}%{_bindir}/makeinfo cp %{buildroot}%{_bindir}/texi2any %{buildroot}%{_bindir}/makeinfo mkdir -p %{buildroot}/sbin mv %{buildroot}%{_bindir}/install-info %{buildroot}/sbin/ ln -sf ../../sbin/install-info %{buildroot}%{_bindir}/install-info install -m 644 %{SOURCE10} %{buildroot}%{_infodir}/dir %find_lang %{name} %{name}.lang %find_lang %{name}_document %{name}_document.lang %post %install_info --info-dir=%{_infodir} %{_infodir}/texinfo.info.gz %preun %install_info_delete --info-dir=%{_infodir} %{_infodir}/texinfo.info.gz %post -n info %install_info --info-dir=%{_infodir} %{_infodir}/info-stnd.info.gz %preun -n info %install_info_delete --info-dir=%{_infodir} %{_infodir}/info-stnd.info.gz %files -f %{name}_document.lang %defattr(-, root, root) %doc ABOUT-NLS AUTHORS COPYING NEWS README TODO %doc doc/texinfo.tex doc/txi-*.tex %{_bindir}/pod2texi %{_bindir}/texi2any %{_bindir}/texi2dvi %{_bindir}/texi2pdf %{_bindir}/texindex %{_bindir}/pdftexi2dvi %{_infodir}/texinfo*.gz %{_mandir}/man1/pod2texi.1.gz %{_mandir}/man1/texi2any.1.gz %{_mandir}/man1/texindex.1.gz %{_mandir}/man1/texi2dvi.1.gz %{_mandir}/man1/texi2pdf.1.gz %{_mandir}/man1/pdftexi2dvi.1.gz %{_mandir}/man5/texinfo.5.gz %files -n makeinfo -f %{name}.lang %defattr(-,root,root) %{_bindir}/makeinfo %{_mandir}/man1/makeinfo.1.gz %{_datadir}/texinfo/ %files -n info %defattr(-,root,root) %config(noreplace) %verify(not md5 size mtime) %{_infodir}/dir /sbin/install-info %{_bindir}/install-info %{_bindir}/info %{_infodir}/info-stnd.info* %{_infodir}/info.info* %{_mandir}/man1/info.1* %{_mandir}/man1/install-info.1* %{_mandir}/man5/info.5* %changelog