perl-wx.spec 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. ##
  2. ## perl-wx.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2005 Ralf S. Engelschall <http://engelschall.com/>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # package versions
  25. %define V_perl 5.8.7
  26. %define V_wx 0.26
  27. %define V_wx_perl_treechecker 1.13
  28. # package information
  29. Name: perl-wx
  30. Summary: Perl Modules for use with the wxWindows GUI
  31. URL: http://www.cpan.org/
  32. Vendor: Perl Community
  33. Packager: OpenPKG
  34. Distribution: OpenPKG
  35. Class: EVAL
  36. Group: Language
  37. License: GPL/Artistic
  38. Version: %{V_perl}
  39. Release: 20051201
  40. # list of sources
  41. Source0: http://www.cpan.org/modules/by-module/Wx/Wx-%{V_wx}.tar.gz
  42. Source1: http://www.cpan.org/modules/by-module/Wx/Wx-Perl-TreeChecker-%{V_wx_perl_treechecker}.tar.gz
  43. # build information
  44. Prefix: %{l_prefix}
  45. BuildRoot: %{l_buildroot}
  46. BuildPreReq: OpenPKG, openpkg >= 20040212, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  47. PreReq: OpenPKG, openpkg >= 20040212, perl >= %{V_perl}
  48. BuildPreReq: wx
  49. PreReq: 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. %build
  71. %install
  72. rm -rf $RPM_BUILD_ROOT
  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