%define enable_japanese 0 Summary: A utility for converting FIG files (made by xfig) to other formats. Name: transfig Version: 3.2.3c Release: 1 Epoch: 1 Copyright: distributable Group: Applications/Multimedia Source: ftp://ftp.x.org/contrib/applications/drawing_tools/transfig/%{name}.%{version}.tar.gz Patch10: transfig-3.2.1-i18n.patch Buildroot: %{_tmppath}/transfig-%{version}-root %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 %{name}.%{version} %if %{enable_japanese} %patch10 -p1 %endif %build xmkmf -a make Makefiles XFIGLIBDIR=/usr/X11R6/lib/X11/xfig %ifarch alpha make EXTRA_DEFINES="-Dcfree=free" %else make %endif %install rm -rf $RPM_BUILD_ROOT make BINDIR=$RPM_BUILD_ROOT/usr/X11R6/bin install \ XFIGLIBDIR=$RPM_BUILD_ROOT/usr/X11R6/lib/X11/xfig make MANSOURCEPATH=$RPM_BUILD_ROOT/usr/X11R6/man/man install.man \ XFIGLIBDIR=$RPM_BUILD_ROOT/usr/X11R6/lib/X11/xfig \ DOCDIR=$RPM_BUILD_ROOT/doc # Dunno why these are not installed for i in fig2ps2tex fig2ps2tex.sh pic2tpic do install -c -m 755 fig2dev/$i.script $RPM_BUILD_ROOT/usr/X11R6/bin/$i done %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc CHANGES NOTES README LATEX.AND.XFIG /usr/X11R6/bin/transfig /usr/X11R6/bin/fig2dev /usr/X11R6/bin/fig2ps2tex /usr/X11R6/bin/fig2ps2tex.sh /usr/X11R6/bin/pic2tpic /usr/X11R6/man/man1/* %changelog * Sat Aug 05 2000 Than Ngo - update to 3.2.3c (Bug fixed release) * Wed Jul 12 2000 Prospector - automatic rebuild * Tue Jun 13 2000 Trond Eivind Glomsrød - make it build as nobody. Imake sucks. - include LATEX.AND.XFIG - use %%{_tmppath} * Wed Apr 26 2000 Matt Wilson - add enable_japanese option, disable it for now. * Sun Apr 16 2000 Bryan C. Andregg - new version to support -b and -g which xfig uses * 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