transfig-vl.spec 4.0 KB

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