Summary: A tool for printing multiple pages of text on each printed page. Name: mpage Version: 2.5 Release: 2 Copyright: BSD Group: Applications/Publishing Source: http://www.mesa.nl/pub/mpage/mpage-%{version}.tgz Patch: mpage-%{version}-xlc.patch BuildRoot: /var/tmp/mpage-root Prefix: %{_prefix} %ifarch ia64 %define DEFCCIA cc %define DEFCC %{DEFCCIA} %else %define DEFCC cc %endif %description The mpage utility takes plain text files or PostScript(TM) documents as input, reduces the size of the text, and prints the files on a PostScript printer with several pages on each sheet of paper. Mpage is very useful for viewing large printouts without using up tons of paper. Mpage supports many different layout options for the printed pages. Mpage should be installed if you need a useful utility for viewing long text documents without wasting paper. %prep %setup -q %patch -p1 -b .xlc %build # Use the default compiler for this platform - gcc otherwise if [[ -z "$CC" ]] then if test "X`type %{DEFCC} 2>/dev/null`" != 'X'; then export CC=%{DEFCC} else export CC=gcc fi fi if test "X$CC" != "Xgcc" then export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's:-fsigned-char::'` export CFLAGS="$RPM_OPT_FLAGS" fi make CC=$CC %install rm -rf $RPM_BUILD_ROOT for dir in bin lib/mpage man/man1 do mkdir -p $RPM_BUILD_ROOT%{prefix}/$dir done make PREFIX=$RPM_BUILD_ROOT%{prefix} install /usr/bin/strip $RPM_BUILD_ROOT%{prefix}/bin/mpage || : (cd $RPM_BUILD_ROOT for dir in bin lib do mkdir -p usr/$dir cd usr/$dir ln -sf ../..%{prefix}/$dir/* . cd - done ) %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc CHANGES Copyright README NEWS TODO %{prefix}/bin/mpage %{prefix}/man/man1/mpage.* %{prefix}/lib/mpage /usr/bin/mpage /usr/lib/mpage %changelog * Wed Mar 21 2001 Marc Stephenson - Rebuild against new shared objects - Use default compiler * Fri Oct 27 2000 pkgmgr - Modify for AIX Freeware distribution * Thu Feb 3 2000 Bill Nottingham - handle compressed man pages * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 7) * Tue Jan 24 1999 Michael Maher - changed group * Thu Dec 17 1998 Michael Maher - 6.0 build stuff. * Sun Aug 16 1998 Jeff Johnson - build root * Mon Apr 27 1998 Prospector System - translations modified for de, fr, tr * Wed Oct 15 1997 Michael Fulbright - (Re)applied patch to correctly print dvips output. * Mon Jul 21 1997 Erik Troan - built against glibc