%global tex_texinfo %{_datadir}/texlive/texmf-dist/tex/texinfo Summary: Tools needed to create Texinfo format documentation files Name: texinfo Version: 7.1 Release: 1%{?dist} License: GPLv3+ Url: http://www.gnu.org/software/texinfo/ Source0: https://ftp.gnu.org/gnu/texinfo/texinfo-%{version}.tar.xz Source1: https://ftp.gnu.org/gnu/texinfo//texinfo-%{version}.tar.xz.sig BuildRequires: make BuildRequires: gcc BuildRequires: perl-generators BuildRequires: zlib-devel, ncurses-devel, help2man BuildRequires: perl(Data::Dumper), perl(File::Copy) BuildRequires: perl(Locale::Messages), perl(Storable), perl(Text::Unidecode), perl(Unicode::EastAsianWidth) BuildRequires: perl(Unicode::Normalize) # Texinfo perl packages are not installed in default perl library dirs %global __provides_exclude ^perl\\(.*Texinfo.*\\)$ %global __requires_exclude ^perl\\(.*Texinfo.*\\)$ %description 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. 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 %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. %package tex Summary: Tools for formatting Texinfo documentation files using TeX Requires: texinfo = %{version}-%{release} Requires: tex(tex) tex(epsf.tex) Requires(post): %{_bindir}/texconfig-sys Requires(postun): %{_bindir}/texconfig-sys Provides: tex-texinfo Provides: texlive-texinfo Obsoletes: texlive-texinfo <= 9:2019-15 %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 %autosetup -p1 %build %configure --with-external-Text-Unidecode \ --with-external-libintl-perl \ --with-external-Unicode-EastAsianWidth \ --disable-perl-xs %make_build %install mkdir -p %{buildroot}/sbin %make_install mkdir -p %{buildroot}%{tex_texinfo} install -p -m644 doc/texinfo.tex doc/txi-??.tex %{buildroot}%{tex_texinfo} mv %{buildroot}%{_bindir}/install-info %{buildroot}/sbin %find_lang %{name} %find_lang %{name}_document %check export ALL_TESTS=yes %{make_build} check %post tex %{_bindir}/texconfig-sys rehash 2> /dev/null || : %postun tex %{_bindir}/texconfig-sys rehash 2> /dev/null || : %transfiletriggerin -n info -- %{_infodir} [ -f %{_infodir}/dir ] && create_arg="" || create_arg="--create" #%{_sbindir}/fix-info-dir $create_arg %{_infodir}/dir &>/dev/null %transfiletriggerpostun -n info -- %{_infodir} #[ -f %{_infodir}/dir ] && %{_sbindir}/fix-info-dir --delete %{_infodir}/dir &>/dev/null %files -f %{name}.lang -f %{name}_document.lang %doc AUTHORS ChangeLog NEWS README TODO %license COPYING %{_bindir}/makeinfo %{_bindir}/texi2any %{_bindir}/pod2texi %{_datadir}/texinfo %{_infodir}/texinfo* %{_mandir}/man1/makeinfo.1* %{_mandir}/man5/texinfo.5* %{_mandir}/man1/texi2any.1* %{_mandir}/man1/pod2texi.1* %files -n info %license COPYING %{_bindir}/info %{_infodir}/info-stnd.info* /sbin/install-info %dnl %{_sbindir}/fix-info-dir %{_mandir}/man1/info.1* %{_mandir}/man1/install-info.1* %{_mandir}/man5/info.5* %ghost %{_infodir}/dir %ghost %attr(644, root, root) %{_infodir}/dir.old %files tex %{_bindir}/texindex %{_bindir}/texi2dvi %{_bindir}/texi2pdf %{_bindir}/pdftexi2dvi %{_infodir}/texi2any_* %{tex_texinfo}/ %{_mandir}/man1/texindex.1* %{_mandir}/man1/texi2dvi.1* %{_mandir}/man1/texi2pdf.1* %{_mandir}/man1/pdftexi2dvi.1*