Summary: GNU a2ps is an Any to PostScript filter. Name: a2ps Version: 4.12 Release: 3 Copyright: GPL Group: Applications/Archiving Source: a2ps-%{version}.tar.gz Prefix: %{_prefix} Patch0: a2ps-%{version}-lt135a.patch BuildRoot: /var/tmp/a2ps-root %ifarch ia64 %define stdlib lib/ia64l32 %define liblink ../../.. %define DEFCC bcc %else %define stdlib lib %define liblink ../.. %define DEFCC cc %endif %description GNU a2ps is an Any to PostScript filter. Of course it processes plain text files, but also pretty prints quite a few popular languages. Install the a2ps package if you need to convert files to PostScript. %prep %setup -q %patch0 -p1 -b .lt135a %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} export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's:-fsigned-char::'` else export CC=gcc fi fi ./configure --prefix=%{_prefix} #--enable-shared make %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_prefix}/bin mkdir -p $RPM_BUILD_ROOT%{_prefix}/man/man1 make prefix=$RPM_BUILD_ROOT%{_prefix} install # Strip the executables /usr/bin/strip $RPM_BUILD_ROOT%{_prefix}/bin/* || : # Let's also check it -- i.e., run the tests # make check ( cd $RPM_BUILD_ROOT mkdir -p usr/bin cd usr/bin ln -sf ../..%{_prefix}/bin/* . cd $RPM_BUILD_ROOT mkdir -p usr/%{stdlib} cd usr/%{stdlib} ln -sf %{liblink}%{_prefix}/%{stdlib}/* . cd $RPM_BUILD_ROOT mkdir etc cd etc ln -sf ..%{_prefix}/etc/* . cd $RPM_BUILD_ROOT mkdir include cd include ln -sf ..%{_prefix}/include/* . ) %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc README ABOUT-NLS ANNOUNCE COPYING AUTHORS FAQ HELPING-NLS NEWS THANKS %{_prefix}/bin/* %{_prefix}/etc/* %{_prefix}/include/* %{_prefix}/info/a2ps.info* %{_prefix}/info/ogonkify.info %{_prefix}/info/regex.info* %{_prefix}/lib/* %{_prefix}/man/* %{_prefix}/share/* /usr/bin/* /usr/%{stdlib}/* /etc/* /include/* %changelog * Wed Mar 07 2001 Marc Stephenson - Add logic for default compiler - Update to libtool 1.3.5a * Thu Feb 15 2001 aixtoolbox - Account for different standard lib location in IA64 32-bit ABI * Sun Feb 04 2001 David Clissold - Initial version, for AIX