perl-gtk.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. ##
  2. ## perl-gtk.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2003 Cable & Wireless <http://www.cw.com/>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # package versions
  26. %define V_gtk_perl 0.7009
  27. %define V_extutils_depends 0.102
  28. %define V_glib 0.92
  29. %define V_gtk2 0.92
  30. # package information
  31. Name: perl-gtk
  32. Summary: Perl Modules for use with the Gtk GUI
  33. URL: http://www.cpan.org/
  34. Vendor: Perl Community
  35. Packager: The OpenPKG Project
  36. Distribution: OpenPKG [EVAL]
  37. Group: Language
  38. License: GPL/Artistic
  39. Version: 20030802
  40. Release: 20030802
  41. # package options
  42. %option with_gtk1 yes
  43. %option with_gtk2 yes
  44. # list of sources
  45. Source0: http://www.cpan.org/modules/by-module/Gtk/Gtk-Perl-%{V_gtk_perl}.tar.gz
  46. Source1: http://osdn.dl.sourceforge.net/gtk2-perl/ExtUtils-Depends-%{V_extutils_depends}.tar.gz
  47. Source2: http://osdn.dl.sourceforge.net/gtk2-perl/Glib-%{V_glib}.tar.gz
  48. Source3: http://osdn.dl.sourceforge.net/gtk2-perl/Gtk2-%{V_gtk2}.tar.gz
  49. # build information
  50. Prefix: %{l_prefix}
  51. BuildRoot: %{l_buildroot}
  52. BuildPreReq: OpenPKG, openpkg >= 20020206, perl, perl-openpkg
  53. PreReq: OpenPKG, openpkg >= 20020206, perl, perl-openpkg
  54. %if "%{with_gtk1}" == "yes"
  55. BuildPreReq: gtk, perl-xml
  56. PreReq: gtk, perl-xml
  57. %endif
  58. %if "%{with_gtk2}" == "yes"
  59. BuildPreReq: glib2, gtk2, pango, atk
  60. PreReq: glib2, gtk2, pango, atk
  61. %endif
  62. AutoReq: no
  63. AutoReqProv: no
  64. %description
  65. Perl modules for use with Gtk GUI:
  66. %if "%{with_gtk1}" == "yes"
  67. - Gtk-Perl (%{V_gtk_perl}) [for GLib/Gtk+ 1.x]
  68. %endif
  69. %if "%{with_gtk2}" == "yes"
  70. - ExtUtils::Depends (%{V_extutils_depends}) [for GLib/Gtk+ 2.x]
  71. - Glib (%{V_glib}) [for GLib/Gtk+ 2.x]
  72. - Gtk2 (%{V_gtk2}) [for GLib/Gtk+ 2.x]
  73. %endif
  74. %prep
  75. %setup0 -q -c
  76. %setup1 -q -T -D -a 1
  77. %setup2 -q -T -D -a 2
  78. %setup3 -q -T -D -a 3
  79. %build
  80. %install
  81. # perform common prolog operations
  82. %{l_prefix}/bin/perl-openpkg prolog
  83. # build and install individual modules
  84. %if "%{with_gtk1}" == "yes"
  85. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE0} --without-guessing
  86. %endif
  87. %if "%{with_gtk2}" == "yes"
  88. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE1}
  89. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE2}
  90. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE3}
  91. %endif
  92. # perform common epilog operations
  93. %{l_prefix}/bin/perl-openpkg epilog
  94. %files -f files
  95. %clean
  96. rm -rf $RPM_BUILD_ROOT