2006-12-19 00:18:01 +01:00
|
|
|
#
|
2009-07-03 16:32:05 +02:00
|
|
|
# spec file for package texinfo (Version 4.13a)
|
2006-12-19 00:18:01 +01:00
|
|
|
#
|
2010-03-12 17:41:43 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-03-11 18:11:32 +01:00
|
|
|
|
2006-12-19 00:18:01 +01:00
|
|
|
Name: texinfo
|
2008-06-24 01:30:40 +02:00
|
|
|
BuildRequires: help2man libbz2-devel libzio-devel ncurses-devel perl-gettext zlib-devel
|
2010-03-12 17:41:43 +01:00
|
|
|
License: GPLv2+ ; GPLv3+
|
2006-12-19 00:18:01 +01:00
|
|
|
Group: Productivity/Publishing/Texinfo
|
2008-03-11 18:11:32 +01:00
|
|
|
AutoReqProv: on
|
2009-07-03 16:32:05 +02:00
|
|
|
Version: 4.13a
|
2010-03-12 17:41:43 +01:00
|
|
|
Release: 3
|
2009-07-03 16:32:05 +02:00
|
|
|
%global version_t2h 1.82
|
|
|
|
%global version_t2r 2.0
|
2006-12-19 00:18:01 +01:00
|
|
|
Summary: Tools Needed to Create Documentation from Texinfo Sources
|
2008-03-11 18:11:32 +01:00
|
|
|
Url: http://www.texinfo.org
|
2006-12-19 00:18:01 +01:00
|
|
|
PreReq: %{install_info_prereq}
|
2009-07-03 16:32:05 +02:00
|
|
|
Provides: texi2html = %{version_t2h}
|
|
|
|
Provides: texi2roff = %{version_t2r}
|
2006-12-19 00:18:01 +01:00
|
|
|
Source: ftp://ftp.gnu.org/pub/gnu/texinfo/texinfo-%{version}.tar.bz2
|
2009-07-03 16:32:05 +02:00
|
|
|
Source1: http://download.savannah.nongnu.org/releases/texi2html/texi2html-%{version_t2h}.tar.bz2
|
|
|
|
Source2: http://texinfo.org/texi2roff/texi2roff-%{version_t2r}.tar.bz2
|
2008-03-11 18:11:32 +01:00
|
|
|
Source10: info-dir
|
2009-07-03 16:32:05 +02:00
|
|
|
Patch: texinfo-4.12.dif
|
2007-07-18 22:35:59 +02:00
|
|
|
Patch1: texi2html-1.78.dif
|
2006-12-19 00:18:01 +01:00
|
|
|
Patch2: texi2roff-2.0.dif
|
|
|
|
Patch3: texi2roff.patch.bz2
|
2009-07-03 16:32:05 +02:00
|
|
|
Patch4: texinfo-4.12-zlib.patch
|
2008-03-11 18:11:32 +01:00
|
|
|
Patch5: texinfo-4.8-echo.patch
|
|
|
|
Patch6: texi2roff-2.0-gcc4.patch
|
2006-12-19 00:18:01 +01:00
|
|
|
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.
|
|
|
|
|
2009-07-03 16:32:05 +02:00
|
|
|
Aggregated with texinfo in this package is texi2html and texi2roff.
|
2006-12-19 00:18:01 +01:00
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Andreas Schwab <schwab@suse.de>
|
|
|
|
Brian Fox <bfox@gnu.org>
|
|
|
|
Charles Hannum <mycroft@gnu.org>
|
|
|
|
Daniel Hagerty <hag@gnu.org>
|
|
|
|
David J. MacKenzie <djm@gnu.org>
|
|
|
|
Eli Zaretskii <eliz@is.elta.co.il>
|
|
|
|
Jim Meyering <meyering@na-net.ornl.gov>
|
|
|
|
Karl Berry <karl@gnu.org>
|
|
|
|
Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
|
|
|
Noah Friedman <friedman@prep.org>
|
|
|
|
Richard Stallman <rms@gnu.org>
|
|
|
|
Robert J. Chassell <bob@gnu.org>
|
|
|
|
Roland McGrath <roland@gnu.org>
|
|
|
|
|
|
|
|
%package -n info
|
2010-03-12 17:41:43 +01:00
|
|
|
License: GPLv2+
|
2006-12-19 00:18:01 +01:00
|
|
|
Summary: A Stand-Alone Terminal-Based Info Browser
|
|
|
|
Group: Productivity/Publishing/Texinfo
|
|
|
|
PreReq: bash zlib libzio
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Andreas Schwab <schwab@suse.de>
|
|
|
|
Brian Fox <bfox@gnu.org>
|
|
|
|
Charles Hannum <mycroft@gnu.org>
|
|
|
|
Daniel Hagerty <hag@gnu.org>
|
|
|
|
David J. MacKenzie <djm@gnu.org>
|
|
|
|
Eli Zaretskii <eliz@is.elta.co.il>
|
|
|
|
Jim Meyering <meyering@na-net.ornl.gov>
|
|
|
|
Karl Berry <karl@gnu.org>
|
|
|
|
Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
|
|
|
Noah Friedman <friedman@prep.org>
|
|
|
|
Richard Stallman <rms@gnu.org>
|
|
|
|
Robert J. Chassell <bob@gnu.org>
|
|
|
|
Roland McGrath <roland@gnu.org>
|
|
|
|
|
|
|
|
%prep
|
2009-07-03 16:32:05 +02:00
|
|
|
rm -rf texi2html-%{version_t2h} texi2roff-%{version_t2r}
|
|
|
|
%setup -q -b 1 -b 2 -n texinfo-4.13
|
2006-12-19 00:18:01 +01:00
|
|
|
%patch4 -p0 -b .zlib
|
2008-03-11 18:11:32 +01:00
|
|
|
%patch5 -p0 -b .echo
|
2009-08-28 17:39:32 +02:00
|
|
|
%patch -p0
|
2009-07-03 16:32:05 +02:00
|
|
|
pushd ../texi2html-%{version_t2h}
|
2008-03-11 18:11:32 +01:00
|
|
|
%patch1 -p0
|
|
|
|
popd
|
2009-07-03 16:32:05 +02:00
|
|
|
pushd ../texi2roff-%{version_t2r}
|
2008-03-11 18:11:32 +01:00
|
|
|
%patch3 -p0 -b .Bader
|
|
|
|
%patch2 -p0
|
|
|
|
%patch6 -p1
|
|
|
|
popd
|
2006-12-19 00:18:01 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
HOST=%{_target_cpu}-suse-linux
|
2008-06-24 01:30:40 +02:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS -pipe"
|
2006-12-19 00:18:01 +01:00
|
|
|
LDFLAGS=""
|
|
|
|
CC=gcc
|
|
|
|
export CFLAGS LDFLAGS CC
|
2008-06-24 01:30:40 +02:00
|
|
|
AUTOPOINT=true autoreconf -fi
|
2006-12-19 00:18:01 +01:00
|
|
|
./configure --build=$HOST \
|
2008-03-11 18:11:32 +01:00
|
|
|
--prefix=%{_prefix} \
|
2006-12-19 00:18:01 +01:00
|
|
|
--mandir=%{_mandir} \
|
2008-03-11 18:11:32 +01:00
|
|
|
--datadir=%{_datadir} \
|
2006-12-19 00:18:01 +01:00
|
|
|
--infodir=%{_infodir} \
|
|
|
|
--without-included-gettext \
|
|
|
|
--enable-nls
|
|
|
|
PATH=${PWD}/makeinfo:${PWD}/util:$PATH
|
|
|
|
export PATH
|
2010-03-12 17:41:43 +01:00
|
|
|
make %{?jobs:-j%jobs};
|
2009-07-03 16:32:05 +02:00
|
|
|
pushd ../texi2html-%{version_t2h}
|
2006-12-19 00:18:01 +01:00
|
|
|
./configure --build=$HOST \
|
2008-03-11 18:11:32 +01:00
|
|
|
--prefix=%{_prefix} \
|
2006-12-19 00:18:01 +01:00
|
|
|
--mandir=%{_mandir} \
|
2008-03-11 18:11:32 +01:00
|
|
|
--datadir=%{_datadir} \
|
|
|
|
--infodir=%{_infodir} \
|
2006-12-19 00:18:01 +01:00
|
|
|
--without-included-gettext \
|
|
|
|
--enable-nls
|
2010-03-12 17:41:43 +01:00
|
|
|
make %{?jobs:-j%jobs};
|
2008-03-11 18:11:32 +01:00
|
|
|
popd
|
2009-07-03 16:32:05 +02:00
|
|
|
pushd ../texi2roff-%{version_t2r}
|
2006-12-19 00:18:01 +01:00
|
|
|
rm -f texi2roff
|
2010-03-12 17:41:43 +01:00
|
|
|
make %{?jobs:-j%jobs};
|
2008-03-11 18:11:32 +01:00
|
|
|
popd
|
2006-12-19 00:18:01 +01:00
|
|
|
|
|
|
|
%install
|
2008-03-11 18:11:32 +01:00
|
|
|
make DESTDIR=%{buildroot} \
|
2006-12-19 00:18:01 +01:00
|
|
|
infodir=%{_infodir} \
|
|
|
|
htmldir=%{_defaultdocdir}/texi2html install
|
2008-03-11 18:11:32 +01:00
|
|
|
mkdir -p %{buildroot}/sbin
|
|
|
|
mv %{buildroot}%{_bindir}/install-info %{buildroot}/sbin/
|
|
|
|
ln -sf ../../sbin/install-info %{buildroot}%{_bindir}/install-info
|
|
|
|
mkdir -p %{buildroot}%{_infodir}
|
|
|
|
install -m 644 %{S:10} %{buildroot}%{_infodir}/dir
|
2009-07-03 16:32:05 +02:00
|
|
|
pushd ../texi2html-%{version_t2h}
|
2008-03-11 18:11:32 +01:00
|
|
|
make DESTDIR=%{buildroot} \
|
2006-12-19 00:18:01 +01:00
|
|
|
infodir=%{_infodir} \
|
|
|
|
texinfohtmldir=%{_defaultdocdir}/texi2html install
|
2008-03-11 18:11:32 +01:00
|
|
|
install -m 644 README %{buildroot}%{_defaultdocdir}/texi2html/
|
|
|
|
install -m 644 NEWS %{buildroot}%{_defaultdocdir}/texi2html/
|
|
|
|
install -m 644 COPYING %{buildroot}%{_defaultdocdir}/texi2html/
|
|
|
|
popd
|
2009-07-03 16:32:05 +02:00
|
|
|
pushd ../texi2roff-%{version_t2r}
|
2006-12-19 00:18:01 +01:00
|
|
|
doc=%{_defaultdocdir}/texi2roff
|
2008-03-11 18:11:32 +01:00
|
|
|
install -m 755 texi2roff %{buildroot}%{_bindir}/
|
|
|
|
install -m 755 texi2index %{buildroot}%{_bindir}/
|
|
|
|
install -m 644 texi2roff.1 %{buildroot}%{_mandir}/man1/
|
|
|
|
mkdir -p %{buildroot}${doc}
|
|
|
|
install -m 644 Readme %{buildroot}${doc}
|
|
|
|
install -m 644 copyright %{buildroot}${doc}
|
|
|
|
popd
|
|
|
|
%find_lang %name %{name}.lang
|
2006-12-19 00:18:01 +01:00
|
|
|
|
|
|
|
%clean
|
2008-03-11 18:11:32 +01:00
|
|
|
test -n "%{buildroot}" && rm -rf %{buildroot}
|
2006-12-19 00:18:01 +01:00
|
|
|
|
|
|
|
%post
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/texinfo.gz
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/texi2html.info.gz
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/texinfo.gz
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/texi2html.info.gz
|
|
|
|
|
|
|
|
%post -n info
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/info-stnd.info.gz
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/info.info.gz
|
|
|
|
|
|
|
|
%postun -n info
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/info-stnd.info.gz
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/info.info.gz
|
|
|
|
|
2008-03-11 18:11:32 +01:00
|
|
|
%files -f %{name}.lang
|
2006-12-19 00:18:01 +01:00
|
|
|
%defattr(-, root, root)
|
|
|
|
%dir %{_defaultdocdir}/texi2html
|
|
|
|
%dir %{_defaultdocdir}/texi2roff
|
|
|
|
%doc ABOUT-NLS AUTHORS COPYING INTRODUCTION NEWS README TODO
|
|
|
|
%doc doc/texinfo.tex doc/txi-*.tex
|
2007-07-18 22:35:59 +02:00
|
|
|
%doc %{_defaultdocdir}/texi2html/*
|
|
|
|
%doc %{_defaultdocdir}/texi2roff/*
|
2008-03-11 18:11:32 +01:00
|
|
|
%{_bindir}/makeinfo
|
|
|
|
%{_bindir}/pdftexi*
|
|
|
|
%{_bindir}/texi*
|
2006-12-19 00:18:01 +01:00
|
|
|
%{_infodir}/texinfo*.gz
|
|
|
|
%{_infodir}/texi2html*.gz
|
|
|
|
%{_mandir}/man1/makeinfo.1.gz
|
2008-06-24 01:30:40 +02:00
|
|
|
%{_mandir}/man1/pdftexi2dvi.1.gz
|
2006-12-19 00:18:01 +01:00
|
|
|
%{_mandir}/man1/texi*.1.gz
|
|
|
|
%{_mandir}/man5/texinfo.5.gz
|
2008-03-11 18:11:32 +01:00
|
|
|
%{_datadir}/texinfo
|
|
|
|
%{_datadir}/texi2html
|
2006-12-19 00:18:01 +01:00
|
|
|
|
|
|
|
%files -n info
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%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
|
|
|
|
%{_bindir}/infokey
|
|
|
|
%{_infodir}/info.info*
|
|
|
|
%{_infodir}/info-stnd.info*
|
|
|
|
%{_mandir}/man1/info.1*
|
|
|
|
%{_mandir}/man1/infokey.1*
|
|
|
|
%{_mandir}/man1/install-info.1*
|
|
|
|
%{_mandir}/man5/info.5*
|
|
|
|
|
2007-02-19 23:44:52 +01:00
|
|
|
%changelog
|