Gtk-Perl-vl.spec 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. %define _noVersionedDependencies 1
  2. Summary: Perl extention for Gtk+/Gnome
  3. Summary(ja): Perl から Gtk+ や Gnome を使うためのモジュール集
  4. Name: Gtk-Perl
  5. Version: 0.7008
  6. Release: 32%{?_dist_release}
  7. License: GPL
  8. Group: Development/Libraries
  9. Source: ftp://ftp.cpan.org/pub/perl/CPAN/modules/by-module/Gtk/Gtk-Perl-%{version}.tar.gz
  10. Source10: filter-depends.sh
  11. # Patches from Mandrake 27mdk
  12. Patch0: Gtk-Perl-add-ensure_focus.patch.bz2
  13. Patch1: Gtk-Perl-0.7003-workaround-gdk_event_copy-withnowindow.patch.bz2
  14. Patch2: Gtk-Perl-0.7005-add-XSetInputFocus.patch.bz2
  15. # fix compilation with gtkhtml >= 1.1.0
  16. Patch3: Gtk-Perl-0.7008-gtkhtml11.patch.bz2
  17. Patch4: Gtk-Perl-0.7008-fix-mozilla.patch.bz2
  18. Patch7: Gtk-Perl-0.7008-force-GtkHTML-and-no-GtkXmHTML.patch.bz2
  19. Patch8: Gtk-Perl-0.7008-fix-memory-leak-with-Gdk::Pixmap-created-from-a-Gdk::Pixbuf.patch.bz2
  20. # (fc) 0.7008-25mdk fix compilation with gnome-print >= 0.30 and gdkpixbuf >= 0.20
  21. Patch9: Gtk-Perl-0.7008-gnomeprint.patch.bz2
  22. #Patch10: Gtk-Perl-%{version}-pixbuf.patch
  23. URL: http://projects.prosa.it/gtkperl/
  24. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  25. ## Build Requires for all modules (except experimental bonobo and mozilla)
  26. BuildPreReq: perl >= 1:5.6.0
  27. BuildPreReq: gtk+-devel, libglade-devel, imlib-devel
  28. BuildPreReq: gdk-pixbuf-devel, gnome-libs-devel
  29. #BuildPreReq: gtkhtml-devel, gnome-print-devel
  30. ## Requires for basic modules
  31. Requires: perl >= 1:5.6.0
  32. Provides: gtk+perl = %{version}
  33. Obsoletes: gtk+perl
  34. # internal perl provides
  35. #Provides: perl(Gnome::Applet::Types)
  36. #Provides: perl(Gtk::GLArea::Types)
  37. Provides: perl(Gtk::Gdk::Pixbuf::Types)
  38. Provides: perl(Gtk::GladeXML::Types)
  39. Provides: perl(Gtk::XmHTML::Types)
  40. Vendor: Project Vine
  41. Distribution: Vine Linux
  42. %define __find_requires %{SOURCE10}
  43. %description
  44. Gtk-Perl is a set of modules that let you exploit Gtk+ and Gnome
  45. libraries from Perl.
  46. This package contains basic Gtk modules, as well as Imlib, GdkPixbuf,
  47. Gnome, XmHtml and Glade support.
  48. %description -l ja
  49. Gtk-Perl モジュールを使うと,Perl から Gtk+ や Gnome のライブラリを
  50. 利用することができます.
  51. このパッケージには基本となる Gtk モジュールの他,Imlib, GdkPixbuf,
  52. Gnome, XmHtml, Glade のサポートが含まれています.
  53. #%package extras
  54. #Summary: Perl extension for Gtk+/Gnome - additional modules
  55. #Summary(ja): Perl から Gtk+ や Gnome を使う為の追加モジュール集
  56. #Group: Development/Languages
  57. #
  58. ### Requires for additional modules
  59. #Requires: %{name} = %{version}-%{release}
  60. #Requires: gtkhtml, gnome-print
  61. #
  62. #
  63. #%description extras
  64. #Gtk-Perl is a set of modules that let you exploit Gtk+ and Gnome
  65. #libraries from Perl.
  66. #
  67. #This extra package currently contains GtkHTML and GnomePrint support.
  68. #
  69. #%description extras -l ja
  70. #Gtk-Perl モジュールを使うと,Perl から Gtk+ や Gnome のライブラリを
  71. #利用することができます.
  72. #
  73. #この追加パッケージには現在 GtkHTML と GnomePrint のサポートが含まれています.
  74. %prep
  75. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  76. %setup -q -n Gtk-Perl-%{version}
  77. %patch0 -p1
  78. %patch1 -p1
  79. %patch2 -p1
  80. #%patch3 -p1 -b .gtkhtml11
  81. %patch4 -p1
  82. #%patch7 -p1
  83. %patch8 -p1
  84. %patch9 -p1 -b .gnomeprint
  85. #%patch10 -p1 -b .pixbuf
  86. # fix for new MakeMaker (ie new perl 5.8.0)
  87. perl -pi -e '/CCCMD/ && s|/m;|/mg;|' */Makefile.PL
  88. # temporal removal of Applet module
  89. rm -rf Applet
  90. %build
  91. #perl Makefile.PL --with-gdkimlib --with-gdkpixbuf --with-gtkxmhtml \
  92. # --with-gnome --with-applets --with-glade \
  93. # --without-gtkglarea \
  94. # --without-gtkhtml --without-gnomeprint
  95. # # --with-gtkhtml --with-gnomeprint
  96. # # --without-bonobo --without-mozilla
  97. #
  98. #make
  99. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
  100. make
  101. for i in GdkImlib GdkPixbuf Glade Gnome Gtk GtkXmHTML ; do
  102. pushd $i
  103. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
  104. make
  105. popd
  106. done
  107. %install
  108. rm -rf ${RPM_BUILD_ROOT}
  109. #make PREFIX=${RPM_BUILD_ROOT}/usr/ install
  110. # prepare sample scripts
  111. mkdir samples
  112. cp -a test.pl samples/.
  113. for X in GdkImlib GdkPixbuf Glade Gnome Gtk GtkXmHTML; do
  114. (cd $X;
  115. mkdir ../samples/$X;
  116. cp -a samples ../samples/$X/samples);
  117. done
  118. #mkdir samples-extras
  119. #cp -a test.pl samples-extras/.
  120. #for X in GnomePrint GtkHTML; do
  121. #(cd $X;
  122. #mkdir ../samples-extras/$X; \
  123. #cp -a samples ../samples-extras/$X/samples);
  124. #done
  125. make DESTDIR=$RPM_BUILD_ROOT install
  126. for i in GdkImlib GdkPixbuf Glade Gnome Gtk GtkXmHTML ; do
  127. pushd $i
  128. make DESTDIR=$RPM_BUILD_ROOT install
  129. popd
  130. done
  131. pushd $RPM_BUILD_ROOT
  132. rm -f `find -type f -name "*.bs"`
  133. rm -f `find -type f -name .packlist`
  134. rm -f `find -type f -name .packlist`
  135. rm -f `find -type f -name "*::reference*"`
  136. popd
  137. find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
  138. find $RPM_BUILD_ROOT/usr -type f -print | sed "s@^$RPM_BUILD_ROOT@@g" | grep -v perllocal.pod > gtk-perl-files
  139. %clean
  140. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  141. %files
  142. %defattr(-,root,root)
  143. %doc ChangeLog INSTALL MANIFEST NOTES README VERSIONS WARNING
  144. %doc tools samples
  145. # Gdk/Gtk modules
  146. %{_libdir}/perl5/vendor_perl/*/*/Gtk
  147. %{_libdir}/perl5/vendor_perl/*/*/auto/Gtk
  148. %{_libdir}/perl5/vendor_perl/*/*/auto/Gnome
  149. %{_libdir}/perl5/vendor_perl/*/*/Gtk.pm
  150. %{_libdir}/perl5/vendor_perl/*/*/Gnome.pm
  151. %{_libdir}/perl5/vendor_perl/*/*/Gnome
  152. %{_mandir}/*/*
  153. %changelog
  154. * Sun May 3 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.7008-32
  155. - applied new versioning policy, spec in UTF-8
  156. - rebuilt with gnome-libs-1.4.2-2vl5 (linking with db-4.6.21)
  157. * Sun Aug 5 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.7008-31vl5
  158. - rebuilt with new toolchain
  159. * Sun Sep 3 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.7008-31vl4
  160. - s/Copyright/License/
  161. - installed files to vendor_perl
  162. * Sat Nov 6 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.7008-31vl3
  163. - rebuilt with db4-4.2.52
  164. - remove Applet module
  165. * Fri May 02 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org>
  166. - rebuild with gdk-pixbuf-devel-0.21.0-0vl3
  167. * Thu May 01 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org>
  168. - syncd with rawhide 31 and Mandrake 27mdk
  169. * Mon Apr 14 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org>
  170. - rebuild
  171. - Patch1: for gdk-pixbuf-0.21
  172. * Mon Jul 02 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  173. - 0.7008-0vl1
  174. - updated to 0.7008 release
  175. - disabled Gtk-Perl-extras subpackage at the moment
  176. * Sat Jun 16 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  177. - 0.7007-0vl1
  178. - updated to 0.7007 release
  179. - split Gtk-Perl-extras subpackage
  180. * Fri Jun 15 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  181. - 0.7004-0vl2
  182. - rebuilt with perl-5.6
  183. - package renamed to Gtk-Perl
  184. - add GdkPixbuf modules
  185. * Sun Jan 21 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  186. - 0.7004-0vl1
  187. - upgraded for 0.7004 release
  188. - use %%{_tmppath}
  189. * Fri Apr 28 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  190. - 0.7000-0vl1
  191. - first package for Vine/ppc