xfig-vl.spec 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. %define desktop_file 1
  2. %define desktop_file_utils_version 0.2.90
  3. Summary: An X Window System tool for drawing basic vector graphics.
  4. Name: xfig
  5. Version: 3.2.5b
  6. Release: 1%{?_dist_release}
  7. License: Freeware
  8. Group: Applications/Graphics
  9. Url: http://www.xfig.org/
  10. Source0: http://www.xfig.org/xfigdist/xfig.%{version}.full.tar.gz
  11. Source1: xfig.png
  12. Source2: xfig.desktop
  13. Source3: xfig.sh
  14. Source4: Fig.ad.ja
  15. Patch0: xfig-3.2.5a-default-apps.patch
  16. Patch1: xfig-3.2.5-fhs.patch
  17. Patch7: xfig.3.2.5-modularX.patch
  18. Patch9: xfig.3.2.5-Xaw3d.patch
  19. Patch10: xfig-3.2.5-enable-Xaw3d.patch
  20. Patch13: xfig-3.2.5-urwfonts.patch
  21. Patch19: xfig-3.2.5-debian.patch
  22. BuildRequires: libjpeg-devel
  23. BuildRequires: libpng-devel
  24. BuildRequires: imake
  25. BuildRequires: libICE-devel
  26. BuildRequires: libSM-devel
  27. BuildRequires: libX11-devel
  28. BuildRequires: libXaw-devel
  29. BuildRequires: libXext-devel
  30. BuildRequires: libXi-devel
  31. BuildRequires: libXmu-devel
  32. BuildRequires: libXpm-devel
  33. BuildRequires: libXt-devel
  34. BuildRequires: Xaw3d-devel
  35. BuildRequires: desktop-file-utils
  36. Buildroot: %{_tmppath}/%{name}-root
  37. Requires: transfig >= 3.2.5
  38. Requires: xdg-utils, enchant, urw-fonts
  39. Requires: hicolor-icon-theme
  40. Vendor: Project Vine
  41. Distribution: Vine Linux
  42. %description
  43. Xfig is an X Window System tool for creating basic vector graphics,
  44. including bezier curves, lines, rulers and more. The resulting
  45. graphics can be saved, printed on PostScript printers or converted to
  46. a variety of other formats (e.g., X11 bitmaps, Encapsulated
  47. PostScript, LaTeX).
  48. %prep
  49. %setup -q -n xfig.%{version}
  50. %patch0 -p1 -b .redhat
  51. %patch1 -p1 -b .fhs
  52. %patch7 -p1 -b .modularX
  53. %patch9 -p1 -b .Xaw3d
  54. %patch10 -p1 -b .no-Xaw3d
  55. %patch13 -p1 -b .urw
  56. %patch19 -p1
  57. rm Doc/html/images/sav1a0.tmp
  58. %build
  59. xmkmf
  60. make XFIGDOCDIR=%{_docdir}/%{name}-%{version} \
  61. CDEBUGFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -fno-strength-reduce -fno-strict-aliasing"
  62. %install
  63. rm -rf $RPM_BUILD_ROOT
  64. make DESTDIR=%{buildroot} XFIGDOCDIR=%{_docdir}/%{name}-%{version} \
  65. INSTALL="install -p" install.all
  66. install -p -m 644 CHANGES README LATEX.AND.XFIG* FIGAPPS \
  67. %{buildroot}%{_docdir}/%{name}-%{version}
  68. # remove the map generation scripts, these are for xfig developers only
  69. rm %{buildroot}%{_datadir}/%{name}/Libraries/Maps/{USA,Canada}/assemble
  70. mkdir -p %{buildroot}%{_datadir}/icons/hicolor/32x32/apps \
  71. %{buildroot}%{_datadir}/applications
  72. install -p -m 644 %{SOURCE1} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps
  73. desktop-file-install --vendor "" \
  74. --dir %{buildroot}%{_datadir}/applications \
  75. %{SOURCE2}
  76. # remove app-defaults symlink which gets installed
  77. rm %{buildroot}%{_prefix}/lib*/X11/app-defaults
  78. %clean
  79. rm -rf $RPM_BUILD_ROOT
  80. %post
  81. update-desktop-database &> /dev/null || :
  82. touch --no-create %{_datadir}/icons/hicolor || :
  83. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  84. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  85. fi
  86. %postun
  87. update-desktop-database &> /dev/null || :
  88. touch --no-create %{_datadir}/icons/hicolor || :
  89. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  90. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  91. fi
  92. %files
  93. %defattr(-,root,root)
  94. %doc %{_docdir}/%{name}-%{version}
  95. %{_bindir}/%{name}
  96. %{_datadir}/%{name}
  97. %{_mandir}/*/*
  98. %{_datadir}/X11/app-defaults/*
  99. %{_datadir}/applications/%{name}.desktop
  100. %{_datadir}/icons/hicolor/32x32/apps/%{name}.png
  101. %changelog
  102. * Thu Sep 03 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 3.2.5-1
  103. - new usptream release
  104. - build with modular X
  105. - import patched from fedora package.
  106. - drop jp patch
  107. * Sat Jul 29 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.2.4-2vl5
  108. - rebuilt with Xaw3d-1.5-17vl3
  109. * Fri Sep 10 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.2.4-2vl4
  110. - Requires transfig >= 3.2.4, ghostscript
  111. - build with -march=i386
  112. - changed Group
  113. - fixed .desktop file
  114. * Wed Sep 8 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.2.4-2vl3
  115. - rebuild with gcc-3.3.2
  116. - added BuildPrereq: Xaw3d-devel
  117. * Sun Aug 31 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.2.4-2vl2
  118. - based on Rawhide 3.2.4-2
  119. * Tue May 6 2003 Than Ngo <than@redhat.com> 3.2.4-1
  120. - 3.2.4
  121. * Wed Jul 24 2002 Than Ngo <than@redhat.com> 3.2.3d-8
  122. - desktop file issue (bug #69543)
  123. * Tue Jun 25 2002 Than Ngo <than@redhat.com> 3.2.3d-7
  124. - add patch file using mkstemp (bug #67351)
  125. * Tue Jul 03 2001 Than Ngo <than@redhat.com>
  126. - fix export to eps when i18n set (bug #45114)
  127. - update Source3
  128. - previous Patch0 moved to Patch10
  129. - rebuild with new toolchains
  130. * Sun Aug 20 2000 Jun Nishii <jun@vinelinux.org>
  131. - 3.2.3c-0vl1
  132. - use brp
  133. * Mon Jan 24 2000 Atsushi Saito <saito4@slb.com>
  134. - update to 3.2.3a
  135. * Tue Dec 21 1999 Atsushi Saito <saito4@slb.com>
  136. - update to 3.2.3-beta-1
  137. - i18n
  138. * Thu Sep 23 1999 Preston Brown <pbrown@redhat.com>
  139. - add icon
  140. - don't compile with optimization on alpha
  141. * Mon Aug 30 1999 Preston Brown <pbrown@redhat.com>
  142. - converted to use a .desktop file
  143. * Fri Mar 26 1999 Michael Maher <mike@redhat.com>
  144. - added files that were missing.
  145. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  146. - auto rebuild in the new build environment (release 4)
  147. - varargs fix
  148. * Thu Feb 18 1999 Jeff Johnson <jbj@redhat.com>
  149. - correct DESTDIRR typo (#962)
  150. * Wed Dec 30 1998 Cristian Gafton <gafton@redhat.com>
  151. - build for glibc 2.1
  152. * Tue Jul 7 1998 Jeff Johnson <jbj@redhat.com>
  153. - updated to 3.2.2.
  154. * Wed Jun 10 1998 Prospector System <bugs@redhat.com>
  155. - translations modified for de
  156. * Fri May 08 1998 Prospector System <bugs@redhat.com>
  157. - translations modified for de, fr, tr
  158. * Sat Apr 11 1998 Cristian Gafton <gafton@redhat.com>
  159. - updated for manhattan
  160. - buildroot
  161. * Thu Oct 23 1997 Marc Ewing <marc@redhat.com>
  162. - new version
  163. - messed with config for 5.0
  164. - updated Requires and Copyright
  165. - added wmconfig
  166. * Mon Jul 21 1997 Erik Troan <ewt@redhat.com>
  167. - built against glibc