transfig-vl.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. %define ver 3.2.5
  2. Summary: A utility for converting FIG files (made by xfig) to other formats.
  3. Summary(ja): xfig で作った FIG ファイル変換ユーティリティ
  4. Name: transfig
  5. Version: %{ver}
  6. Release: 1%{?_dist_release}
  7. License: distributable
  8. Group: Applications/Graphics
  9. Source: ftp://ftp.x.org/contrib/applications/drawing_tools/transfig/transfig.%{version}.tar.gz
  10. Patch0: transfig-3.2.5-optflags.patch
  11. Patch5: transfig-3.2.5-modularX.patch
  12. Patch6: transfig-3.2.5-bitmap.patch
  13. Patch10: transfig-3.2.5-buildfix.patch
  14. Buildroot: %{_tmppath}/%{name}-%{version}-root
  15. BuildRequires: libXpm-devel
  16. BuildRequires: libpng-devel >= 1.2.5
  17. BuildRequires: libjpeg-devel
  18. BuildRequires: imake
  19. %{?nosrc:NoSource: 0}
  20. Vendor: Project Vine
  21. Distribution: Vine Linux
  22. Packager: daisuke
  23. %description
  24. TransFig is a set of tools for creating TeX documents with graphics
  25. which are portable, in the sense that they can be printed in a wide
  26. variety of environments.
  27. %prep
  28. %setup -q -n %{name}.%{version}
  29. %patch0 -p1 -b .optflags
  30. %patch5 -p1 -b .modularX
  31. %patch6 -p1 -b .bitmap
  32. %patch10 -p1 -b .buildfix
  33. %build
  34. xmkmf
  35. (cd fig2dev; xmkmf ; cd dev ;xmkmf)
  36. (cd transfig ; xmkmf)
  37. make
  38. %install
  39. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  40. make DESTDIR=%{buildroot} \
  41. MANPATH=%{_mandir} FIG2DEV_LIBDIR=%{_datadir}/fig2dev \
  42. install install.man
  43. # fig2ps2tex{,.sh} are equivalent, use the sh one
  44. mv %{buildroot}%{_bindir}/fig2ps2tex.sh %{buildroot}%{_bindir}/fig2ps2tex
  45. ln -s fig2ps2tex %{buildroot}%{_bindir}/fig2ps2tex.sh
  46. %clean
  47. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  48. %files
  49. %defattr(-,root,root)
  50. %doc CHANGES NOTES README LATEX.AND.XFIG
  51. %{_bindir}/transfig
  52. %{_bindir}/fig2dev
  53. %{_bindir}/fig2ps2tex
  54. %{_bindir}/fig2ps2tex.sh
  55. %{_bindir}/pic2tpic
  56. %{_mandir}/man1/*
  57. %{_datadir}/xfig
  58. %{_datadir}/fig2dev
  59. %changelog
  60. * Sat Aug 29 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 3.2.5-1
  61. - spec in utf-8, new versioning policy
  62. - build for modular X
  63. - new upstream release
  64. - add BR: libXpm-devel, remove BR: XOrg-devel
  65. - drop obsolete patches
  66. - add Patch0 to use optflags
  67. - add Patch5 to build with modular X
  68. - add Patch6 to fix permission on sources
  69. - add Patch10 to fix build failure
  70. * Tue Oct 17 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 3.2.4-7vl2
  71. - add BuildPrereq: XOrg-devel
  72. * Fri Sep 10 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.2.4-7vl1
  73. - updated source to 3.2.4
  74. - updated Patch0 and Patch1, newly added Patch2 and Patch3 from Fedora
  75. * Tue Jun 17 2003 Than Ngo <than@redhat.com> 3.2.4-4
  76. - patch build problem
  77. * Fri May 23 2003 Jeremy Katz <katzj@redhat.com> 1:3.2.4-2
  78. - fix build with gcc 3.3
  79. - rebuild with new toolchains and libpng >= 1.2
  80. - build with -march=i386
  81. - s/Copyright/License/
  82. - changed Group
  83. * Sat Jun 22 2002 Masaki Shinomiya <shino@pos.to>
  84. - 3.2.3d-5vl1
  85. - source update
  86. - strerror.patch from rawhide, 3.2.3d-vine.patch, buildprereq
  87. * Sun Aug 20 2000 Jun Nishii <jun@vinelinux.org>
  88. - 3.2.3c-1vl1
  89. * Mon Jan 24 2000 Atsushi Saito <saito4@slb.com>
  90. - update to 3.2.3
  91. - i18n
  92. * Mon Dec 6 1999 Atsushi Saito <saito4@slb.com>
  93. - i18n.
  94. * Tue Jul 7 1998 Jeff Johnson <jbj@redhat.com>
  95. - update to 3.2.1.
  96. * Sat Jun 27 1998 Jeff Johnson <jbj@redhat.com>
  97. - add %clean.
  98. * Mon Apr 27 1998 Prospector System <bugs@redhat.com>
  99. - translations modified for de, fr, tr
  100. * Thu Nov 13 1997 Otto Hammersmith <otto@redhat.com>
  101. - fixed problem with Imakefile for fig2dev not including $(XLIB)
  102. - build rooted.
  103. * Fri Oct 24 1997 Otto Hammersmith <otto@redhat.com>
  104. - recreated the glibc patch that is needed for an alpha build, missed it
  105. building on the intel.
  106. * Tue Oct 21 1997 Otto Hammersmith <otto@redhat.com>
  107. - updated version
  108. - fixed source url
  109. * Fri Jul 18 1997 Erik Troan <ewt@redhat.com>
  110. - built against glibc