ruby-gnome-vl.spec 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. %define ruby /usr/bin/ruby
  2. %define rbindir %(%{ruby} -r rbconfig -e 'print Config::CONFIG["bindir"]')
  3. %define rlibdir %(%{ruby} -r rbconfig -e 'print Config::CONFIG["rubylibdir"]')
  4. %define rarchdir %(%{ruby} -r rbconfig -e 'print Config::CONFIG["archdir"]')
  5. Summary: bindings for GNOME for use with Ruby
  6. Summary(ja): Ruby から GNOME を使う為のライブラリ
  7. Name: ruby-gnome
  8. Version: 0.34
  9. Release: 0vl2
  10. Group: System Environment/Libraries
  11. Copyright: GPL
  12. URL: http://ruby-gnome.sourceforge.net/
  13. Source: http://prdownloads.sourceforge.net/ruby-gnome/ruby-gnome-all-%{version}.tar.gz
  14. # Vine Patch(es)
  15. Patch10: ruby-gnome-0.30-vine.patch
  16. Requires: gnome-libs >= 1.0.50
  17. Requires: ruby-gtk = %{version}-%{release}
  18. Obsoletes: gnome-ruby < %{version}
  19. BuildPreReq: ruby gnome-libs-devel imlib-devel gdk-pixbuf-devel
  20. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  21. %description
  22. Ruby-gnome provides both GNOME and GTK bindings for ruby.
  23. * You can handle GTK objects as Ruby objects and do natural GUI programming.
  24. * Simple signal description by block(anonymous procedure) or singleton method.
  25. * Interface for Imlib.
  26. * Works with Ruby threading.
  27. This package provides GNOME bindings for ruby.
  28. %package -n ruby-gtk
  29. Summary: bindings for GTK+ for use with Ruby
  30. Summary(ja): Ruby から GTK+ を使う為のライブラリ
  31. Group: System Environment/Libraries
  32. Requires: ruby
  33. %description -n ruby-gtk
  34. Ruby-gnome provides both GNOME and GTK bindings for ruby.
  35. * You can handle GTK objects as Ruby objects and do natural GUI programming.
  36. * Simple signal description by block(anonymous procedure) or singleton method.
  37. * Interface for Imlib.
  38. * Works with Ruby threading.
  39. This package provides GTK bindings for ruby.
  40. %package -n ruby-libglade
  41. Summary: bindings for LibGlade for use with Ruby
  42. Summary(ja): Ruby から LibGlade を使う為のライブラリ
  43. Group: System Environment/Libraries
  44. Requires: ruby-gtk = %{version}-%{release}
  45. Requires: ruby-gnome = %{version}-%{release}
  46. Epoch: 1
  47. %description -n ruby-libglade
  48. Ruby-gnome provides both GNOME and GTK bindings for ruby.
  49. * You can handle GTK objects as Ruby objects and do natural GUI programming.
  50. * Simple signal description by block(anonymous procedure) or singleton method.
  51. * Interface for Imlib.
  52. * Works with Ruby threading.
  53. This package provides LibGlade bindings for ruby.
  54. %prep
  55. %setup -q -n ruby-gnome-all-%{version}
  56. %patch10 -p1
  57. rm -rf panel-applet
  58. %build
  59. %{ruby} extconf.rb
  60. make
  61. ## rbbr
  62. cp -a gnome/doc/rbbr.rb ruby-classbrowser-gnome
  63. cp -a gtk/doc/rbbr.rb ruby-classbrowser-gtk
  64. %install
  65. rm -rf ${RPM_BUILD_ROOT}
  66. make sitearchdir=${RPM_BUILD_ROOT}%{rarchdir} \
  67. sitelibdir=${RPM_BUILD_ROOT}%{rlibdir} \
  68. install
  69. mkdir -p %{buildroot}%{_bindir}
  70. install -m 0755 ruby-class* %{buildroot}%{_bindir}/
  71. mkdir -p ${RPM_BUILD_ROOT}%{_docdir}/ruby-gtk-%{version}/gtk
  72. mkdir -p ${RPM_BUILD_ROOT}%{_docdir}/ruby-gtk-%{version}/gdkimlib
  73. mkdir -p ${RPM_BUILD_ROOT}%{_docdir}/ruby-gtk-%{version}/gdkpixbuf
  74. mkdir -p ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}/gnome
  75. #mkdir -p ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}/panel-applet
  76. cp -a gdkimlib/{ChangeLog,sample}* \
  77. ${RPM_BUILD_ROOT}/%{_docdir}/ruby-gtk-%{version}/gdkimlib/
  78. cp -a gdkpixbuf/{COPYING,ChangeLog,README,sample}* \
  79. ${RPM_BUILD_ROOT}/%{_docdir}/ruby-gtk-%{version}/gdkpixbuf/
  80. cp -a gtk/BUGS gtk/COPYING* gtk/ChangeLog gtk/NEWS gtk/README* \
  81. gtk/ToDo gtk/doc gtk/sample \
  82. ${RPM_BUILD_ROOT}/%{_docdir}/ruby-gtk-%{version}/gtk/
  83. cp -a ChangeLog README \
  84. ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}/
  85. cp -a gnome/{ChangeLog,NEWS,README,ToDo,doc,sample}* \
  86. ${RPM_BUILD_ROOT}/%{_docdir}/%{name}-%{version}/gnome/
  87. #cp -a panel-applet/{ChangeLog,README,sample}* \
  88. # ${RPM_BUILD_ROOT}/%{_docdir}/%{name}-%{version}/panel-applet/
  89. %clean
  90. rm -rf ${RPM_BUILD_ROOT}
  91. %files
  92. %defattr(-,root,root)
  93. %{_docdir}/%{name}-%{version}
  94. %{_bindir}/ruby-classbrowser-gnome
  95. %{rlibdir}/gnome.rb
  96. #%{rlibdir}/panel-applet.rb
  97. %{rarchdir}/gnome.so
  98. %{rarchdir}/libart.so
  99. #%{rarchdir}/panel_applet.so
  100. %files -n ruby-gtk
  101. %defattr(-,root,root)
  102. %{_docdir}/ruby-gtk-%{version}
  103. %{_bindir}/ruby-classbrowser-gtk
  104. %{rlibdir}/gdk_imlib.rb
  105. %{rlibdir}/gdk_pixbuf.rb
  106. %{rarchdir}/gtk.so
  107. %{rarchdir}/gdk_imlib.so
  108. %{rarchdir}/gdk_pixbuf.so
  109. %files -n ruby-libglade
  110. %defattr(-,root,root)
  111. %doc libglade/ChangeLog libglade/README libglade/sample
  112. %{rarchdir}/lglade.so
  113. %changelog
  114. * Sat Nov 6 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.34-0vl2
  115. - rebuilt with db4-4.2.52
  116. * Tue Sep 28 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.34-0vl1
  117. - updated to 0.34 and rebuilt with ruby-1.8.1
  118. - panel-applet temporarily removed
  119. * Sat Sep 14 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.30-0vl1
  120. - updated to new upstream release
  121. - ruby-libgrade requires ruby-gnome
  122. * Fri Aug 02 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.29-0vl2
  123. - increased release number to avoid confusion between VinePlus and VineSeedPlus
  124. - put ruby-classbrowser-{gtk,gnome} to %%{_bindir}
  125. * Mon Jul 01 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.29-0vl1
  126. - updated to 0.29 upstream release
  127. - Patch0 removed
  128. - added forgottten %%clean section
  129. * Mon Jun 03 2002 Satoshi MACHINO <machino@vinelinux.org> 0.28-0vl1
  130. - updated ruby-gnome-0.28
  131. - dropped ruby-gnome-itemfactory.patch
  132. -- merged upstream
  133. - added ruby-gnome-0.28-extconf.patch
  134. -- To install gnome.rb
  135. * Wed May 08 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.27-0vl1
  136. - tons of changes since 0.27-0vl0 :)
  137. - now ruby-gtk and ruby-libglade are separated subpackages
  138. - files installed to rlibdir, NOT sitedir
  139. - added Obsoletes: gnome-ruby < %%{version}
  140. * Fri Apr 12 2002 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp>
  141. - First package.