%define name transfig %define version 3.2.5d %define release %mkrel 3 Summary: A utility for converting FIG files (created by xfig) to other formats Name: %{name} Version: %{version} Release: %{release} License: MIT Group: Graphics/Utilities Source: http://www.xfig.org/software/xfig/%{version}/%{name}.%{version}.tar.gz Patch1: transfig.3.2.5-lib64support.patch Patch2: transfig.3.2.5-use-tempfile-for-bitmap-eps.patch Patch3: transfig.3.2.5-fix-str-fmt.patch Patch4: transfig_optopt.patch Patch5: transfig-3.2.5d-libpng-1.5.patch URL: http://www.xfig.org BuildRequires: libxpm-devel BuildRequires: png-devel BuildRequires: imake BuildRequires: tcsh %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). %prep %setup -q -n %{name}.%{version} %patch1 -p1 -b .lib64support %patch2 -p1 -b .tmpepsfile %patch3 -p0 -b .str %patch4 -p1 -b .opt %patch5 -p1 -b .libpng %build xmkmf make Makefiles %ifarch alpha %make EXTRA_DEFINES="-Dcfree=free" %else %make CDEBUGFLAGS="%optflags" SHLIBGLOBALSFLAGS="%ldflags" EXTRA_LDOPTIONS="%ldflags" %endif %install rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install make DESTDIR=$RPM_BUILD_ROOT install.man %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc CHANGES NOTES README %{_bindir}/* %{_mandir}/man?/* %{_prefix}/lib/X11/xfig/bitmaps %{_datadir}/fig2dev/*.ps %changelog * Mon Jan 14 2013 umeabot <umeabot> 3.2.5d-3.mga3 + Revision: 384733 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild + boklm <boklm> - Update group: Graphics/Other -> Graphics/Utilities * Sat Dec 08 2012 malo <malo> 3.2.5d-2.mga3 + Revision: 328914 - update RPM group * Thu Sep 15 2011 fwang <fwang> 3.2.5d-1.mga2 + Revision: 144043 - build with latest libpng * Sun Jan 09 2011 blino <blino> 3.2.5d-1.mga1 + Revision: 3351 - imported package transfig