perl-gtk.spec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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.103
  28. %define V_extutils_pkgconfig 1.02
  29. %define V_glib 1.011
  30. %define V_gtk2 1.011
  31. # package information
  32. Name: perl-gtk
  33. Summary: Perl Modules for use with the Gtk GUI
  34. URL: http://www.cpan.org/
  35. Vendor: Perl Community
  36. Packager: The OpenPKG Project
  37. Distribution: OpenPKG [EVAL]
  38. Group: Language
  39. License: GPL/Artistic
  40. Version: 20031116
  41. Release: 20031116
  42. # package options
  43. %option with_gtk1 yes
  44. %option with_gtk2 yes
  45. # list of sources
  46. Source0: http://www.cpan.org/modules/by-module/Gtk/Gtk-Perl-%{V_gtk_perl}.tar.gz
  47. Source1: http://osdn.dl.sourceforge.net/gtk2-perl/ExtUtils-Depends-%{V_extutils_depends}.tar.gz
  48. Source2: http://osdn.dl.sourceforge.net/gtk2-perl/ExtUtils-PkgConfig-%{V_extutils_pkgconfig}.tar.gz
  49. Source3: http://osdn.dl.sourceforge.net/gtk2-perl/Glib-%{V_glib}.tar.gz
  50. Source4: http://osdn.dl.sourceforge.net/gtk2-perl/Gtk2-%{V_gtk2}.tar.gz
  51. # build information
  52. Prefix: %{l_prefix}
  53. BuildRoot: %{l_buildroot}
  54. BuildPreReq: OpenPKG, openpkg >= 20020206, perl, perl-openpkg
  55. PreReq: OpenPKG, openpkg >= 20020206, perl, perl-openpkg
  56. %if "%{with_gtk1}" == "yes"
  57. BuildPreReq: gtk, perl-xml
  58. PreReq: gtk, perl-xml
  59. %endif
  60. %if "%{with_gtk2}" == "yes"
  61. BuildPreReq: perl-xml >= 20030920, glib2, gtk2, pango, atk
  62. PreReq: perl-xml >= 20030920, glib2, gtk2, pango, atk
  63. %endif
  64. AutoReq: no
  65. AutoReqProv: no
  66. %description
  67. Perl modules for use with Gtk GUI:
  68. %if "%{with_gtk1}" == "yes"
  69. - Gtk-Perl (%{V_gtk_perl}) [for GLib/Gtk+ 1.x]
  70. %endif
  71. %if "%{with_gtk2}" == "yes"
  72. - ExtUtils::Depends (%{V_extutils_depends}) [for GLib/Gtk+ 2.x]
  73. - ExtUtils::PkgConfig (%{V_extutils_pkgconfig}) [for GLib/Gtk+ 2.x]
  74. - Glib (%{V_glib}) [for GLib/Gtk+ 2.x]
  75. - Gtk2 (%{V_gtk2}) [for GLib/Gtk+ 2.x]
  76. %endif
  77. %prep
  78. %setup0 -q -c
  79. %setup1 -q -T -D -a 1
  80. %setup2 -q -T -D -a 2
  81. %setup3 -q -T -D -a 3
  82. %setup4 -q -T -D -a 4
  83. %build
  84. %install
  85. # perform common prolog operations
  86. %{l_prefix}/bin/perl-openpkg prolog
  87. # build and install individual modules
  88. %if "%{with_gtk1}" == "yes"
  89. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE0} --without-guessing
  90. %endif
  91. %if "%{with_gtk2}" == "yes"
  92. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE1}
  93. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE2}
  94. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE3}
  95. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE4}
  96. %endif
  97. # perform common epilog operations
  98. %{l_prefix}/bin/perl-openpkg epilog
  99. %files -f files
  100. %clean
  101. rm -rf $RPM_BUILD_ROOT