xfig-vl.spec 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  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.5c
  6. Release: 2%{?_dist_release}
  7. License: MIT
  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-icons.tar.gz
  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-Imakefile.patch
  17. Patch3: xfig-3.2.5-urwfonts.patch
  18. Patch4: 31_spelling.patch
  19. Patch5: 33_pdfimport_mediabox.patch
  20. # xfig_man.html is not in 3.2.5c tarball from some reason,
  21. # but makefile still tries to install it
  22. Patch6: 38_formatstring.patch
  23. Patch7: 39_add_xfig_man_html.patch
  24. Patch8: 40_fix_dash_list_for_different_styles.patch
  25. Patch9: xfig-3.2.5-rhbz1046102.patch
  26. # patches for libXaw3dxft from http://sourceforge.net/projects/sf-xpaint/files/xaw3dxft-progs/
  27. # modified by deleting debian-related patch
  28. Patch100: xfig-xft.patch.bz2
  29. Buildroot: %{_tmppath}/%{name}-%{version}-root
  30. BuildRequires: desktop-file-utils
  31. BuildRequires: freetype2-devel
  32. BuildRequires: imake
  33. BuildRequires: libICE-devel
  34. BuildRequires: libSM-devel
  35. BuildRequires: libX11-devel
  36. BuildRequires: libXaw3dXft-devel
  37. BuildRequires: libXmu-devel
  38. BuildRequires: libXpm-devel
  39. BuildRequires: libXt-devel
  40. BuildRequires: libjpeg-devel
  41. BuildRequires: libpng-devel
  42. BuildRequires: zlib-devel
  43. Requires: hicolor-icon-theme
  44. Requires: transfig >= 3.2.5
  45. Requires: urw-fonts
  46. Requires: xdg-utils
  47. Vendor: Project Vine
  48. Distribution: Vine Linux
  49. %description
  50. Xfig is an X Window System tool for creating basic vector graphics,
  51. including bezier curves, lines, rulers and more. The resulting
  52. graphics can be saved, printed on PostScript printers or converted to
  53. a variety of other formats (e.g., X11 bitmaps, Encapsulated
  54. PostScript, LaTeX).
  55. %prep
  56. %setup -q -n xfig.%{version} -a 1
  57. %patch0 -p1 -b .redhat
  58. %patch1 -p1 -b .Imakefile
  59. %patch3 -p1 -b .urw
  60. %patch4 -p1
  61. %patch5 -p1
  62. %patch6 -p1
  63. %patch7 -p1
  64. %patch8 -p1
  65. %patch9 -p1
  66. %patch100 -p1 -b .xft
  67. # above patch is not enough
  68. sed -i -e 's|X11/Xaw3d/|X11/Xaw3dxft/|g' w_listwidget.c
  69. sed -i -e 's|X11/Xaw3d/|X11/Xaw3dxft/|g' SmeCascade.h
  70. iconv -f ISO-8859-1 -t UTF8 CHANGES > tmp; touch -r CHANGES tmp; mv tmp CHANGES
  71. rm Doc/html/images/sav1a0.tmp
  72. chmod -x `find -type f`
  73. %build
  74. xmkmf
  75. make XFIGDOCDIR=%{_docdir}/%{name}-%{version} \
  76. INCLUDES=`pkg-config --cflags freetype2` \
  77. CDEBUGFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -fno-strength-reduce -fno-strict-aliasing"
  78. %install
  79. rm -rf $RPM_BUILD_ROOT
  80. make DESTDIR=%{buildroot} XFIGDOCDIR=%{_docdir}/%{name}-%{version} \
  81. INSTALL="install -p" install.all
  82. install -p -m 644 CHANGES README LATEX.AND.XFIG* FIGAPPS \
  83. %{buildroot}%{_docdir}/%{name}-%{version}
  84. # remove the map generation scripts, these are for xfig developers only
  85. rm %{buildroot}%{_datadir}/%{name}/Libraries/Maps/{USA,Canada}/assemble
  86. # remove app-defaults symlink which gets installed
  87. rm $RPM_BUILD_ROOT%{_prefix}/lib*/X11/app-defaults
  88. install -D -p -m 644 %{name}16x16.xpm \
  89. $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps/%{name}.xpm
  90. install -D -p -m 644 %{name}32x32.xpm \
  91. $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/%{name}.xpm
  92. install -D -p -m 644 %{name}64x64.xpm \
  93. $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/%{name}.xpm
  94. mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
  95. desktop-file-install \
  96. --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE2}
  97. %clean
  98. rm -rf $RPM_BUILD_ROOT
  99. %post
  100. update-desktop-database &> /dev/null || :
  101. touch --no-create %{_datadir}/icons/hicolor || :
  102. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  103. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  104. fi
  105. %postun
  106. update-desktop-database &> /dev/null || :
  107. touch --no-create %{_datadir}/icons/hicolor || :
  108. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  109. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  110. fi
  111. %files
  112. %defattr(-,root,root)
  113. %doc %{_docdir}/%{name}-%{version}
  114. %{_bindir}/%{name}
  115. %{_datadir}/%{name}
  116. %{_mandir}/*/*
  117. %{_datadir}/X11/app-defaults/*
  118. %{_datadir}/applications/%{name}.desktop
  119. %{_datadir}/icons/hicolor/??x??/apps/%{name}.xpm
  120. %changelog
  121. * Sun Jan 11 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 3.2.5c-2
  122. - added Patch100
  123. * Sat Oct 11 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 3.2.5c-1
  124. - updated to 3.2.5c
  125. - updated Source1
  126. - added Patch 4-9 from Fedora and dropt Patch7, 9, 10 and 19
  127. - build with libXaw3dXft
  128. * Thu Sep 03 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 3.2.5-1
  129. - new usptream release
  130. - build with modular X
  131. - import patched from fedora package.
  132. - drop jp patch
  133. * Sat Jul 29 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.2.4-2vl5
  134. - rebuilt with Xaw3d-1.5-17vl3
  135. * Fri Sep 10 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.2.4-2vl4
  136. - Requires transfig >= 3.2.4, ghostscript
  137. - build with -march=i386
  138. - changed Group
  139. - fixed .desktop file
  140. * Wed Sep 8 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.2.4-2vl3
  141. - rebuild with gcc-3.3.2
  142. - added BuildPrereq: Xaw3d-devel
  143. * Sun Aug 31 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.2.4-2vl2
  144. - based on Rawhide 3.2.4-2
  145. * Tue May 6 2003 Than Ngo <than@redhat.com> 3.2.4-1
  146. - 3.2.4
  147. * Wed Jul 24 2002 Than Ngo <than@redhat.com> 3.2.3d-8
  148. - desktop file issue (bug #69543)
  149. * Tue Jun 25 2002 Than Ngo <than@redhat.com> 3.2.3d-7
  150. - add patch file using mkstemp (bug #67351)
  151. * Tue Jul 03 2001 Than Ngo <than@redhat.com>
  152. - fix export to eps when i18n set (bug #45114)
  153. - update Source3
  154. - previous Patch0 moved to Patch10
  155. - rebuild with new toolchains
  156. * Sun Aug 20 2000 Jun Nishii <jun@vinelinux.org>
  157. - 3.2.3c-0vl1
  158. - use brp
  159. * Mon Jan 24 2000 Atsushi Saito <saito4@slb.com>
  160. - update to 3.2.3a
  161. * Tue Dec 21 1999 Atsushi Saito <saito4@slb.com>
  162. - update to 3.2.3-beta-1
  163. - i18n
  164. * Thu Sep 23 1999 Preston Brown <pbrown@redhat.com>
  165. - add icon
  166. - don't compile with optimization on alpha
  167. * Mon Aug 30 1999 Preston Brown <pbrown@redhat.com>
  168. - converted to use a .desktop file
  169. * Fri Mar 26 1999 Michael Maher <mike@redhat.com>
  170. - added files that were missing.
  171. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  172. - auto rebuild in the new build environment (release 4)
  173. - varargs fix
  174. * Thu Feb 18 1999 Jeff Johnson <jbj@redhat.com>
  175. - correct DESTDIRR typo (#962)
  176. * Wed Dec 30 1998 Cristian Gafton <gafton@redhat.com>
  177. - build for glibc 2.1
  178. * Tue Jul 7 1998 Jeff Johnson <jbj@redhat.com>
  179. - updated to 3.2.2.
  180. * Wed Jun 10 1998 Prospector System <bugs@redhat.com>
  181. - translations modified for de
  182. * Fri May 08 1998 Prospector System <bugs@redhat.com>
  183. - translations modified for de, fr, tr
  184. * Sat Apr 11 1998 Cristian Gafton <gafton@redhat.com>
  185. - updated for manhattan
  186. - buildroot
  187. * Thu Oct 23 1997 Marc Ewing <marc@redhat.com>
  188. - new version
  189. - messed with config for 5.0
  190. - updated Requires and Copyright
  191. - added wmconfig
  192. * Mon Jul 21 1997 Erik Troan <ewt@redhat.com>
  193. - built against glibc