xfig-vl.spec 6.6 KB

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