This commit is contained in:
parent
96912b8798
commit
a15fff6b97
170
texinfo.spec
170
texinfo.spec
@ -1,170 +0,0 @@
|
||||
#
|
||||
# spec file for package texinfo
|
||||
#
|
||||
# Copyright (c) 2015 SUSE LINUX Products 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: 5.2
|
||||
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
|
||||
Source10: info-dir
|
||||
Patch1: texinfo-zlib.patch
|
||||
BuildRequires: automake
|
||||
BuildRequires: help2man
|
||||
BuildRequires: libbz2-devel
|
||||
BuildRequires: libzio-devel
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-gettext
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: zlib-devel
|
||||
Requires: makeinfo
|
||||
Requires: perl
|
||||
%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
|
||||
Requires: texi2html
|
||||
Requires: texi2roff
|
||||
%endif
|
||||
Requires(pre): %{install_info_prereq}
|
||||
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
|
||||
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
|
||||
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
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
|
||||
|
||||
# part of emacs-info
|
||||
rm -f %{buildroot}%{_infodir}/info.info*
|
||||
|
||||
%find_lang %{name} %{name}.lang
|
||||
%find_lang %{name}_document %{name}_document.lang
|
||||
|
||||
%post
|
||||
%install_info --info-dir=%{_infodir} %{_infodir}/texinfo.info.gz
|
||||
%install_info --info-dir=%{_infodir} %{_infodir}/texinfo.info-1.gz
|
||||
%install_info --info-dir=%{_infodir} %{_infodir}/texinfo.info-2.gz
|
||||
%install_info --info-dir=%{_infodir} %{_infodir}/texinfo.info-3.gz
|
||||
|
||||
%postun
|
||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/texinfo.info.gz
|
||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/texinfo.info-1.gz
|
||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/texinfo.info-2.gz
|
||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/texinfo.info-3.gz
|
||||
|
||||
%post -n info
|
||||
%install_info --info-dir=%{_infodir} %{_infodir}/info-stnd.info.gz
|
||||
|
||||
%postun -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
|
||||
%{_bindir}/infokey
|
||||
%{_infodir}/info-stnd.info*
|
||||
%{_mandir}/man1/info.1*
|
||||
%{_mandir}/man1/infokey.1*
|
||||
%{_mandir}/man1/install-info.1*
|
||||
%{_mandir}/man5/info.5*
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user