perl-wx.spec 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. ##
  2. ## perl-wx.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2004 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_perl 5.8.4
  27. %define V_wx 0.18
  28. %define V_wx_perl_treechecker 1.08
  29. # package information
  30. Name: perl-wx
  31. Summary: Perl Modules for use with the wxWindows GUI
  32. URL: http://www.cpan.org/
  33. Vendor: Perl Community
  34. Packager: The OpenPKG Project
  35. Distribution: OpenPKG
  36. Class: EVAL
  37. Group: Language
  38. License: GPL/Artistic
  39. Version: %{V_perl}
  40. Release: 20040508
  41. # list of sources
  42. Source0: http://www.cpan.org/modules/by-module/Wx/Wx-%{V_wx}.tar.gz
  43. Source1: http://www.cpan.org/modules/by-module/Wx/Wx-Perl-TreeChecker-%{V_wx_perl_treechecker}.tar.gz
  44. Patch0: perl-wx.patch
  45. # build information
  46. Prefix: %{l_prefix}
  47. BuildRoot: %{l_buildroot}
  48. BuildPreReq: OpenPKG, openpkg >= 20040212, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  49. PreReq: OpenPKG, openpkg >= 20040212, perl >= %{V_perl}
  50. BuildPreReq: wx
  51. PreReq: wx
  52. AutoReq: no
  53. AutoReqProv: no
  54. %description
  55. Perl modules for use with wxWindows GUI:
  56. - Wx (%{V_wx})
  57. - Wx::Perl::TreeChecker (%{V_wx_perl_treechecker})
  58. %track
  59. prog perl-wx:Wx = {
  60. version = %{V_wx}
  61. url = http://www.cpan.org/modules/by-module/Wx/
  62. regex = Wx-(__VER__)\.tar\.gz
  63. }
  64. prog perl-wx:Wx-Perl-TreeChecker = {
  65. version = %{V_wx_perl_treechecker}
  66. url = http://www.cpan.org/modules/by-module/Wx/
  67. regex = Wx-Perl-TreeChecker-(__VER__)\.tar\.gz
  68. }
  69. %prep
  70. %setup -q -c
  71. %setup -q -T -D -a 1
  72. %patch -p0 -d Wx-%{V_wx}
  73. %build
  74. %install
  75. rm -rf $RPM_BUILD_ROOT
  76. %{l_prefix}/bin/perl-openpkg prepare
  77. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  78. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  79. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  80. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  81. %files -f files
  82. %clean
  83. rm -rf $RPM_BUILD_ROOT