Summary: A utility for converting FIG files (made by xfig) to other formats. Name: transfig Version: 3.2.3d Release: 2 License: IBM_ILA URL: http://epb.lbl.gov/xfig Group: Applications/Multimedia Source: ftp://ftp.x.org/contrib/applications/drawing_tools/transfig/transfig.%{PACKAGE_VERSION}.tar.gz Source1: IBM_ILA Source2: %{name}.txt Patch0: transfig-%{version}-aixgcc.patch Prefix: %{_prefix} Buildroot: /var/tmp/transfig-root %define DEFCC cc %description The transfig utility creates a makefile which translates FIG (created by xfig) or PIC figures into a specified LaTeX graphics language (for example, PostScript(TM)). Transfig is used to create TeX documents which are portable (i.e., they can be printed in a wide variety of environments). Install transfig if you need a utility for translating FIG or PIC figures into certain graphics languages. %prep %setup -q -n transfig.%{PACKAGE_VERSION} %patch0 -p1 # Add license info cat $RPM_SOURCE_DIR/IBM_ILA > LICENSE cat $RPM_SOURCE_DIR/transfig.txt >> LICENSE %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" export NOINLINE="USEINLINE=" fi xmkmf make Makefiles %ifarch alpha make EXTRA_DEFINES="-Dcfree=free" %else make CC=$CC $NOINLINE XFIGLIBDIR=%{prefix}/lib/X11/xfig JPEGLIBDIR=%{prefix}/lib \ JPEGINCDIR=%{prefix}/include FIG2DEV_LIBDIR=%{prefix}/lib/fig2dev %endif %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{prefix}/lib/fig2dev make DESTDIR=$RPM_BUILD_ROOT BINDIR=%{prefix}/bin LIBDIR=%{prefix}/lib \ XFIGLIBDIR=%{prefix}/lib/X11/xfig JPEGLIBDIR=%{prefix}/lib \ JPEGINCDIR=%{prefix}/include FIG2DEV_LIBDIR=%{prefix}/lib/fig2dev \ install make MANSOURCEPATH=$RPM_BUILD_ROOT%{prefix}/man/man install.man # Dunno why these are not installed for i in fig2ps2tex fig2ps2tex.sh pic2tpic do install -c -m 755 fig2dev/$i.script $RPM_BUILD_ROOT%{prefix}/bin/$i done strip $RPM_BUILD_ROOT%{prefix}/bin/* || : (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 NOTES README LICENSE %{prefix}/lib/X11/xfig/bitmaps %{prefix}/lib/fig2dev %{prefix}/bin/* /usr/bin/* /usr/lib/fig2dev %{prefix}/man/mann/* %changelog * Fri Nov 22 2002 David Clissold - Add IBM ILA license. * Tue Aug 28 2001 David Clissold - Update to version 3.2.3d * Thu Apr 19 2001 David Clissold - Binaries weren't being stripped * Mon Mar 19 2001 Marc Stephenson - Rebuild against new shared objects - Use default compiler * Fri Oct 27 2000 pkgmgr - Modify for AIX Freeware distribution * Mon Feb 7 2000 Bill Nottingham - handle compressed manpages * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 3) * Wed Dec 30 1998 Cristian Gafton - build for glibc 2.1 * Tue Jul 7 1998 Jeff Johnson - update to 3.2.1. * Sat Jun 27 1998 Jeff Johnson - add %clean. * Mon Apr 27 1998 Prospector System - translations modified for de, fr, tr * Thu Nov 13 1997 Otto Hammersmith - fixed problem with Imakefile for fig2dev not including $(XLIB) - build rooted. * Fri Oct 24 1997 Otto Hammersmith - recreated the glibc patch that is needed for an alpha build, missed it building on the intel. * Tue Oct 21 1997 Otto Hammersmith - updated version - fixed source url * Fri Jul 18 1997 Erik Troan - built against glibc