perl-wx.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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.3
  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: 20040218
  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, wx
  49. PreReq: OpenPKG, openpkg >= 20040212, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126, wx
  50. AutoReq: no
  51. AutoReqProv: no
  52. %description
  53. Perl modules for use with wxWindows GUI:
  54. - Wx (%{V_wx})
  55. - Wx::Perl::TreeChecker (%{V_wx_perl_treechecker})
  56. %track
  57. prog perl-wx:Wx = {
  58. version = %{V_wx}
  59. url = http://www.cpan.org/modules/by-module/Wx/
  60. regex = Wx-(__VER__)\.tar\.gz
  61. }
  62. prog perl-wx:Wx-Perl-TreeChecker = {
  63. version = %{V_wx_perl_treechecker}
  64. url = http://www.cpan.org/modules/by-module/Wx/
  65. regex = Wx-Perl-TreeChecker-(__VER__)\.tar\.gz
  66. }
  67. %prep
  68. %setup -q -c
  69. %setup -q -T -D -a 1
  70. %patch -p0 -d Wx-%{V_wx}
  71. %build
  72. %install
  73. %{l_prefix}/bin/perl-openpkg prepare
  74. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  75. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  76. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  77. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  78. %files -f files
  79. %clean
  80. rm -rf $RPM_BUILD_ROOT