2006-12-19 00:18:01 +01:00
|
|
|
#
|
2011-05-03 12:41:29 +02:00
|
|
|
# spec file for package texinfo
|
2006-12-19 00:18:01 +01:00
|
|
|
#
|
2018-01-16 09:24:00 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2006-12-19 00:18:01 +01:00
|
|
|
#
|
2009-06-18 18:07:04 +02:00
|
|
|
# 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.
|
|
|
|
|
2006-12-19 00:18:01 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-05-31 17:10:51 +02:00
|
|
|
|
2018-01-16 09:24:00 +01:00
|
|
|
# perl modules are not installed in global path
|
|
|
|
%global __provides_exclude ^(libtool|perl)\\(
|
2006-12-19 00:18:01 +01:00
|
|
|
Name: texinfo
|
2018-01-16 09:24:00 +01:00
|
|
|
Version: 6.5
|
2015-02-16 15:02:04 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Tools Needed to Create Documentation from Texinfo Sources
|
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Productivity/Publishing/Texinfo
|
2018-03-07 10:28:27 +01:00
|
|
|
Url: https://www.gnu.org/software/texinfo/
|
2017-01-25 22:33:01 +01:00
|
|
|
Source0: https://ftp.gnu.org/pub/gnu/texinfo/texinfo-%{version}.tar.xz
|
|
|
|
Source1: https://ftp.gnu.org/pub/gnu/texinfo/texinfo-%{version}.tar.xz.sig
|
2015-04-05 02:02:08 +02:00
|
|
|
Source2: %{name}.keyring
|
2015-02-16 15:02:04 +01:00
|
|
|
Source10: info-dir
|
|
|
|
Patch1: texinfo-zlib.patch
|
2018-04-10 09:52:13 +02:00
|
|
|
Patch2: install-info_exitcode.patch
|
2012-01-20 22:08:13 +01:00
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: help2man
|
|
|
|
BuildRequires: libbz2-devel
|
|
|
|
BuildRequires: libzio-devel
|
|
|
|
BuildRequires: ncurses-devel
|
2015-02-16 15:02:04 +01:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-Text-Unidecode
|
2012-01-20 22:08:13 +01:00
|
|
|
BuildRequires: perl-gettext
|
2015-02-16 15:02:04 +01:00
|
|
|
BuildRequires: perl-macros
|
2012-01-20 22:08:13 +01:00
|
|
|
BuildRequires: zlib-devel
|
2015-08-21 07:34:14 +02:00
|
|
|
Requires: makeinfo = %{version}
|
2015-02-16 15:02:04 +01:00
|
|
|
Requires: perl
|
2017-01-25 22:33:01 +01:00
|
|
|
Requires: perl-Text-Unidecode
|
|
|
|
Requires: perl-gettext
|
2012-07-12 10:53:16 +02:00
|
|
|
Requires: texlive-bibtex
|
|
|
|
Requires: texlive-latex
|
|
|
|
Requires: texlive-makeindex
|
|
|
|
Requires: texlive-pdftex
|
|
|
|
Requires: texlive-tex
|
|
|
|
Requires: texlive-texinfo
|
2017-07-24 12:28:56 +02:00
|
|
|
Requires(post): %{install_info_prereq}
|
|
|
|
Requires(preun): %{install_info_prereq}
|
2015-02-16 15:02:04 +01:00
|
|
|
Recommends: texi2html
|
|
|
|
Recommends: texi2roff
|
2006-12-19 00:18:01 +01:00
|
|
|
|
|
|
|
%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
|
2011-05-03 12:41:17 +02:00
|
|
|
file with nodes, menus, cross-references, and indices using the included
|
|
|
|
makeinfo tool.
|
2006-12-19 00:18:01 +01:00
|
|
|
|
2015-02-16 15:02:04 +01:00
|
|
|
%package -n info
|
2006-12-19 00:18:01 +01:00
|
|
|
Summary: A Stand-Alone Terminal-Based Info Browser
|
2012-05-31 17:10:51 +02:00
|
|
|
Group: Productivity/Publishing/Texinfo
|
2006-12-19 00:18:01 +01:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2015-02-16 15:02:04 +01:00
|
|
|
%package -n makeinfo
|
2012-07-19 17:45:54 +02:00
|
|
|
Summary: Translate Texinfo documents to info format
|
2015-02-16 15:02:04 +01:00
|
|
|
# /usr/share/texinfo/Texinfo/Convert/NodeNameNormalization.pm uses Text::Unidecode
|
2018-03-07 10:28:27 +01:00
|
|
|
Group: Productivity/Publishing/Texinfo
|
2015-02-16 15:02:04 +01:00
|
|
|
Requires: perl(Text::Unidecode)
|
2018-01-16 09:24:00 +01:00
|
|
|
%requires_eq perl
|
2012-07-19 17:45:54 +02:00
|
|
|
Suggests: texinfo
|
2017-01-25 22:33:01 +01:00
|
|
|
Provides: texinfo:%{_bindir}/makeinfo
|
2012-07-19 17:45:54 +02:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2006-12-19 00:18:01 +01:00
|
|
|
%prep
|
2015-02-16 15:02:04 +01:00
|
|
|
%setup -q
|
|
|
|
%patch1 -p1
|
2018-04-10 09:52:13 +02:00
|
|
|
%patch2 -p1
|
2006-12-19 00:18:01 +01:00
|
|
|
|
|
|
|
%build
|
2017-10-13 14:04:24 +02:00
|
|
|
LANG=en_GB.UTF-8
|
|
|
|
export LANG
|
2017-07-24 12:28:56 +02:00
|
|
|
%configure \
|
|
|
|
--with-external-Text-Unidecode \
|
|
|
|
--enable-perl-xs
|
2015-02-16 15:02:04 +01:00
|
|
|
make %{?_smp_mflags}
|
2006-12-19 00:18:01 +01:00
|
|
|
|
|
|
|
%install
|
2015-02-16 15:02:04 +01:00
|
|
|
%make_install
|
2016-07-24 19:42:03 +02:00
|
|
|
rm -f %{buildroot}%{_libdir}/texinfo/*.a
|
2015-02-16 15:02:04 +01:00
|
|
|
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
|
|
|
|
|
|
|
|
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
|
2006-12-19 00:18:01 +01:00
|
|
|
|
2017-07-24 12:28:56 +02:00
|
|
|
%check
|
2017-10-13 14:04:24 +02:00
|
|
|
LANG=en_GB.UTF-8
|
|
|
|
export LANG
|
2017-07-24 12:28:56 +02:00
|
|
|
make %{?_smp_mflags} check
|
|
|
|
|
2006-12-19 00:18:01 +01:00
|
|
|
%post
|
2017-07-24 12:28:56 +02:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/texinfo.info%{ext_info}
|
2006-12-19 00:18:01 +01:00
|
|
|
|
2015-02-16 15:02:04 +01:00
|
|
|
%preun
|
2017-07-24 12:28:56 +02:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/texinfo.info%{ext_info}
|
2006-12-19 00:18:01 +01:00
|
|
|
|
|
|
|
%post -n info
|
2017-07-24 12:28:56 +02:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/info-stnd.info%{ext_info}
|
2006-12-19 00:18:01 +01:00
|
|
|
|
2015-02-16 15:02:04 +01:00
|
|
|
%preun -n info
|
2017-07-24 12:28:56 +02:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/info-stnd.info%{ext_info}
|
2006-12-19 00:18:01 +01:00
|
|
|
|
2015-02-16 15:02:04 +01:00
|
|
|
%files -f %{name}_document.lang
|
2018-03-07 10:28:27 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc ABOUT-NLS AUTHORS NEWS README TODO
|
2006-12-19 00:18:01 +01:00
|
|
|
%doc doc/texinfo.tex doc/txi-*.tex
|
2015-02-16 15:02:04 +01:00
|
|
|
%{_bindir}/pod2texi
|
|
|
|
%{_bindir}/texi2dvi
|
|
|
|
%{_bindir}/texi2pdf
|
|
|
|
%{_bindir}/texindex
|
|
|
|
%{_bindir}/pdftexi2dvi
|
2017-07-24 12:28:56 +02:00
|
|
|
%{_infodir}/texinfo*%{ext_info}
|
|
|
|
%{_mandir}/man1/pod2texi.1%{ext_man}
|
|
|
|
%{_mandir}/man1/texindex.1%{ext_man}
|
|
|
|
%{_mandir}/man1/texi2dvi.1%{ext_man}
|
|
|
|
%{_mandir}/man1/texi2pdf.1%{ext_man}
|
|
|
|
%{_mandir}/man1/pdftexi2dvi.1%{ext_man}
|
|
|
|
%{_mandir}/man5/texinfo.5%{ext_man}
|
2006-12-19 00:18:01 +01:00
|
|
|
|
2012-07-19 17:45:54 +02:00
|
|
|
%files -n makeinfo -f %{name}.lang
|
|
|
|
%{_bindir}/makeinfo
|
2016-07-24 19:42:03 +02:00
|
|
|
%{_bindir}/texi2any
|
2017-07-24 12:28:56 +02:00
|
|
|
%{_mandir}/man1/makeinfo.1%{ext_man}
|
|
|
|
%{_mandir}/man1/texi2any.1%{ext_man}
|
2016-07-24 19:42:03 +02:00
|
|
|
%{_libdir}/texinfo
|
2015-02-16 15:02:04 +01:00
|
|
|
%{_datadir}/texinfo/
|
2012-07-19 17:45:54 +02:00
|
|
|
|
2006-12-19 00:18:01 +01:00
|
|
|
%files -n info
|
|
|
|
%config(noreplace) %verify(not md5 size mtime) %{_infodir}/dir
|
|
|
|
/sbin/install-info
|
2008-03-11 18:11:32 +01:00
|
|
|
%{_bindir}/install-info
|
2006-12-19 00:18:01 +01:00
|
|
|
%{_bindir}/info
|
|
|
|
%{_infodir}/info-stnd.info*
|
|
|
|
%{_mandir}/man1/info.1*
|
|
|
|
%{_mandir}/man1/install-info.1*
|
|
|
|
%{_mandir}/man5/info.5*
|
|
|
|
|
2007-02-19 23:44:52 +01:00
|
|
|
%changelog
|