%define xfig_libdir /usr/X11R6/lib/X11/xfig %define fig2dev_libdir /usr/share/fig2dev Summary: A utility for converting FIG files (made by xfig) to other formats. Name: transfig Version: 3.2.3d Release: 9 Epoch: 1 License: distributable Group: Applications/Multimedia Source: ftp://www-epb.lbl.gov/xfig/transfig/%{name}.%{version}.tar.gz Patch: transfig.3.2.3c-strerror.patch Patch1: transfig-3.2.3d-fig2dev.patch Patch2: transfig-3.2.3d-cleanup.patch BuildPrereq: libpng-devel BuildPrereq: libjpeg-devel BuildPrereq: XFree86-devel 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} %patch -p1 -b .strerror %patch1 -p1 -b .crash %patch2 -p1 -b .cleanup %build PATH=$PATH:/usr/X11R6/bin xmkmf make Makefiles XFIGLIBDIR=%{xfig_libdir} FIG2DEV_LIBDIR=%{fig2dev_libdir} make \ %ifarch alpha EXTRA_DEFINES="-Dcfree=free" \ %endif XFIGLIBDIR=%{xfig_libdir} FIG2DEV_LIBDIR=%{fig2dev_libdir} %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{fig2dev_libdir} \ $RPM_BUILD_ROOT%{xfig_libdir} make BINDIR=$RPM_BUILD_ROOT%{_bindir} \ FIG2DEV_LIBDIR=$RPM_BUILD_ROOT%{fig2dev_libdir} \ XFIGLIBDIR=$RPM_BUILD_ROOT%{xfig_libdir} \ MANSOURCEPATH=$RPM_BUILD_ROOT%{_mandir}/man \ DOCDIR=$RPM_BUILD_ROOT/%{_docdir} \ install 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%{_bindir}/$i done %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc CHANGES NOTES README LATEX.AND.XFIG %{_bindir}/transfig %{_bindir}/fig2dev %{_bindir}/fig2ps2tex %{_bindir}/fig2ps2tex.sh %{_bindir}/pic2tpic %{_mandir}/man1/* %{fig2dev_libdir} %{xfig_libdir} %changelog * Wed Jan 22 2003 Tim Powers - rebuilt * Mon Nov 18 2002 Than Ngo 3.2.3d-8 - Added a patch file from d.binderman@virgin.net (bug #77980) * Wed Jul 31 2002 Than Ngo 3.2.3d-7 - fig2dev crashes with more than 1 gif files (bug #69917) * Fri Jun 21 2002 Tim Powers - automated rebuild * Fri Jun 14 2002 han Ngo 3.2.3d-5 - fhs fixes (bug #66732) * Thu May 23 2002 Tim Powers - automated rebuild * Wed Jan 09 2002 Tim Powers - automated rebuild * Mon Jul 23 2001 Than Ngo - fix build dependencies (bug #49725) - Copyright -> License * Fri Jun 15 2001 Than Ngo - update to 3.2.3d release (Bug # 44742) * Tue May 29 2001 Than Ngo - update to 3.2.3d beta2 * Fri Apr 13 2001 Than Ngo - fix core dump when using LDAP auth - update ftp site * Mon Dec 18 2000 Yukihiro Nakai - Enable Japanese * 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