plt-scheme-vl.spec 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. Name: plt-scheme
  2. Version: 4.2.1
  3. Release: 1%{?_dist_release}
  4. Epoch: 1
  5. Summary: Graphical environment for developing programs using Scheme
  6. Summary(ja): グラフィカルな Scheme 開発環境
  7. Group: Development/Languages
  8. License: LGPLv2+
  9. URL: http://www.drscheme.org
  10. Source: http://download.plt-scheme.org/bundles/%{version}/plt/plt-%{version}-src-unix.tgz
  11. Source1: drscheme.png
  12. Patch0: plt-x86_64-lib.patch
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: openssl-devel
  15. BuildRequires: zlib-devel
  16. BuildRequires: libpng-devel
  17. BuildRequires: libjpeg-devel
  18. BuildRequires: freetype-devel
  19. BuildRequires: fontconfig-devel
  20. BuildRequires: libICE-devel
  21. BuildRequires: libSM-devel
  22. BuildRequires: libX11-devel
  23. BuildRequires: libXaw-devel
  24. BuildRequires: libXext-devel
  25. BuildRequires: libXft-devel
  26. BuildRequires: libXmu-devel
  27. BuildRequires: libXrender-devel
  28. BuildRequires: libXt-devel
  29. BuildRequires: mesa-libGL-devel
  30. BuildRequires: mesa-libGLU-devel
  31. BuildRequires: xorg-x11-xbitmaps
  32. BuildRequires: desktop-file-utils
  33. BuildRequires: cairo-devel
  34. BuildRequires: pkgconfig
  35. Obsoletes: plt, drscheme
  36. Provides: plt, drscheme, mzscheme, mred, mrflow
  37. %description
  38. DrScheme is an interactive, integrated, graphical programming
  39. environment for the MzScheme programming language, and the MrEd
  40. windowing toolbox.
  41. DrScheme provides source highlighting for syntax and run-time errors,
  42. support for multiple language levels, an algebraic stepper, objects,
  43. modules, a GUI library, TCP/IP, and much more. It includes an
  44. extensive, hyper-linked help system called Help Desk, available from
  45. the Help menu.
  46. You can enhance DrScheme with many add-ons, including MrFlow, a static
  47. debugger.
  48. MzScheme is R5RS-compliant, including the full numerical tower. It
  49. also provides threads (on all platforms), exceptions, modules,
  50. class-based objects, regular-expression matching, TCP/IP, and more.
  51. MrEd provides a windowing toolbox for creating windows and menus; a
  52. drawing toolbox for drawing to windows, bitmaps, and printer devices;
  53. and an editor toolbox for creating multimedia editors.
  54. %define __arch_install_post %{nil}
  55. %prep
  56. %setup -q -n plt-%{version}
  57. ##%ifarch x86_64
  58. ##%patch0 -p1
  59. ##%endif
  60. %build
  61. cd src
  62. ##%%ifarch x86_64
  63. ##%%define plt_opt_flags `echo $RPM_OPT_FLAGS | sed 's/-O2/-O1/g'`
  64. ##%%configure --enable-gl --enable-xrender --enable-xft CFLAGS="%plt_opt_flags" CXXFLAGS="%plt_opt_flags"
  65. ##%endif
  66. %ifarch ppc
  67. echo 'ac_cv_lib_Xaw_vendorShellClassRec=yes' > config.cache
  68. %configure -C --enable-gl --enable-xrender --enable-xft
  69. %endif
  70. %ifarch ppc64
  71. %configure --enable-gl --enable-xrender --enable-xft --enable-cgcdefault
  72. %endif
  73. %ifnarch ppc ppc64
  74. %configure --enable-gl --enable-xrender --enable-xft
  75. %endif
  76. make # %{?_smp_mflags}
  77. %install
  78. rm -rf $RPM_BUILD_ROOT
  79. cd src
  80. make install DESTDIR=$RPM_BUILD_ROOT
  81. mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
  82. cp %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/pixmaps
  83. #find $RPM_BUILD_ROOT -size 0 | xargs rm -f
  84. #fgrep -lr "$RPM_BUILD_ROOT" $RPM_BUILD_ROOT | xargs rm -f
  85. mv $RPM_BUILD_ROOT%{_bindir}/planet $RPM_BUILD_ROOT%{_bindir}/plt-planet
  86. cat > drscheme.desktop <<EOF
  87. [Desktop Entry]
  88. Name=DrScheme
  89. GenericName=Scheme programming
  90. Comment=Programming environment for the Scheme programming language
  91. Exec=drscheme
  92. Terminal=false
  93. Icon=drscheme.png
  94. Type=Application
  95. Encoding=UTF-8
  96. X-Desktop-File-Install-Version=0.4
  97. EOF
  98. mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
  99. desktop-file-install \
  100. --vendor vine \
  101. --add-category Development \
  102. --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  103. drscheme.desktop
  104. %clean
  105. rm -rf $RPM_BUILD_ROOT
  106. %files
  107. %defattr(-,root,root,-)
  108. %doc readme.txt
  109. %{_bindir}/*
  110. %{_libdir}/plt
  111. %{_libdir}/*.a
  112. %{_mandir}/man*/*
  113. %{_datadir}/plt
  114. %{_includedir}/plt
  115. %{_datadir}/pixmaps/*
  116. %{_datadir}/applications/*
  117. %changelog
  118. * Sun Sep 27 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1:4.2.1-1
  119. - new upstream release
  120. * Thu Apr 30 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1:4.1.5-3
  121. - really drop optimization settings expected on 4.1.5-2 (see below)
  122. * Wed Apr 15 2009 Shu KONNO <owa@bg.wakwak.com> 1:4.1.5-2
  123. - dropt plt-x86_64-lib.patch
  124. - dropt special optimize setting "s/-O2/-O1/" for only x86_64
  125. * Fri Mar 27 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1:4.1.5-1
  126. - new upstream release
  127. - add Epoch due to upstream versioning scheme change
  128. - spec heavily revised based on Fedora 1:4.1-1
  129. (different configure options for each arch)
  130. * Sun Nov 09 2008 Shu KONNO <owa@bg.wakwak.com> 370-2vl5
  131. - rebuild with libXaw.so.7 (libXaw-1.0.5)
  132. * Thu Oct 09 2008 Shu KONNO <owa@bg.wakwak.com> 370-1vl5
  133. - applied new versioning policy, spec in utf-8
  134. * Wed Aug 15 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 370-0vl2
  135. - rebuilt for VineSeed
  136. * Wed Aug 15 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 370-0vl1
  137. - new upstream release
  138. * Sat May 12 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 360-0vl2
  139. - rebuilt with new toolchain
  140. * Sat Feb 17 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 360-0vl1
  141. - new upstream release
  142. * Fri Aug 11 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 352-2vl2
  143. - rebuilt for VineSeed (4.0)
  144. * Fri Aug 11 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 352-2vl1
  145. - new upstream release
  146. - removed %post section
  147. * Wed May 3 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 301-2vl2
  148. - Rebuild for VineSeed Plus
  149. * Wed May 3 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 301-2vl1
  150. - Rebuild for Vine Linux
  151. * Fri Feb 17 2006 Gerard Milmeister <gemi@bluewin.ch> - 301-2
  152. - Rebuild for Fedora Extras 5
  153. * Sat Jan 28 2006 Gerard Milmeister <gemi@bluewin.ch> - 301-1
  154. - new version 301
  155. * Wed Dec 21 2005 Gerard Milmeister <gemi@bluewin.ch> - 300-2
  156. - xft patch no longer necessary
  157. * Mon Dec 19 2005 Gerard Milmeister <gemi@bluewin.ch> - 300-1
  158. - New Version 300
  159. * Sat Nov 26 2005 Gerard Milmeister <gemi@bluewin.ch> - 299.400-1
  160. - New Version 299.400
  161. * Mon Nov 21 2005 Gerard Milmeister <gemi@bluewin.ch> - 299.200-16
  162. - patch to use pkg-config instead of xft-config
  163. * Wed Nov 16 2005 Gerard Milmeister <gemi@bluewin.ch> - 299.200-13
  164. - updated for modular xorg
  165. * Tue Nov 15 2005 Gerard Milmeister <gemi@bluewin.ch> - 299.200-11
  166. - replaced XFree86-devel by xorg-x11-devel
  167. * Sat Oct 15 2005 Gerard Milmeister <gemi@bluewin.ch> - 299.200-9
  168. - use lib64 instead of lib
  169. * Thu Oct 6 2005 Gerard Milmeister <gemi@bluewin.ch> - 299.200-8
  170. - try x86_64 again using patch for disabling dependency checking for openssl
  171. * Thu Oct 6 2005 Gerard Milmeister <gemi@bluewin.ch> - 299.200-6
  172. - use %%{_libdir} and %%{_lib} in creating links
  173. * Wed Aug 17 2005 Gerard Milmeister <gemi@bluewin.ch> - 299.200-4
  174. - Increase font size from 10 to 12
  175. * Tue Aug 16 2005 Gerard Milmeister <gemi@bluewin.ch> - 299.200-3
  176. - Added openssl-devel buildreq
  177. * Tue Aug 16 2005 Gerard Milmeister <gemi@bluewin.ch> - 299.200-2
  178. - Correct post install procedure
  179. * Fri Aug 12 2005 Gerard Milmeister <gemi@bluewin.ch> - 299.200-1
  180. - New Version 299.200
  181. * Sat Apr 16 2005 Gerard Milmeister <gemi@bluewin.ch> - 299.100-1
  182. - Renamed to plt-scheme
  183. * Sun Mar 27 2005 Gerard Milmeister <gemi@bluewin.ch> - 299.100-1
  184. - New Version 299.100
  185. * Sat Mar 26 2005 Gerard Milmeister <gemi@bluewin.ch> - 209-1
  186. - Renamed package from plt to drscheme
  187. * Sat Dec 18 2004 Gerard Milmeister <gemi@bluewin.ch> - 0:209-0.fdr.1
  188. - New Version 209
  189. * Sat Nov 13 2004 Gerard Milmeister <gemi@bluewin.ch> - 0:208-0.fdr.1
  190. - New Version 208
  191. - Added desktop file
  192. - Added icon
  193. * Sun Nov 9 2003 Gerard Milmeister <gemi@bluewin.ch> - 0:205-0.fdr.1
  194. - First Fedora release