%ifos darwin %define __etcdir /private/etc %define __sbindir %{_prefix}/sbin %else %define __etcdir /etc %define __sbindir /sbin %endif Summary: Tools needed to create Texinfo format documentation files. Name: texinfo Version: 4.0 Release: 1a Copyright: GPL Group: Applications/Publishing Source0: ftp://prep.ai.mit.edu/pub/gnu/texinfo-%{version}.tar.gz Source1: info-dir Source2: info.wmconfig Patch0: texinfo-3.12f-exe.patch Patch1: texinfo-3.12-fix.patch Patch2: texinfo-3.12f-alpha-tioc.patch Patch3: texinfo-3.12-zlib.patch Prereq: %{__sbindir}/install-info Buildroot: %{_tmppath}/texinfo-root %description Texinfo is a documentation system that can produce both online information and printed output from a single source file. Normally, you'd have to write two separate documents: one for online help or other online information and the other for a typeset manual or other printed work. Using Texinfo, you only need to write one source document. Then when the work needs revision, you only have to revise one source document. 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. Group: System Environment/Base # By making info prereq bash, other packages which have triggers based on # info don't run those triggers until bash is in place as well. This is an # ugly method of doing it (triggers which fire on set intersection would # be better), but it's the best we can do for now. Talk to Erik before # removing this. Prereq: bash %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. You should install info, because GNU's texinfo documentation is a valuable source of information about the software on your system. %prep %setup -q #%patch0 -p1 %patch1 -p1 #%patch2 -p1 #%patch3 -p1 -b .zlib %build CFLAGS="-g" ./configure --prefix=%{_prefix} make rm util/install-info %ifos darwin make -C util %else make -C util LIBS=%{_prefix}/lib/libz.a %endif %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/{.%{__etcdir},.%{__sbindir}} %ifos darwin ln -s private/etc $RPM_BUILD_ROOT/etc %endif make install prefix=$RPM_BUILD_ROOT%{_prefix} ( cd $RPM_BUILD_ROOT gzip -n -9f .%{_prefix}/info/*info* %ifos darwin install -c -m644 $RPM_SOURCE_DIR/info-dir .%{__etcdir}/info-dir ln -sf ../../..%{__etcdir}/info-dir $RPM_BUILD_ROOT%{_prefix}/info/dir %else install -m644 $RPM_SOURCE_DIR/info-dir .%{__etcdir}/info-dir ln -sf ../..%{__etcdir}/info-dir $RPM_BUILD_ROOT%{_prefix}/info/dir %endif for i in makeinfo texindex info install-info ; do strip .%{_prefix}/bin/$i done mv -f .%{_prefix}/bin/install-info .%{__sbindir} %ifnos darwin mkdir -p .%{__etcdir}/X11/wmconfig install -m 644 $RPM_SOURCE_DIR/info.wmconfig .%{__etcdir}/X11/wmconfig/info %endif ) %clean rm -rf $RPM_BUILD_ROOT %post %{__sbindir}/install-info %{_prefix}/info/texinfo.gz %{_prefix}/info/dir %preun if [ $1 = 0 ]; then %{__sbindir}/install-info --delete %{_prefix}/info/texinfo.gz %{_prefix}/info/dir fi %files %ifos darwin %defattr(-,root,wheel) %else %defattr(-,root,root) %endif %doc AUTHORS ChangeLog INSTALL INTRODUCTION NEWS README TODO %doc info/README %{_prefix}/bin/makeinfo %{_prefix}/bin/texindex %{_prefix}/bin/texi2dvi %{_prefix}/info/info-stnd.info* %{_prefix}/info/texinfo* %{_prefix}/share/locale/*/*/* %files -n info %ifos darwin %defattr(-,root,wheel) %else %defattr(-,root,root) %config(missingok) %{__etcdir}/X11/wmconfig/info %endif %config(noreplace) %{__etcdir}/info-dir %config(noreplace) %{_prefix}/info/dir %{_prefix}/bin/info %{_prefix}/info/info.info* %{__sbindir}/install-info %changelog * Mon Apr 24 2001 Keisuke Fujii - 1st release built on MacOS X Release 10.0.01 * Mon Oct 18 1999 Keisuke Fujii - upgrade to v.4.0 * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 4) * Wed Mar 17 1999 Erik Troan - hacked to use zlib to get rid of the requirement on gzip * Wed Mar 17 1999 Matt Wilson - install-info prerequires gzip * Thu Mar 11 1999 Cristian Gafton - version 3.12f - make /usr/info/dir to be a %config(noreplace) * Wed Nov 25 1998 Jeff Johnson - rebuild to fix docdir perms. * Thu Sep 24 1998 Cristian Gafton - fix allocation problems in install-info * Wed Sep 23 1998 Jeff Johnson - /sbin/install-info should not depend on /usr/lib/libz.so.1 -- statically link with /usr/lib/libz.a. * Fri Aug 07 1998 Erik Troan - added a prereq of bash to the info package -- see the comment for a description of why that was done * Tue Jun 09 1998 Prospector System - translations modified for de * Tue Jun 9 1998 Jeff Johnson - add %attr to permit non-root build. * Thu May 07 1998 Prospector System - translations modified for de, fr, tr * Sun Apr 12 1998 Cristian Gafton - added %clean - manhattan build * Wed Mar 04 1998 Cristian Gafton - upgraded to version 3.12 - added buildroot * Sun Nov 09 1997 Donnie Barnes - moved /usr/info/dir to /etc/info-dir and made /usr/info/dir a symlink to /etc/info-dir. * Wed Oct 29 1997 Donnie Barnes - added wmconfig entry for info * Wed Oct 01 1997 Donnie Barnes - stripped /sbin/install-info * Mon Sep 22 1997 Erik Troan - added info-dir to filelist * Sun Sep 14 1997 Erik Troan - added patch from sopwith to let install-info understand gzip'ed info files - use skeletal dir file from texinfo tarball (w/ bash entry to reduce dependency chain) instead (and install-info command everywhere else) - patches install-info to handle .gz names correctly * Tue Jun 03 1997 Erik Troan - built against glibc * Tue Feb 25 1997 Erik Troan - patched install-info.c for glibc. - added /usr/bin/install-info to the filelist * Tue Feb 18 1997 Michael Fulbright - upgraded to version 3.9.