Summary: An X Window System tool for drawing basic vector graphics. Name: xfig Version: 3.2.3d Release: 2 License: IBM_ILA Group: Applications/Multimedia Source0: http://www.xfig.org/xfigdist/xfig.%{version}.full.tar.gz Source1: IBM_ILA Patch0: xfig.%{version}-aixgcc.patch URL: http://www.xfig.org/ Prefix: %{_prefix} Requires: transfig >= 3.2.3 Buildroot: /var/tmp/%{name}-root %define DEFCC cc %description Xfig is an X Window System tool for creating basic vector graphics, including bezier curves, lines, rulers and more. The resulting graphics can be saved, printed on PostScript printers or converted to a variety of other formats (e.g., X11 bitmaps, Encapsulated PostScript, LaTeX). You should install xfig if you need a simple program to create vector graphics. %prep %setup -q -n xfig.%{version} %patch0 -p1 -b .aixgcc # Add license info cat $RPM_SOURCE_DIR/IBM_ILA > LICENSE cat $RPM_SOURCE_DIR/xfig.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" fi xmkmf %ifarch alpha find . -name Makefile | xargs perl -pi -e "s|-O2||g" %endif make CC=$CC %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/etc/X11/applnk/Applications make DESTDIR=$RPM_BUILD_ROOT install install.man cat > $RPM_BUILD_ROOT/etc/X11/applnk/Applications/xfig.desktop < - Add IBM ILA license. * Wed Aug 29 2001 David Clissold - Update to version 3.2.3d * 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 07 2000 Preston Brown - rebuild to gzip man pages * Fri Jan 14 2000 Preston Brown - upgrade to beta1 of 2.2.3. Hopefully this fixes outstanding issues. - no need for vararg fix, commented out * Thu Sep 23 1999 Preston Brown - add icon - don't compile with optimization on alpha * Mon Aug 30 1999 Preston Brown - converted to use a .desktop file * Fri Mar 26 1999 Michael Maher - added files that were missing. * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 4) - varargs fix * Thu Feb 18 1999 Jeff Johnson - correct DESTDIRR typo (#962) * Wed Dec 30 1998 Cristian Gafton - build for glibc 2.1 * Tue Jul 7 1998 Jeff Johnson - updated to 3.2.2. * Wed Jun 10 1998 Prospector System - translations modified for de * Fri May 08 1998 Prospector System - translations modified for de, fr, tr * Sat Apr 11 1998 Cristian Gafton - updated for manhattan - buildroot * Thu Oct 23 1997 Marc Ewing - new version - messed with config for 5.0 - updated Requires and Copyright - added wmconfig * Mon Jul 21 1997 Erik Troan - built against glibc